nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
||
3 | # Generated by GNU Autoconf 2.69 for glib 2.48.1. |
||
4 | # |
||
5 | # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>. |
||
6 | # |
||
7 | # |
||
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
||
9 | # |
||
10 | # |
||
11 | # This configure script is free software; the Free Software Foundation |
||
12 | # gives unlimited permission to copy, distribute and modify it. |
||
13 | ## -------------------- ## |
||
14 | ## M4sh Initialization. ## |
||
15 | ## -------------------- ## |
||
16 | |||
17 | # Be more Bourne compatible |
||
18 | DUALCASE=1; export DUALCASE # for MKS sh |
||
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
20 | emulate sh |
||
21 | NULLCMD=: |
||
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
23 | # is contrary to our usage. Disable this feature. |
||
24 | alias -g '${1+"$@"}'='"$@"' |
||
25 | setopt NO_GLOB_SUBST |
||
26 | else |
||
27 | case `(set -o) 2>/dev/null` in #( |
||
28 | *posix*) : |
||
29 | set -o posix ;; #( |
||
30 | *) : |
||
31 | ;; |
||
32 | esac |
||
33 | fi |
||
34 | |||
35 | |||
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 |
||
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 |
||
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' |
||
56 | else |
||
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
58 | as_echo_n_body='eval |
||
59 | arg=$1; |
||
60 | case $arg in #( |
||
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' |
||
69 | fi |
||
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 | } |
||
81 | fi |
||
82 | |||
83 | |||
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.) |
||
89 | IFS=" "" $as_nl" |
||
90 | |||
91 | # Find who we are. Look in the path if we contain no directory separator. |
||
92 | as_myself= |
||
93 | case $0 in #(( |
||
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=. |
||
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
101 | done |
||
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 |
||
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
113 | exit 1 |
||
114 | fi |
||
115 | |||
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 || : |
||
123 | done |
||
124 | PS1='$ ' |
||
125 | PS2='> ' |
||
126 | PS4='+ ' |
||
127 | |||
128 | # NLS nuisances. |
||
129 | LC_ALL=C |
||
130 | export LC_ALL |
||
131 | LANGUAGE=C |
||
132 | export LANGUAGE |
||
133 | |||
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 | test \$(( 1 + 1 )) = 2 || exit 1 |
||
202 | |||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
||
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
||
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
||
207 | PATH=/empty FPATH=/empty; export PATH FPATH |
||
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
||
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
||
210 | 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: http://bugzilla.gnome.org/enter_bug.cgi?product=glib |
||
279 | $0: about your system, including any error possibly output |
||
280 | $0: before this message. Then install a modern shell, or |
||
281 | $0: manually run the script under such a shell if you do |
||
282 | $0: have one." |
||
283 | fi |
||
284 | exit 1 |
||
285 | fi |
||
286 | fi |
||
287 | fi |
||
288 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
289 | export SHELL |
||
290 | # Unset more variables known to interfere with behavior of common tools. |
||
291 | CLICOLOR_FORCE= GREP_OPTIONS= |
||
292 | unset CLICOLOR_FORCE GREP_OPTIONS |
||
293 | |||
294 | ## --------------------- ## |
||
295 | ## M4sh Shell Functions. ## |
||
296 | ## --------------------- ## |
||
297 | # as_fn_unset VAR |
||
298 | # --------------- |
||
299 | # Portably unset VAR. |
||
300 | as_fn_unset () |
||
301 | { |
||
302 | { eval $1=; unset $1;} |
||
303 | } |
||
304 | as_unset=as_fn_unset |
||
305 | |||
306 | # as_fn_set_status STATUS |
||
307 | # ----------------------- |
||
308 | # Set $? to STATUS, without forking. |
||
309 | as_fn_set_status () |
||
310 | { |
||
311 | return $1 |
||
312 | } # as_fn_set_status |
||
313 | |||
314 | # as_fn_exit STATUS |
||
315 | # ----------------- |
||
316 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
317 | as_fn_exit () |
||
318 | { |
||
319 | set +e |
||
320 | as_fn_set_status $1 |
||
321 | exit $1 |
||
322 | } # as_fn_exit |
||
323 | |||
324 | # as_fn_mkdir_p |
||
325 | # ------------- |
||
326 | # Create "$as_dir" as a directory, including parents if necessary. |
||
327 | as_fn_mkdir_p () |
||
328 | { |
||
329 | |||
330 | case $as_dir in #( |
||
331 | -*) as_dir=./$as_dir;; |
||
332 | esac |
||
333 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
334 | as_dirs= |
||
335 | while :; do |
||
336 | case $as_dir in #( |
||
337 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
338 | *) as_qdir=$as_dir;; |
||
339 | esac |
||
340 | as_dirs="'$as_qdir' $as_dirs" |
||
341 | as_dir=`$as_dirname -- "$as_dir" || |
||
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
344 | X"$as_dir" : 'X\(//\)$' \| \ |
||
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
346 | $as_echo X"$as_dir" | |
||
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
348 | s//\1/ |
||
349 | q |
||
350 | } |
||
351 | /^X\(\/\/\)[^/].*/{ |
||
352 | s//\1/ |
||
353 | q |
||
354 | } |
||
355 | /^X\(\/\/\)$/{ |
||
356 | s//\1/ |
||
357 | q |
||
358 | } |
||
359 | /^X\(\/\).*/{ |
||
360 | s//\1/ |
||
361 | q |
||
362 | } |
||
363 | s/.*/./; q'` |
||
364 | test -d "$as_dir" && break |
||
365 | done |
||
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
368 | |||
369 | |||
370 | } # as_fn_mkdir_p |
||
371 | |||
372 | # as_fn_executable_p FILE |
||
373 | # ----------------------- |
||
374 | # Test if FILE is an executable regular file. |
||
375 | as_fn_executable_p () |
||
376 | { |
||
377 | test -f "$1" && test -x "$1" |
||
378 | } # as_fn_executable_p |
||
379 | # as_fn_append VAR VALUE |
||
380 | # ---------------------- |
||
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
382 | # advantage of any shell optimizations that allow amortized linear growth over |
||
383 | # repeated appends, instead of the typical quadratic growth present in naive |
||
384 | # implementations. |
||
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
386 | eval 'as_fn_append () |
||
387 | { |
||
388 | eval $1+=\$2 |
||
389 | }' |
||
390 | else |
||
391 | as_fn_append () |
||
392 | { |
||
393 | eval $1=\$$1\$2 |
||
394 | } |
||
395 | fi # as_fn_append |
||
396 | |||
397 | # as_fn_arith ARG... |
||
398 | # ------------------ |
||
399 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
400 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
401 | # must be portable across $(()) and expr. |
||
402 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
403 | eval 'as_fn_arith () |
||
404 | { |
||
405 | as_val=$(( $* )) |
||
406 | }' |
||
407 | else |
||
408 | as_fn_arith () |
||
409 | { |
||
410 | as_val=`expr "$@" || test $? -eq 1` |
||
411 | } |
||
412 | fi # as_fn_arith |
||
413 | |||
414 | |||
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
416 | # ---------------------------------------- |
||
417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
419 | # script with STATUS, using 1 if that was 0. |
||
420 | as_fn_error () |
||
421 | { |
||
422 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
423 | if test "$4"; then |
||
424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
425 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
426 | fi |
||
427 | $as_echo "$as_me: error: $2" >&2 |
||
428 | as_fn_exit $as_status |
||
429 | } # as_fn_error |
||
430 | |||
431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
433 | as_expr=expr |
||
434 | else |
||
435 | as_expr=false |
||
436 | fi |
||
437 | |||
438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
439 | as_basename=basename |
||
440 | else |
||
441 | as_basename=false |
||
442 | fi |
||
443 | |||
444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
445 | as_dirname=dirname |
||
446 | else |
||
447 | as_dirname=false |
||
448 | fi |
||
449 | |||
450 | as_me=`$as_basename -- "$0" || |
||
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
452 | X"$0" : 'X\(//\)$' \| \ |
||
453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
454 | $as_echo X/"$0" | |
||
455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
456 | s//\1/ |
||
457 | q |
||
458 | } |
||
459 | /^X\/\(\/\/\)$/{ |
||
460 | s//\1/ |
||
461 | q |
||
462 | } |
||
463 | /^X\/\(\/\).*/{ |
||
464 | s//\1/ |
||
465 | q |
||
466 | } |
||
467 | s/.*/./; q'` |
||
468 | |||
469 | # Avoid depending upon Character Ranges. |
||
470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
473 | as_cr_digits='0123456789' |
||
474 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
475 | |||
476 | |||
477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
||
478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
||
479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
||
480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
||
481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
||
482 | sed -n ' |
||
483 | p |
||
484 | /[$]LINENO/= |
||
485 | ' <$as_myself | |
||
486 | sed ' |
||
487 | s/[$]LINENO.*/&-/ |
||
488 | t lineno |
||
489 | b |
||
490 | :lineno |
||
491 | N |
||
492 | :loop |
||
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
494 | t loop |
||
495 | s/-\n.*// |
||
496 | ' >$as_me.lineno && |
||
497 | chmod +x "$as_me.lineno" || |
||
498 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
||
499 | |||
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
||
501 | # already done that, so ensure we don't try to do so again and fall |
||
502 | # in an infinite loop. This has already happened in practice. |
||
503 | _as_can_reexec=no; export _as_can_reexec |
||
504 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
505 | # (the dirname of $[0] is not the place where we might find the |
||
506 | # original and so on. Autoconf is especially sensitive to this). |
||
507 | . "./$as_me.lineno" |
||
508 | # Exit status is that of the last command. |
||
509 | exit |
||
510 | } |
||
511 | |||
512 | ECHO_C= ECHO_N= ECHO_T= |
||
513 | case `echo -n x` in #((((( |
||
514 | -n*) |
||
515 | case `echo 'xy\c'` in |
||
516 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
517 | xy) ECHO_C='\c';; |
||
518 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
519 | ECHO_T=' ';; |
||
520 | esac;; |
||
521 | *) |
||
522 | ECHO_N='-n';; |
||
523 | esac |
||
524 | |||
525 | rm -f conf$$ conf$$.exe conf$$.file |
||
526 | if test -d conf$$.dir; then |
||
527 | rm -f conf$$.dir/conf$$.file |
||
528 | else |
||
529 | rm -f conf$$.dir |
||
530 | mkdir conf$$.dir 2>/dev/null |
||
531 | fi |
||
532 | if (echo >conf$$.file) 2>/dev/null; then |
||
533 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
534 | as_ln_s='ln -s' |
||
535 | # ... but there are two gotchas: |
||
536 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
537 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
538 | # In both cases, we have to default to `cp -pR'. |
||
539 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
540 | as_ln_s='cp -pR' |
||
541 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
542 | as_ln_s=ln |
||
543 | else |
||
544 | as_ln_s='cp -pR' |
||
545 | fi |
||
546 | else |
||
547 | as_ln_s='cp -pR' |
||
548 | fi |
||
549 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
550 | rmdir conf$$.dir 2>/dev/null |
||
551 | |||
552 | if mkdir -p . 2>/dev/null; then |
||
553 | as_mkdir_p='mkdir -p "$as_dir"' |
||
554 | else |
||
555 | test -d ./-p && rmdir ./-p |
||
556 | as_mkdir_p=false |
||
557 | fi |
||
558 | |||
559 | as_test_x='test -x' |
||
560 | as_executable_p=as_fn_executable_p |
||
561 | |||
562 | # Sed expression to map a string onto a valid CPP name. |
||
563 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
564 | |||
565 | # Sed expression to map a string onto a valid variable name. |
||
566 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
567 | |||
568 | as_awk_strverscmp=' |
||
569 | # Use only awk features that work with 7th edition Unix awk (1978). |
||
570 | # My, what an old awk you have, Mr. Solaris! |
||
571 | END { |
||
572 | while (length(v1) && length(v2)) { |
||
573 | # Set d1 to be the next thing to compare from v1, and likewise for d2. |
||
574 | # Normally this is a single character, but if v1 and v2 contain digits, |
||
575 | # compare them as integers and fractions as strverscmp does. |
||
576 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { |
||
577 | # Split v1 and v2 into their leading digit string components d1 and d2, |
||
578 | # and advance v1 and v2 past the leading digit strings. |
||
579 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue |
||
580 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue |
||
581 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) |
||
582 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) |
||
583 | if (d1 ~ /^0/) { |
||
584 | if (d2 ~ /^0/) { |
||
585 | # Compare two fractions. |
||
586 | while (d1 ~ /^0/ && d2 ~ /^0/) { |
||
587 | d1 = substr(d1, 2); len1-- |
||
588 | d2 = substr(d2, 2); len2-- |
||
589 | } |
||
590 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { |
||
591 | # The two components differ in length, and the common prefix |
||
592 | # contains only leading zeros. Consider the longer to be less. |
||
593 | d1 = -len1 |
||
594 | d2 = -len2 |
||
595 | } else { |
||
596 | # Otherwise, compare as strings. |
||
597 | d1 = "x" d1 |
||
598 | d2 = "x" d2 |
||
599 | } |
||
600 | } else { |
||
601 | # A fraction is less than an integer. |
||
602 | exit 1 |
||
603 | } |
||
604 | } else { |
||
605 | if (d2 ~ /^0/) { |
||
606 | # An integer is greater than a fraction. |
||
607 | exit 2 |
||
608 | } else { |
||
609 | # Compare two integers. |
||
610 | d1 += 0 |
||
611 | d2 += 0 |
||
612 | } |
||
613 | } |
||
614 | } else { |
||
615 | # The normal case, without worrying about digits. |
||
616 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) |
||
617 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) |
||
618 | } |
||
619 | if (d1 < d2) exit 1 |
||
620 | if (d1 > d2) exit 2 |
||
621 | } |
||
622 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), |
||
623 | # which mishandles some comparisons of empty strings to integers. |
||
624 | if (length(v2)) exit 1 |
||
625 | if (length(v1)) exit 2 |
||
626 | } |
||
627 | ' |
||
628 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
629 | |||
630 | |||
631 | test -n "$DJDIR" || exec 7<&0 </dev/null |
||
632 | exec 6>&1 |
||
633 | |||
634 | # Name of the host. |
||
635 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
||
636 | # so uname gets run too. |
||
637 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
||
638 | |||
639 | # |
||
640 | # Initializations. |
||
641 | # |
||
642 | ac_default_prefix=/usr/local |
||
643 | ac_clean_files= |
||
644 | ac_config_libobj_dir=. |
||
645 | LIBOBJS= |
||
646 | cross_compiling=no |
||
647 | subdirs= |
||
648 | MFLAGS= |
||
649 | MAKEFLAGS= |
||
650 | |||
651 | # Identity of this package. |
||
652 | PACKAGE_NAME='glib' |
||
653 | PACKAGE_TARNAME='glib' |
||
654 | PACKAGE_VERSION='2.48.1' |
||
655 | PACKAGE_STRING='glib 2.48.1' |
||
656 | PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib' |
||
657 | PACKAGE_URL='' |
||
658 | |||
659 | ac_unique_file="glib/glib.h" |
||
660 | # Factoring default headers for most tests. |
||
661 | ac_includes_default="\ |
||
662 | #include <stdio.h> |
||
663 | #ifdef HAVE_SYS_TYPES_H |
||
664 | # include <sys/types.h> |
||
665 | #endif |
||
666 | #ifdef HAVE_SYS_STAT_H |
||
667 | # include <sys/stat.h> |
||
668 | #endif |
||
669 | #ifdef STDC_HEADERS |
||
670 | # include <stdlib.h> |
||
671 | # include <stddef.h> |
||
672 | #else |
||
673 | # ifdef HAVE_STDLIB_H |
||
674 | # include <stdlib.h> |
||
675 | # endif |
||
676 | #endif |
||
677 | #ifdef HAVE_STRING_H |
||
678 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
||
679 | # include <memory.h> |
||
680 | # endif |
||
681 | # include <string.h> |
||
682 | #endif |
||
683 | #ifdef HAVE_STRINGS_H |
||
684 | # include <strings.h> |
||
685 | #endif |
||
686 | #ifdef HAVE_INTTYPES_H |
||
687 | # include <inttypes.h> |
||
688 | #endif |
||
689 | #ifdef HAVE_STDINT_H |
||
690 | # include <stdint.h> |
||
691 | #endif |
||
692 | #ifdef HAVE_UNISTD_H |
||
693 | # include <unistd.h> |
||
694 | #endif" |
||
695 | |||
696 | ac_subst_vars='am__EXEEXT_FALSE |
||
697 | am__EXEEXT_TRUE |
||
698 | LTLIBOBJS |
||
699 | LIBOBJS |
||
700 | gio_INCLUDES |
||
701 | gmodule_INCLUDES |
||
702 | gobject_INCLUDES |
||
703 | glib_INCLUDES |
||
704 | config_h_INCLUDES |
||
705 | GLIB_WARN_CFLAGS |
||
706 | GLIB_HIDDEN_VISIBILITY_CFLAGS |
||
707 | GLIB_LINK_FLAGS |
||
708 | HAVE_DBUS_DAEMON_FALSE |
||
709 | HAVE_DBUS_DAEMON_TRUE |
||
710 | DBUS_DAEMON |
||
711 | HAVE_DBUS1_FALSE |
||
712 | HAVE_DBUS1_TRUE |
||
713 | DBUS1_LIBS |
||
714 | DBUS1_CFLAGS |
||
715 | LTP_GENHTML |
||
716 | LTP |
||
717 | SHTOOL |
||
718 | ABS_TAPSET_DIR |
||
719 | ENABLE_SYSTEMTAP_FALSE |
||
720 | ENABLE_SYSTEMTAP_TRUE |
||
721 | ENABLE_DTRACE_FALSE |
||
722 | ENABLE_DTRACE_TRUE |
||
723 | DTRACE |
||
724 | ENABLE_MAN_FALSE |
||
725 | ENABLE_MAN_TRUE |
||
726 | XMLCATALOG |
||
727 | XML_CATALOG_FILE |
||
728 | XSLTPROC |
||
729 | GTK_DOC_USE_REBASE_FALSE |
||
730 | GTK_DOC_USE_REBASE_TRUE |
||
731 | GTK_DOC_USE_LIBTOOL_FALSE |
||
732 | GTK_DOC_USE_LIBTOOL_TRUE |
||
733 | GTK_DOC_BUILD_PDF_FALSE |
||
734 | GTK_DOC_BUILD_PDF_TRUE |
||
735 | GTK_DOC_BUILD_HTML_FALSE |
||
736 | GTK_DOC_BUILD_HTML_TRUE |
||
737 | ENABLE_GTK_DOC_FALSE |
||
738 | ENABLE_GTK_DOC_TRUE |
||
739 | HAVE_GTK_DOC_FALSE |
||
740 | HAVE_GTK_DOC_TRUE |
||
741 | GTKDOC_DEPS_LIBS |
||
742 | GTKDOC_DEPS_CFLAGS |
||
743 | HTML_DIR |
||
744 | GTKDOC_MKPDF |
||
745 | GTKDOC_REBASE |
||
746 | GTKDOC_CHECK_PATH |
||
747 | GTKDOC_CHECK |
||
748 | CROSS_COMPILING_FALSE |
||
749 | CROSS_COMPILING_TRUE |
||
750 | G_LIBS_EXTRA |
||
751 | PCRE_WARN_CFLAGS |
||
752 | PCRE_REQUIRES |
||
753 | PCRE_LIBS |
||
754 | PCRE_CFLAGS |
||
755 | USE_SYSTEM_PCRE_FALSE |
||
756 | USE_SYSTEM_PCRE_TRUE |
||
757 | HAVE_EVENTFD_FALSE |
||
758 | HAVE_EVENTFD_TRUE |
||
759 | G_THREAD_LIBS_EXTRA |
||
760 | G_THREAD_LIBS_FOR_GTHREAD |
||
761 | G_THREAD_LIBS |
||
762 | G_THREAD_CFLAGS |
||
763 | THREADS_NONE_FALSE |
||
764 | THREADS_NONE_TRUE |
||
765 | THREADS_WIN32_FALSE |
||
766 | THREADS_WIN32_TRUE |
||
767 | THREADS_POSIX_FALSE |
||
768 | THREADS_POSIX_TRUE |
||
769 | GTHREAD_COMPILE_IMPL_DEFINES |
||
770 | PLATFORM_WIN32_FALSE |
||
771 | PLATFORM_WIN32_TRUE |
||
772 | ENABLE_TIMELOOP_FALSE |
||
773 | ENABLE_TIMELOOP_TRUE |
||
774 | PLATFORMDEP |
||
775 | LIBELF_LIBS |
||
776 | LIBELF_CFLAGS |
||
777 | XATTR_LIBS |
||
778 | HAVE_FAM_FALSE |
||
779 | HAVE_FAM_TRUE |
||
780 | FAM_LIBS |
||
781 | HAVE_KQUEUE_FALSE |
||
782 | HAVE_KQUEUE_TRUE |
||
783 | HAVE_INOTIFY_FALSE |
||
784 | HAVE_INOTIFY_TRUE |
||
785 | SELINUX_LIBS |
||
786 | GIO_MODULE_DIR |
||
787 | GIO |
||
788 | GSPAWN |
||
789 | GLIB_DEBUG_FLAGS |
||
790 | G_MODULE_NEED_USCORE |
||
791 | G_MODULE_BROKEN_RTLD_GLOBAL |
||
792 | G_MODULE_HAVE_DLERROR |
||
793 | G_MODULE_LDFLAGS |
||
794 | G_MODULE_PLUGIN_LIBS |
||
795 | G_MODULE_LIBS_EXTRA |
||
796 | G_MODULE_LIBS |
||
797 | G_MODULE_IMPL |
||
798 | G_MODULE_SUPPORTED |
||
799 | HAVE_GOOD_PRINTF_FALSE |
||
800 | HAVE_GOOD_PRINTF_TRUE |
||
801 | HAVE_NETLINK_FALSE |
||
802 | HAVE_NETLINK_TRUE |
||
803 | NETWORK_LIBS |
||
804 | NAMESER_COMPAT_INCLUDE |
||
805 | WSPIAPI_INCLUDE |
||
806 | GLIBC21 |
||
807 | HAVE_SUNSTUDIO_VISIBILITY_FALSE |
||
808 | HAVE_SUNSTUDIO_VISIBILITY_TRUE |
||
809 | HAVE_GNUC_VISIBILITY_FALSE |
||
810 | HAVE_GNUC_VISIBILITY_TRUE |
||
811 | ALLOCA |
||
812 | OS_WIN32_AND_DLL_COMPILATION_FALSE |
||
813 | OS_WIN32_AND_DLL_COMPILATION_TRUE |
||
814 | GLIB_WIN32_STATIC_COMPILATION_DEFINE |
||
815 | CXXCPP |
||
816 | LT_SYS_LIBRARY_PATH |
||
817 | OTOOL64 |
||
818 | OTOOL |
||
819 | LIPO |
||
820 | NMEDIT |
||
821 | DSYMUTIL |
||
822 | MANIFEST_TOOL |
||
823 | ac_ct_AR |
||
824 | AR |
||
825 | LN_S |
||
826 | ac_ct_DUMPBIN |
||
827 | DUMPBIN |
||
828 | LD |
||
829 | FGREP |
||
830 | SED |
||
831 | LIBTOOL |
||
832 | OBJDUMP |
||
833 | AS |
||
834 | ICONV_LIBS |
||
835 | GETTEXT_PACKAGE |
||
836 | MKINSTALLDIRS |
||
837 | POSUB |
||
838 | POFILES |
||
839 | PO_IN_DATADIR_FALSE |
||
840 | PO_IN_DATADIR_TRUE |
||
841 | INTLLIBS |
||
842 | INSTOBJEXT |
||
843 | GMOFILES |
||
844 | DATADIRNAME |
||
845 | CATOBJEXT |
||
846 | CATALOGS |
||
847 | XGETTEXT |
||
848 | GMSGFMT |
||
849 | MSGFMT_OPTS |
||
850 | MSGFMT |
||
851 | USE_NLS |
||
852 | CONFIG_STATUS_DEPENDENCIES |
||
853 | LIBFFI_LIBS |
||
854 | LIBFFI_CFLAGS |
||
855 | ZLIB_LIBS |
||
856 | ZLIB_CFLAGS |
||
857 | pkgpyexecdir |
||
858 | pyexecdir |
||
859 | pkgpythondir |
||
860 | pythondir |
||
861 | PYTHON_PLATFORM |
||
862 | PYTHON_EXEC_PREFIX |
||
863 | PYTHON_PREFIX |
||
864 | PYTHON_VERSION |
||
865 | PYTHON |
||
866 | PERL_PATH |
||
867 | REBUILD |
||
868 | INDENT |
||
869 | PERL |
||
870 | GLIB_EXTRA_CFLAGS |
||
871 | PKG_CONFIG_LIBDIR |
||
872 | PKG_CONFIG_PATH |
||
873 | PKG_CONFIG |
||
874 | HAVE_CXX_FALSE |
||
875 | HAVE_CXX_TRUE |
||
876 | am__fastdepCXX_FALSE |
||
877 | am__fastdepCXX_TRUE |
||
878 | CXXDEPMODE |
||
879 | CXXFLAGS |
||
880 | ac_ct_CXX |
||
881 | CXX |
||
882 | HAVE_GLIB_RUNTIME_LIBDIR_FALSE |
||
883 | HAVE_GLIB_RUNTIME_LIBDIR_TRUE |
||
884 | GLIB_RUNTIME_LIBDIR |
||
885 | installed_testdir |
||
886 | installed_test_metadir |
||
887 | ENABLE_ALWAYS_BUILD_TESTS_FALSE |
||
888 | ENABLE_ALWAYS_BUILD_TESTS_TRUE |
||
889 | ENABLE_INSTALLED_TESTS_FALSE |
||
890 | ENABLE_INSTALLED_TESTS_TRUE |
||
891 | COCOA_LIBS |
||
892 | CARBON_LIBS |
||
893 | MS_LIB_AVAILABLE_FALSE |
||
894 | MS_LIB_AVAILABLE_TRUE |
||
895 | ms_librarian |
||
896 | DLLTOOL |
||
897 | RANLIB |
||
898 | NM |
||
899 | WINDRES |
||
900 | OS_COCOA_FALSE |
||
901 | OS_COCOA_TRUE |
||
902 | OS_CARBON_FALSE |
||
903 | OS_CARBON_TRUE |
||
904 | OS_LINUX_FALSE |
||
905 | OS_LINUX_TRUE |
||
906 | OS_UNIX_FALSE |
||
907 | OS_UNIX_TRUE |
||
908 | OS_WIN32_X64_FALSE |
||
909 | OS_WIN32_X64_TRUE |
||
910 | OS_WIN32_FALSE |
||
911 | OS_WIN32_TRUE |
||
912 | LIB_EXE_MACHINE_FLAG |
||
913 | host_os |
||
914 | host_vendor |
||
915 | host_cpu |
||
916 | host |
||
917 | build_os |
||
918 | build_vendor |
||
919 | build_cpu |
||
920 | build |
||
921 | HAVE_GCC_FALSE |
||
922 | HAVE_GCC_TRUE |
||
923 | EGREP |
||
924 | GREP |
||
925 | CPP |
||
926 | am__fastdepCC_FALSE |
||
927 | am__fastdepCC_TRUE |
||
928 | CCDEPMODE |
||
929 | am__nodep |
||
930 | AMDEPBACKSLASH |
||
931 | AMDEP_FALSE |
||
932 | AMDEP_TRUE |
||
933 | am__quote |
||
934 | am__include |
||
935 | DEPDIR |
||
936 | OBJEXT |
||
937 | EXEEXT |
||
938 | ac_ct_CC |
||
939 | CPPFLAGS |
||
940 | LDFLAGS |
||
941 | CFLAGS |
||
942 | CC |
||
943 | LT_CURRENT_MINUS_AGE |
||
944 | LT_AGE |
||
945 | LT_REVISION |
||
946 | LT_CURRENT |
||
947 | LT_RELEASE |
||
948 | GLIB_BINARY_AGE |
||
949 | GLIB_INTERFACE_AGE |
||
950 | GLIB_VERSION |
||
951 | GLIB_MICRO_VERSION |
||
952 | GLIB_MINOR_VERSION |
||
953 | GLIB_MAJOR_VERSION |
||
954 | MAINT |
||
955 | MAINTAINER_MODE_FALSE |
||
956 | MAINTAINER_MODE_TRUE |
||
957 | AM_BACKSLASH |
||
958 | AM_DEFAULT_VERBOSITY |
||
959 | AM_DEFAULT_V |
||
960 | AM_V |
||
961 | am__untar |
||
962 | am__tar |
||
963 | AMTAR |
||
964 | am__leading_dot |
||
965 | SET_MAKE |
||
966 | AWK |
||
967 | mkdir_p |
||
968 | MKDIR_P |
||
969 | INSTALL_STRIP_PROGRAM |
||
970 | STRIP |
||
971 | install_sh |
||
972 | MAKEINFO |
||
973 | AUTOHEADER |
||
974 | AUTOMAKE |
||
975 | AUTOCONF |
||
976 | ACLOCAL |
||
977 | VERSION |
||
978 | PACKAGE |
||
979 | CYGPATH_W |
||
980 | am__isrc |
||
981 | INSTALL_DATA |
||
982 | INSTALL_SCRIPT |
||
983 | INSTALL_PROGRAM |
||
984 | target_alias |
||
985 | host_alias |
||
986 | build_alias |
||
987 | LIBS |
||
988 | ECHO_T |
||
989 | ECHO_N |
||
990 | ECHO_C |
||
991 | DEFS |
||
992 | mandir |
||
993 | localedir |
||
994 | libdir |
||
995 | psdir |
||
996 | pdfdir |
||
997 | dvidir |
||
998 | htmldir |
||
999 | infodir |
||
1000 | docdir |
||
1001 | oldincludedir |
||
1002 | includedir |
||
1003 | runstatedir |
||
1004 | localstatedir |
||
1005 | sharedstatedir |
||
1006 | sysconfdir |
||
1007 | datadir |
||
1008 | datarootdir |
||
1009 | libexecdir |
||
1010 | sbindir |
||
1011 | bindir |
||
1012 | program_transform_name |
||
1013 | prefix |
||
1014 | exec_prefix |
||
1015 | PACKAGE_URL |
||
1016 | PACKAGE_BUGREPORT |
||
1017 | PACKAGE_STRING |
||
1018 | PACKAGE_VERSION |
||
1019 | PACKAGE_TARNAME |
||
1020 | PACKAGE_NAME |
||
1021 | PATH_SEPARATOR |
||
1022 | SHELL' |
||
1023 | ac_subst_files='' |
||
1024 | ac_user_opts=' |
||
1025 | enable_option_checking |
||
1026 | enable_silent_rules |
||
1027 | enable_maintainer_mode |
||
1028 | enable_dependency_tracking |
||
1029 | enable_debug |
||
1030 | enable_gc_friendly |
||
1031 | enable_mem_pools |
||
1032 | enable_rebuilds |
||
1033 | enable_installed_tests |
||
1034 | enable_always_build_tests |
||
1035 | with_runtime_libdir |
||
1036 | enable_largefile |
||
1037 | with_python |
||
1038 | with_libiconv |
||
1039 | enable_static |
||
1040 | enable_shared |
||
1041 | with_pic |
||
1042 | enable_fast_install |
||
1043 | with_aix_soname |
||
1044 | with_gnu_ld |
||
1045 | with_sysroot |
||
1046 | enable_libtool_lock |
||
1047 | enable_included_printf |
||
1048 | with_gio_module_dir |
||
1049 | enable_selinux |
||
1050 | enable_fam |
||
1051 | enable_xattr |
||
1052 | enable_libelf |
||
1053 | with_threads |
||
1054 | with_pcre |
||
1055 | with_html_dir |
||
1056 | enable_gtk_doc |
||
1057 | enable_gtk_doc_html |
||
1058 | enable_gtk_doc_pdf |
||
1059 | enable_man |
||
1060 | with_xml_catalog |
||
1061 | enable_dtrace |
||
1062 | enable_systemtap |
||
1063 | with_tapset_install_dir |
||
1064 | enable_coverage |
||
1065 | enable_Bsymbolic |
||
1066 | enable_znodelete |
||
1067 | enable_compile_warnings |
||
1068 | ' |
||
1069 | ac_precious_vars='build_alias |
||
1070 | host_alias |
||
1071 | target_alias |
||
1072 | CC |
||
1073 | CFLAGS |
||
1074 | LDFLAGS |
||
1075 | LIBS |
||
1076 | CPPFLAGS |
||
1077 | CPP |
||
1078 | CXX |
||
1079 | CXXFLAGS |
||
1080 | CCC |
||
1081 | PKG_CONFIG |
||
1082 | PKG_CONFIG_PATH |
||
1083 | PKG_CONFIG_LIBDIR |
||
1084 | PYTHON |
||
1085 | ZLIB_CFLAGS |
||
1086 | ZLIB_LIBS |
||
1087 | LIBFFI_CFLAGS |
||
1088 | LIBFFI_LIBS |
||
1089 | LT_SYS_LIBRARY_PATH |
||
1090 | CXXCPP |
||
1091 | LIBELF_CFLAGS |
||
1092 | LIBELF_LIBS |
||
1093 | PCRE_CFLAGS |
||
1094 | PCRE_LIBS |
||
1095 | GTKDOC_DEPS_CFLAGS |
||
1096 | GTKDOC_DEPS_LIBS |
||
1097 | DBUS1_CFLAGS |
||
1098 | DBUS1_LIBS' |
||
1099 | |||
1100 | |||
1101 | # Initialize some variables set by options. |
||
1102 | ac_init_help= |
||
1103 | ac_init_version=false |
||
1104 | ac_unrecognized_opts= |
||
1105 | ac_unrecognized_sep= |
||
1106 | # The variables have the same names as the options, with |
||
1107 | # dashes changed to underlines. |
||
1108 | cache_file=/dev/null |
||
1109 | exec_prefix=NONE |
||
1110 | no_create= |
||
1111 | no_recursion= |
||
1112 | prefix=NONE |
||
1113 | program_prefix=NONE |
||
1114 | program_suffix=NONE |
||
1115 | program_transform_name=s,x,x, |
||
1116 | silent= |
||
1117 | site= |
||
1118 | srcdir= |
||
1119 | verbose= |
||
1120 | x_includes=NONE |
||
1121 | x_libraries=NONE |
||
1122 | |||
1123 | # Installation directory options. |
||
1124 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
||
1125 | # and all the variables that are supposed to be based on exec_prefix |
||
1126 | # by default will actually change. |
||
1127 | # Use braces instead of parens because sh, perl, etc. also accept them. |
||
1128 | # (The list follows the same order as the GNU Coding Standards.) |
||
1129 | bindir='${exec_prefix}/bin' |
||
1130 | sbindir='${exec_prefix}/sbin' |
||
1131 | libexecdir='${exec_prefix}/libexec' |
||
1132 | datarootdir='${prefix}/share' |
||
1133 | datadir='${datarootdir}' |
||
1134 | sysconfdir='${prefix}/etc' |
||
1135 | sharedstatedir='${prefix}/com' |
||
1136 | localstatedir='${prefix}/var' |
||
1137 | runstatedir='${localstatedir}/run' |
||
1138 | includedir='${prefix}/include' |
||
1139 | oldincludedir='/usr/include' |
||
1140 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
||
1141 | infodir='${datarootdir}/info' |
||
1142 | htmldir='${docdir}' |
||
1143 | dvidir='${docdir}' |
||
1144 | pdfdir='${docdir}' |
||
1145 | psdir='${docdir}' |
||
1146 | libdir='${exec_prefix}/lib' |
||
1147 | localedir='${datarootdir}/locale' |
||
1148 | mandir='${datarootdir}/man' |
||
1149 | |||
1150 | ac_prev= |
||
1151 | ac_dashdash= |
||
1152 | for ac_option |
||
1153 | do |
||
1154 | # If the previous option needs an argument, assign it. |
||
1155 | if test -n "$ac_prev"; then |
||
1156 | eval $ac_prev=\$ac_option |
||
1157 | ac_prev= |
||
1158 | continue |
||
1159 | fi |
||
1160 | |||
1161 | case $ac_option in |
||
1162 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
||
1163 | *=) ac_optarg= ;; |
||
1164 | *) ac_optarg=yes ;; |
||
1165 | esac |
||
1166 | |||
1167 | # Accept the important Cygnus configure options, so we can diagnose typos. |
||
1168 | |||
1169 | case $ac_dashdash$ac_option in |
||
1170 | --) |
||
1171 | ac_dashdash=yes ;; |
||
1172 | |||
1173 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
||
1174 | ac_prev=bindir ;; |
||
1175 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
||
1176 | bindir=$ac_optarg ;; |
||
1177 | |||
1178 | -build | --build | --buil | --bui | --bu) |
||
1179 | ac_prev=build_alias ;; |
||
1180 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
||
1181 | build_alias=$ac_optarg ;; |
||
1182 | |||
1183 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
||
1184 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
||
1185 | ac_prev=cache_file ;; |
||
1186 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
||
1187 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
||
1188 | cache_file=$ac_optarg ;; |
||
1189 | |||
1190 | --config-cache | -C) |
||
1191 | cache_file=config.cache ;; |
||
1192 | |||
1193 | -datadir | --datadir | --datadi | --datad) |
||
1194 | ac_prev=datadir ;; |
||
1195 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
||
1196 | datadir=$ac_optarg ;; |
||
1197 | |||
1198 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
||
1199 | | --dataroo | --dataro | --datar) |
||
1200 | ac_prev=datarootdir ;; |
||
1201 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
||
1202 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
||
1203 | datarootdir=$ac_optarg ;; |
||
1204 | |||
1205 | -disable-* | --disable-*) |
||
1206 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
||
1207 | # Reject names that are not valid shell variable names. |
||
1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1209 | as_fn_error $? "invalid feature name: $ac_useropt" |
||
1210 | ac_useropt_orig=$ac_useropt |
||
1211 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1212 | case $ac_user_opts in |
||
1213 | *" |
||
1214 | "enable_$ac_useropt" |
||
1215 | "*) ;; |
||
1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
||
1217 | ac_unrecognized_sep=', ';; |
||
1218 | esac |
||
1219 | eval enable_$ac_useropt=no ;; |
||
1220 | |||
1221 | -docdir | --docdir | --docdi | --doc | --do) |
||
1222 | ac_prev=docdir ;; |
||
1223 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
||
1224 | docdir=$ac_optarg ;; |
||
1225 | |||
1226 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
||
1227 | ac_prev=dvidir ;; |
||
1228 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
||
1229 | dvidir=$ac_optarg ;; |
||
1230 | |||
1231 | -enable-* | --enable-*) |
||
1232 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
||
1233 | # Reject names that are not valid shell variable names. |
||
1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1235 | as_fn_error $? "invalid feature name: $ac_useropt" |
||
1236 | ac_useropt_orig=$ac_useropt |
||
1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1238 | case $ac_user_opts in |
||
1239 | *" |
||
1240 | "enable_$ac_useropt" |
||
1241 | "*) ;; |
||
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
||
1243 | ac_unrecognized_sep=', ';; |
||
1244 | esac |
||
1245 | eval enable_$ac_useropt=\$ac_optarg ;; |
||
1246 | |||
1247 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
||
1248 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
||
1249 | | --exec | --exe | --ex) |
||
1250 | ac_prev=exec_prefix ;; |
||
1251 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
||
1252 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
||
1253 | | --exec=* | --exe=* | --ex=*) |
||
1254 | exec_prefix=$ac_optarg ;; |
||
1255 | |||
1256 | -gas | --gas | --ga | --g) |
||
1257 | # Obsolete; use --with-gas. |
||
1258 | with_gas=yes ;; |
||
1259 | |||
1260 | -help | --help | --hel | --he | -h) |
||
1261 | ac_init_help=long ;; |
||
1262 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
||
1263 | ac_init_help=recursive ;; |
||
1264 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
||
1265 | ac_init_help=short ;; |
||
1266 | |||
1267 | -host | --host | --hos | --ho) |
||
1268 | ac_prev=host_alias ;; |
||
1269 | -host=* | --host=* | --hos=* | --ho=*) |
||
1270 | host_alias=$ac_optarg ;; |
||
1271 | |||
1272 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
||
1273 | ac_prev=htmldir ;; |
||
1274 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
||
1275 | | --ht=*) |
||
1276 | htmldir=$ac_optarg ;; |
||
1277 | |||
1278 | -includedir | --includedir | --includedi | --included | --include \ |
||
1279 | | --includ | --inclu | --incl | --inc) |
||
1280 | ac_prev=includedir ;; |
||
1281 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
||
1282 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
||
1283 | includedir=$ac_optarg ;; |
||
1284 | |||
1285 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
||
1286 | ac_prev=infodir ;; |
||
1287 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
||
1288 | infodir=$ac_optarg ;; |
||
1289 | |||
1290 | -libdir | --libdir | --libdi | --libd) |
||
1291 | ac_prev=libdir ;; |
||
1292 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
||
1293 | libdir=$ac_optarg ;; |
||
1294 | |||
1295 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
||
1296 | | --libexe | --libex | --libe) |
||
1297 | ac_prev=libexecdir ;; |
||
1298 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
||
1299 | | --libexe=* | --libex=* | --libe=*) |
||
1300 | libexecdir=$ac_optarg ;; |
||
1301 | |||
1302 | -localedir | --localedir | --localedi | --localed | --locale) |
||
1303 | ac_prev=localedir ;; |
||
1304 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
||
1305 | localedir=$ac_optarg ;; |
||
1306 | |||
1307 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
||
1308 | | --localstate | --localstat | --localsta | --localst | --locals) |
||
1309 | ac_prev=localstatedir ;; |
||
1310 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
||
1311 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
||
1312 | localstatedir=$ac_optarg ;; |
||
1313 | |||
1314 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
||
1315 | ac_prev=mandir ;; |
||
1316 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
||
1317 | mandir=$ac_optarg ;; |
||
1318 | |||
1319 | -nfp | --nfp | --nf) |
||
1320 | # Obsolete; use --without-fp. |
||
1321 | with_fp=no ;; |
||
1322 | |||
1323 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
||
1324 | | --no-cr | --no-c | -n) |
||
1325 | no_create=yes ;; |
||
1326 | |||
1327 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
||
1328 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
||
1329 | no_recursion=yes ;; |
||
1330 | |||
1331 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
||
1332 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
||
1333 | | --oldin | --oldi | --old | --ol | --o) |
||
1334 | ac_prev=oldincludedir ;; |
||
1335 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
||
1336 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
||
1337 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
||
1338 | oldincludedir=$ac_optarg ;; |
||
1339 | |||
1340 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
||
1341 | ac_prev=prefix ;; |
||
1342 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
||
1343 | prefix=$ac_optarg ;; |
||
1344 | |||
1345 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
||
1346 | | --program-pre | --program-pr | --program-p) |
||
1347 | ac_prev=program_prefix ;; |
||
1348 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
||
1349 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
||
1350 | program_prefix=$ac_optarg ;; |
||
1351 | |||
1352 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
||
1353 | | --program-suf | --program-su | --program-s) |
||
1354 | ac_prev=program_suffix ;; |
||
1355 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
||
1356 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
||
1357 | program_suffix=$ac_optarg ;; |
||
1358 | |||
1359 | -program-transform-name | --program-transform-name \ |
||
1360 | | --program-transform-nam | --program-transform-na \ |
||
1361 | | --program-transform-n | --program-transform- \ |
||
1362 | | --program-transform | --program-transfor \ |
||
1363 | | --program-transfo | --program-transf \ |
||
1364 | | --program-trans | --program-tran \ |
||
1365 | | --progr-tra | --program-tr | --program-t) |
||
1366 | ac_prev=program_transform_name ;; |
||
1367 | -program-transform-name=* | --program-transform-name=* \ |
||
1368 | | --program-transform-nam=* | --program-transform-na=* \ |
||
1369 | | --program-transform-n=* | --program-transform-=* \ |
||
1370 | | --program-transform=* | --program-transfor=* \ |
||
1371 | | --program-transfo=* | --program-transf=* \ |
||
1372 | | --program-trans=* | --program-tran=* \ |
||
1373 | | --progr-tra=* | --program-tr=* | --program-t=*) |
||
1374 | program_transform_name=$ac_optarg ;; |
||
1375 | |||
1376 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
||
1377 | ac_prev=pdfdir ;; |
||
1378 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
||
1379 | pdfdir=$ac_optarg ;; |
||
1380 | |||
1381 | -psdir | --psdir | --psdi | --psd | --ps) |
||
1382 | ac_prev=psdir ;; |
||
1383 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
||
1384 | psdir=$ac_optarg ;; |
||
1385 | |||
1386 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1387 | | -silent | --silent | --silen | --sile | --sil) |
||
1388 | silent=yes ;; |
||
1389 | |||
1390 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
||
1391 | | --runstate | --runstat | --runsta | --runst | --runs \ |
||
1392 | | --run | --ru | --r) |
||
1393 | ac_prev=runstatedir ;; |
||
1394 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
||
1395 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
||
1396 | | --run=* | --ru=* | --r=*) |
||
1397 | runstatedir=$ac_optarg ;; |
||
1398 | |||
1399 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
||
1400 | ac_prev=sbindir ;; |
||
1401 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
||
1402 | | --sbi=* | --sb=*) |
||
1403 | sbindir=$ac_optarg ;; |
||
1404 | |||
1405 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
||
1406 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
||
1407 | | --sharedst | --shareds | --shared | --share | --shar \ |
||
1408 | | --sha | --sh) |
||
1409 | ac_prev=sharedstatedir ;; |
||
1410 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
||
1411 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
||
1412 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
||
1413 | | --sha=* | --sh=*) |
||
1414 | sharedstatedir=$ac_optarg ;; |
||
1415 | |||
1416 | -site | --site | --sit) |
||
1417 | ac_prev=site ;; |
||
1418 | -site=* | --site=* | --sit=*) |
||
1419 | site=$ac_optarg ;; |
||
1420 | |||
1421 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
||
1422 | ac_prev=srcdir ;; |
||
1423 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
||
1424 | srcdir=$ac_optarg ;; |
||
1425 | |||
1426 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
||
1427 | | --syscon | --sysco | --sysc | --sys | --sy) |
||
1428 | ac_prev=sysconfdir ;; |
||
1429 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
||
1430 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
||
1431 | sysconfdir=$ac_optarg ;; |
||
1432 | |||
1433 | -target | --target | --targe | --targ | --tar | --ta | --t) |
||
1434 | ac_prev=target_alias ;; |
||
1435 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
||
1436 | target_alias=$ac_optarg ;; |
||
1437 | |||
1438 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
||
1439 | verbose=yes ;; |
||
1440 | |||
1441 | -version | --version | --versio | --versi | --vers | -V) |
||
1442 | ac_init_version=: ;; |
||
1443 | |||
1444 | -with-* | --with-*) |
||
1445 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
||
1446 | # Reject names that are not valid shell variable names. |
||
1447 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1448 | as_fn_error $? "invalid package name: $ac_useropt" |
||
1449 | ac_useropt_orig=$ac_useropt |
||
1450 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1451 | case $ac_user_opts in |
||
1452 | *" |
||
1453 | "with_$ac_useropt" |
||
1454 | "*) ;; |
||
1455 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
||
1456 | ac_unrecognized_sep=', ';; |
||
1457 | esac |
||
1458 | eval with_$ac_useropt=\$ac_optarg ;; |
||
1459 | |||
1460 | -without-* | --without-*) |
||
1461 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
||
1462 | # Reject names that are not valid shell variable names. |
||
1463 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1464 | as_fn_error $? "invalid package name: $ac_useropt" |
||
1465 | ac_useropt_orig=$ac_useropt |
||
1466 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1467 | case $ac_user_opts in |
||
1468 | *" |
||
1469 | "with_$ac_useropt" |
||
1470 | "*) ;; |
||
1471 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
||
1472 | ac_unrecognized_sep=', ';; |
||
1473 | esac |
||
1474 | eval with_$ac_useropt=no ;; |
||
1475 | |||
1476 | --x) |
||
1477 | # Obsolete; use --with-x. |
||
1478 | with_x=yes ;; |
||
1479 | |||
1480 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
||
1481 | | --x-incl | --x-inc | --x-in | --x-i) |
||
1482 | ac_prev=x_includes ;; |
||
1483 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
||
1484 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
||
1485 | x_includes=$ac_optarg ;; |
||
1486 | |||
1487 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
||
1488 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
||
1489 | ac_prev=x_libraries ;; |
||
1490 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
||
1491 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
||
1492 | x_libraries=$ac_optarg ;; |
||
1493 | |||
1494 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
||
1495 | Try \`$0 --help' for more information" |
||
1496 | ;; |
||
1497 | |||
1498 | *=*) |
||
1499 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
||
1500 | # Reject names that are not valid shell variable names. |
||
1501 | case $ac_envvar in #( |
||
1502 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
||
1503 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
||
1504 | esac |
||
1505 | eval $ac_envvar=\$ac_optarg |
||
1506 | export $ac_envvar ;; |
||
1507 | |||
1508 | *) |
||
1509 | # FIXME: should be removed in autoconf 3.0. |
||
1510 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
||
1511 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1512 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
||
1513 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
||
1514 | ;; |
||
1515 | |||
1516 | esac |
||
1517 | done |
||
1518 | |||
1519 | if test -n "$ac_prev"; then |
||
1520 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
||
1521 | as_fn_error $? "missing argument to $ac_option" |
||
1522 | fi |
||
1523 | |||
1524 | if test -n "$ac_unrecognized_opts"; then |
||
1525 | case $enable_option_checking in |
||
1526 | no) ;; |
||
1527 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
||
1528 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
||
1529 | esac |
||
1530 | fi |
||
1531 | |||
1532 | # Check all directory arguments for consistency. |
||
1533 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
||
1534 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
||
1535 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
||
1536 | libdir localedir mandir runstatedir |
||
1537 | do |
||
1538 | eval ac_val=\$$ac_var |
||
1539 | # Remove trailing slashes. |
||
1540 | case $ac_val in |
||
1541 | */ ) |
||
1542 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
||
1543 | eval $ac_var=\$ac_val;; |
||
1544 | esac |
||
1545 | # Be sure to have absolute directory names. |
||
1546 | case $ac_val in |
||
1547 | [\\/$]* | ?:[\\/]* ) continue;; |
||
1548 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
||
1549 | esac |
||
1550 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
||
1551 | done |
||
1552 | |||
1553 | # There might be people who depend on the old broken behavior: `$host' |
||
1554 | # used to hold the argument of --host etc. |
||
1555 | # FIXME: To remove some day. |
||
1556 | build=$build_alias |
||
1557 | host=$host_alias |
||
1558 | target=$target_alias |
||
1559 | |||
1560 | # FIXME: To remove some day. |
||
1561 | if test "x$host_alias" != x; then |
||
1562 | if test "x$build_alias" = x; then |
||
1563 | cross_compiling=maybe |
||
1564 | elif test "x$build_alias" != "x$host_alias"; then |
||
1565 | cross_compiling=yes |
||
1566 | fi |
||
1567 | fi |
||
1568 | |||
1569 | ac_tool_prefix= |
||
1570 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
||
1571 | |||
1572 | test "$silent" = yes && exec 6>/dev/null |
||
1573 | |||
1574 | |||
1575 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
||
1576 | ac_ls_di=`ls -di .` && |
||
1577 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
||
1578 | as_fn_error $? "working directory cannot be determined" |
||
1579 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
||
1580 | as_fn_error $? "pwd does not report name of working directory" |
||
1581 | |||
1582 | |||
1583 | # Find the source files, if location was not specified. |
||
1584 | if test -z "$srcdir"; then |
||
1585 | ac_srcdir_defaulted=yes |
||
1586 | # Try the directory containing this script, then the parent directory. |
||
1587 | ac_confdir=`$as_dirname -- "$as_myself" || |
||
1588 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
1589 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
||
1590 | X"$as_myself" : 'X\(//\)$' \| \ |
||
1591 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
||
1592 | $as_echo X"$as_myself" | |
||
1593 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
1594 | s//\1/ |
||
1595 | q |
||
1596 | } |
||
1597 | /^X\(\/\/\)[^/].*/{ |
||
1598 | s//\1/ |
||
1599 | q |
||
1600 | } |
||
1601 | /^X\(\/\/\)$/{ |
||
1602 | s//\1/ |
||
1603 | q |
||
1604 | } |
||
1605 | /^X\(\/\).*/{ |
||
1606 | s//\1/ |
||
1607 | q |
||
1608 | } |
||
1609 | s/.*/./; q'` |
||
1610 | srcdir=$ac_confdir |
||
1611 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1612 | srcdir=.. |
||
1613 | fi |
||
1614 | else |
||
1615 | ac_srcdir_defaulted=no |
||
1616 | fi |
||
1617 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1618 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
||
1619 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
||
1620 | fi |
||
1621 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
||
1622 | ac_abs_confdir=`( |
||
1623 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
||
1624 | pwd)` |
||
1625 | # When building in place, set srcdir=. |
||
1626 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
||
1627 | srcdir=. |
||
1628 | fi |
||
1629 | # Remove unnecessary trailing slashes from srcdir. |
||
1630 | # Double slashes in file names in object file debugging info |
||
1631 | # mess up M-x gdb in Emacs. |
||
1632 | case $srcdir in |
||
1633 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
||
1634 | esac |
||
1635 | for ac_var in $ac_precious_vars; do |
||
1636 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
||
1637 | eval ac_env_${ac_var}_value=\$${ac_var} |
||
1638 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
||
1639 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
||
1640 | done |
||
1641 | |||
1642 | # |
||
1643 | # Report the --help message. |
||
1644 | # |
||
1645 | if test "$ac_init_help" = "long"; then |
||
1646 | # Omit some internal or obsolete options to make the list less imposing. |
||
1647 | # This message is too long to be a string in the A/UX 3.1 sh. |
||
1648 | cat <<_ACEOF |
||
1649 | \`configure' configures glib 2.48.1 to adapt to many kinds of systems. |
||
1650 | |||
1651 | Usage: $0 [OPTION]... [VAR=VALUE]... |
||
1652 | |||
1653 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
||
1654 | VAR=VALUE. See below for descriptions of some of the useful variables. |
||
1655 | |||
1656 | Defaults for the options are specified in brackets. |
||
1657 | |||
1658 | Configuration: |
||
1659 | -h, --help display this help and exit |
||
1660 | --help=short display options specific to this package |
||
1661 | --help=recursive display the short help of all the included packages |
||
1662 | -V, --version display version information and exit |
||
1663 | -q, --quiet, --silent do not print \`checking ...' messages |
||
1664 | --cache-file=FILE cache test results in FILE [disabled] |
||
1665 | -C, --config-cache alias for \`--cache-file=config.cache' |
||
1666 | -n, --no-create do not create output files |
||
1667 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
||
1668 | |||
1669 | Installation directories: |
||
1670 | --prefix=PREFIX install architecture-independent files in PREFIX |
||
1671 | [$ac_default_prefix] |
||
1672 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
||
1673 | [PREFIX] |
||
1674 | |||
1675 | By default, \`make install' will install all the files in |
||
1676 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
||
1677 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
||
1678 | for instance \`--prefix=\$HOME'. |
||
1679 | |||
1680 | For better control, use the options below. |
||
1681 | |||
1682 | Fine tuning of the installation directories: |
||
1683 | --bindir=DIR user executables [EPREFIX/bin] |
||
1684 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
||
1685 | --libexecdir=DIR program executables [EPREFIX/libexec] |
||
1686 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
||
1687 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
||
1688 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
||
1689 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
||
1690 | --libdir=DIR object code libraries [EPREFIX/lib] |
||
1691 | --includedir=DIR C header files [PREFIX/include] |
||
1692 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
||
1693 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
||
1694 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
||
1695 | --infodir=DIR info documentation [DATAROOTDIR/info] |
||
1696 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
||
1697 | --mandir=DIR man documentation [DATAROOTDIR/man] |
||
1698 | --docdir=DIR documentation root [DATAROOTDIR/doc/glib] |
||
1699 | --htmldir=DIR html documentation [DOCDIR] |
||
1700 | --dvidir=DIR dvi documentation [DOCDIR] |
||
1701 | --pdfdir=DIR pdf documentation [DOCDIR] |
||
1702 | --psdir=DIR ps documentation [DOCDIR] |
||
1703 | _ACEOF |
||
1704 | |||
1705 | cat <<\_ACEOF |
||
1706 | |||
1707 | Program names: |
||
1708 | --program-prefix=PREFIX prepend PREFIX to installed program names |
||
1709 | --program-suffix=SUFFIX append SUFFIX to installed program names |
||
1710 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
||
1711 | |||
1712 | System types: |
||
1713 | --build=BUILD configure for building on BUILD [guessed] |
||
1714 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
||
1715 | _ACEOF |
||
1716 | fi |
||
1717 | |||
1718 | if test -n "$ac_init_help"; then |
||
1719 | case $ac_init_help in |
||
1720 | short | recursive ) echo "Configuration of glib 2.48.1:";; |
||
1721 | esac |
||
1722 | cat <<\_ACEOF |
||
1723 | |||
1724 | Optional Features: |
||
1725 | --disable-option-checking ignore unrecognized --enable/--with options |
||
1726 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
||
1727 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
||
1728 | --enable-silent-rules less verbose build output (undo: "make V=1") |
||
1729 | --disable-silent-rules verbose build output (undo: "make V=0") |
||
1730 | --disable-maintainer-mode |
||
1731 | disable make rules and dependencies not useful (and |
||
1732 | sometimes confusing) to the casual installer |
||
1733 | --enable-dependency-tracking |
||
1734 | do not reject slow dependency extractors |
||
1735 | --disable-dependency-tracking |
||
1736 | speeds up one-time build |
||
1737 | --enable-debug=[no/minimum/yes] |
||
1738 | turn on debugging [default=minimum] |
||
1739 | --enable-gc-friendly turn on garbage collector friendliness [default=no] |
||
1740 | --disable-mem-pools disable all glib memory pools |
||
1741 | --disable-rebuilds disable all source autogeneration rules |
||
1742 | --enable-installed-tests |
||
1743 | Enable installation of some test cases |
||
1744 | --enable-always-build-tests |
||
1745 | Enable always building tests during 'make all' |
||
1746 | --disable-largefile omit support for large files |
||
1747 | --enable-static[=PKGS] build static libraries [default=no] |
||
1748 | --enable-shared[=PKGS] build shared libraries [default=yes] |
||
1749 | --enable-fast-install[=PKGS] |
||
1750 | optimize for fast installation [default=yes] |
||
1751 | --disable-libtool-lock avoid locking (might break parallel builds) |
||
1752 | --enable-included-printf |
||
1753 | use included printf [default=auto] |
||
1754 | --disable-selinux build without selinux support |
||
1755 | --disable-fam don't use fam for file system monitoring |
||
1756 | --disable-xattr build without xattr support |
||
1757 | --disable-libelf build without libelf support |
||
1758 | --enable-gtk-doc use gtk-doc to build documentation [[default=no]] |
||
1759 | --enable-gtk-doc-html build documentation in html format [[default=yes]] |
||
1760 | --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] |
||
1761 | --enable-man generate man pages [default=auto] |
||
1762 | --enable-dtrace include tracing support for dtrace |
||
1763 | --enable-systemtap include tracing support for systemtap |
||
1764 | --enable-coverage enable coverage testing with gcov |
||
1765 | --disable-Bsymbolic avoid linking with -Bsymbolic |
||
1766 | --disable-znodelete avoid linking with -z,nodelete |
||
1767 | --disable-compile-warnings |
||
1768 | Don't use builtin compiler warnings |
||
1769 | |||
1770 | Optional Packages: |
||
1771 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
||
1772 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
||
1773 | --with-runtime-libdir=RELPATH |
||
1774 | install runtime libraries relative to libdir |
||
1775 | --with-python=PATH Path to Python interpreter; searches $PATH if only a |
||
1776 | program name is given; if not given, searches for a |
||
1777 | few standard names such as "python3" or "python2" |
||
1778 | --with-libiconv=[no/gnu/native] |
||
1779 | use the libiconv library |
||
1780 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
||
1781 | both] |
||
1782 | --with-aix-soname=aix|svr4|both |
||
1783 | shared library versioning (aka "SONAME") variant to |
||
1784 | provide on AIX, [default=aix]. |
||
1785 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
||
1786 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
||
1787 | compiler's sysroot if not specified). |
||
1788 | --with-gio-module-dir=DIR |
||
1789 | load gio modules from this directory |
||
1790 | [LIBDIR/gio/modules] |
||
1791 | --with-threads=[posix/win32] |
||
1792 | specify a thread implementation to use |
||
1793 | --with-pcre=[internal/system] |
||
1794 | whether to use system PCRE [default=system] |
||
1795 | --with-html-dir=PATH path to installed docs |
||
1796 | --with-xml-catalog=CATALOG |
||
1797 | path to xml catalog to use |
||
1798 | --with-tapset-install-dir=DIR |
||
1799 | path where systemtap tapsets are installed |
||
1800 | [DATADIR/systemtap/tapset] |
||
1801 | |||
1802 | Some influential environment variables: |
||
1803 | CC C compiler command |
||
1804 | CFLAGS C compiler flags |
||
1805 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
||
1806 | nonstandard directory <lib dir> |
||
1807 | LIBS libraries to pass to the linker, e.g. -l<library> |
||
1808 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
||
1809 | you have headers in a nonstandard directory <include dir> |
||
1810 | CPP C preprocessor |
||
1811 | CXX C++ compiler command |
||
1812 | CXXFLAGS C++ compiler flags |
||
1813 | PKG_CONFIG path to pkg-config utility |
||
1814 | PKG_CONFIG_PATH |
||
1815 | directories to add to pkg-config's search path |
||
1816 | PKG_CONFIG_LIBDIR |
||
1817 | path overriding pkg-config's built-in search path |
||
1818 | PYTHON the Python interpreter |
||
1819 | ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config |
||
1820 | ZLIB_LIBS linker flags for ZLIB, overriding pkg-config |
||
1821 | LIBFFI_CFLAGS |
||
1822 | C compiler flags for LIBFFI, overriding pkg-config |
||
1823 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config |
||
1824 | LT_SYS_LIBRARY_PATH |
||
1825 | User-defined run-time library search path. |
||
1826 | CXXCPP C++ preprocessor |
||
1827 | LIBELF_CFLAGS |
||
1828 | C compiler flags for LIBELF, overriding pkg-config |
||
1829 | LIBELF_LIBS linker flags for LIBELF, overriding pkg-config |
||
1830 | PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config |
||
1831 | PCRE_LIBS linker flags for PCRE, overriding pkg-config |
||
1832 | GTKDOC_DEPS_CFLAGS |
||
1833 | C compiler flags for GTKDOC_DEPS, overriding pkg-config |
||
1834 | GTKDOC_DEPS_LIBS |
||
1835 | linker flags for GTKDOC_DEPS, overriding pkg-config |
||
1836 | DBUS1_CFLAGS |
||
1837 | C compiler flags for DBUS1, overriding pkg-config |
||
1838 | DBUS1_LIBS linker flags for DBUS1, overriding pkg-config |
||
1839 | |||
1840 | Use these variables to override the choices made by `configure' or to help |
||
1841 | it to find libraries and programs with nonstandard names/locations. |
||
1842 | |||
1843 | Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>. |
||
1844 | _ACEOF |
||
1845 | ac_status=$? |
||
1846 | fi |
||
1847 | |||
1848 | if test "$ac_init_help" = "recursive"; then |
||
1849 | # If there are subdirs, report their specific --help. |
||
1850 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
||
1851 | test -d "$ac_dir" || |
||
1852 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
||
1853 | continue |
||
1854 | ac_builddir=. |
||
1855 | |||
1856 | case "$ac_dir" in |
||
1857 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1858 | *) |
||
1859 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
1860 | # A ".." for each directory in $ac_dir_suffix. |
||
1861 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
1862 | case $ac_top_builddir_sub in |
||
1863 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1864 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
1865 | esac ;; |
||
1866 | esac |
||
1867 | ac_abs_top_builddir=$ac_pwd |
||
1868 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
1869 | # for backward compatibility: |
||
1870 | ac_top_builddir=$ac_top_build_prefix |
||
1871 | |||
1872 | case $srcdir in |
||
1873 | .) # We are building in place. |
||
1874 | ac_srcdir=. |
||
1875 | ac_top_srcdir=$ac_top_builddir_sub |
||
1876 | ac_abs_top_srcdir=$ac_pwd ;; |
||
1877 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
1878 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
1879 | ac_top_srcdir=$srcdir |
||
1880 | ac_abs_top_srcdir=$srcdir ;; |
||
1881 | *) # Relative name. |
||
1882 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
1883 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
1884 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
1885 | esac |
||
1886 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
1887 | |||
1888 | cd "$ac_dir" || { ac_status=$?; continue; } |
||
1889 | # Check for guested configure. |
||
1890 | if test -f "$ac_srcdir/configure.gnu"; then |
||
1891 | echo && |
||
1892 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
||
1893 | elif test -f "$ac_srcdir/configure"; then |
||
1894 | echo && |
||
1895 | $SHELL "$ac_srcdir/configure" --help=recursive |
||
1896 | else |
||
1897 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
||
1898 | fi || ac_status=$? |
||
1899 | cd "$ac_pwd" || { ac_status=$?; break; } |
||
1900 | done |
||
1901 | fi |
||
1902 | |||
1903 | test -n "$ac_init_help" && exit $ac_status |
||
1904 | if $ac_init_version; then |
||
1905 | cat <<\_ACEOF |
||
1906 | glib configure 2.48.1 |
||
1907 | generated by GNU Autoconf 2.69 |
||
1908 | |||
1909 | Copyright (C) 2012 Free Software Foundation, Inc. |
||
1910 | This configure script is free software; the Free Software Foundation |
||
1911 | gives unlimited permission to copy, distribute and modify it. |
||
1912 | _ACEOF |
||
1913 | exit |
||
1914 | fi |
||
1915 | |||
1916 | ## ------------------------ ## |
||
1917 | ## Autoconf initialization. ## |
||
1918 | ## ------------------------ ## |
||
1919 | |||
1920 | # ac_fn_c_try_compile LINENO |
||
1921 | # -------------------------- |
||
1922 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
||
1923 | ac_fn_c_try_compile () |
||
1924 | { |
||
1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1926 | rm -f conftest.$ac_objext |
||
1927 | if { { ac_try="$ac_compile" |
||
1928 | case "(($ac_try" in |
||
1929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1930 | *) ac_try_echo=$ac_try;; |
||
1931 | esac |
||
1932 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1933 | $as_echo "$ac_try_echo"; } >&5 |
||
1934 | (eval "$ac_compile") 2>conftest.err |
||
1935 | ac_status=$? |
||
1936 | if test -s conftest.err; then |
||
1937 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1938 | cat conftest.er1 >&5 |
||
1939 | mv -f conftest.er1 conftest.err |
||
1940 | fi |
||
1941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1942 | test $ac_status = 0; } && { |
||
1943 | test -z "$ac_c_werror_flag" || |
||
1944 | test ! -s conftest.err |
||
1945 | } && test -s conftest.$ac_objext; then : |
||
1946 | ac_retval=0 |
||
1947 | else |
||
1948 | $as_echo "$as_me: failed program was:" >&5 |
||
1949 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1950 | |||
1951 | ac_retval=1 |
||
1952 | fi |
||
1953 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1954 | as_fn_set_status $ac_retval |
||
1955 | |||
1956 | } # ac_fn_c_try_compile |
||
1957 | |||
1958 | # ac_fn_c_try_cpp LINENO |
||
1959 | # ---------------------- |
||
1960 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
||
1961 | ac_fn_c_try_cpp () |
||
1962 | { |
||
1963 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1964 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
||
1965 | case "(($ac_try" in |
||
1966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1967 | *) ac_try_echo=$ac_try;; |
||
1968 | esac |
||
1969 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1970 | $as_echo "$ac_try_echo"; } >&5 |
||
1971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
||
1972 | ac_status=$? |
||
1973 | if test -s conftest.err; then |
||
1974 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1975 | cat conftest.er1 >&5 |
||
1976 | mv -f conftest.er1 conftest.err |
||
1977 | fi |
||
1978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1979 | test $ac_status = 0; } > conftest.i && { |
||
1980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
1981 | test ! -s conftest.err |
||
1982 | }; then : |
||
1983 | ac_retval=0 |
||
1984 | else |
||
1985 | $as_echo "$as_me: failed program was:" >&5 |
||
1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1987 | |||
1988 | ac_retval=1 |
||
1989 | fi |
||
1990 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1991 | as_fn_set_status $ac_retval |
||
1992 | |||
1993 | } # ac_fn_c_try_cpp |
||
1994 | |||
1995 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
||
1996 | # ------------------------------------------------------- |
||
1997 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
||
1998 | # the include files in INCLUDES and setting the cache variable VAR |
||
1999 | # accordingly. |
||
2000 | ac_fn_c_check_header_mongrel () |
||
2001 | { |
||
2002 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2003 | if eval \${$3+:} false; then : |
||
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
2005 | $as_echo_n "checking for $2... " >&6; } |
||
2006 | if eval \${$3+:} false; then : |
||
2007 | $as_echo_n "(cached) " >&6 |
||
2008 | fi |
||
2009 | eval ac_res=\$$3 |
||
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
2011 | $as_echo "$ac_res" >&6; } |
||
2012 | else |
||
2013 | # Is the header compilable? |
||
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
||
2015 | $as_echo_n "checking $2 usability... " >&6; } |
||
2016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2017 | /* end confdefs.h. */ |
||
2018 | $4 |
||
2019 | #include <$2> |
||
2020 | _ACEOF |
||
2021 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2022 | ac_header_compiler=yes |
||
2023 | else |
||
2024 | ac_header_compiler=no |
||
2025 | fi |
||
2026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
||
2028 | $as_echo "$ac_header_compiler" >&6; } |
||
2029 | |||
2030 | # Is the header present? |
||
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
||
2032 | $as_echo_n "checking $2 presence... " >&6; } |
||
2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2034 | /* end confdefs.h. */ |
||
2035 | #include <$2> |
||
2036 | _ACEOF |
||
2037 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
2038 | ac_header_preproc=yes |
||
2039 | else |
||
2040 | ac_header_preproc=no |
||
2041 | fi |
||
2042 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
||
2044 | $as_echo "$ac_header_preproc" >&6; } |
||
2045 | |||
2046 | # So? What about this header? |
||
2047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
||
2048 | yes:no: ) |
||
2049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
2050 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
||
2052 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
||
2053 | ;; |
||
2054 | no:yes:* ) |
||
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
||
2056 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
||
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
||
2058 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
||
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
||
2060 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
||
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
||
2062 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
||
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
||
2064 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
||
2065 | ( $as_echo "## ------------------------------------------------------------------- ## |
||
2066 | ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ## |
||
2067 | ## ------------------------------------------------------------------- ##" |
||
2068 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
||
2069 | ;; |
||
2070 | esac |
||
2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
2072 | $as_echo_n "checking for $2... " >&6; } |
||
2073 | if eval \${$3+:} false; then : |
||
2074 | $as_echo_n "(cached) " >&6 |
||
2075 | else |
||
2076 | eval "$3=\$ac_header_compiler" |
||
2077 | fi |
||
2078 | eval ac_res=\$$3 |
||
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
2080 | $as_echo "$ac_res" >&6; } |
||
2081 | fi |
||
2082 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2083 | |||
2084 | } # ac_fn_c_check_header_mongrel |
||
2085 | |||
2086 | # ac_fn_c_try_run LINENO |
||
2087 | # ---------------------- |
||
2088 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
||
2089 | # that executables *can* be run. |
||
2090 | ac_fn_c_try_run () |
||
2091 | { |
||
2092 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2093 | if { { ac_try="$ac_link" |
||
2094 | case "(($ac_try" in |
||
2095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2096 | *) ac_try_echo=$ac_try;; |
||
2097 | esac |
||
2098 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2099 | $as_echo "$ac_try_echo"; } >&5 |
||
2100 | (eval "$ac_link") 2>&5 |
||
2101 | ac_status=$? |
||
2102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2103 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
||
2104 | { { case "(($ac_try" in |
||
2105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2106 | *) ac_try_echo=$ac_try;; |
||
2107 | esac |
||
2108 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2109 | $as_echo "$ac_try_echo"; } >&5 |
||
2110 | (eval "$ac_try") 2>&5 |
||
2111 | ac_status=$? |
||
2112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2113 | test $ac_status = 0; }; }; then : |
||
2114 | ac_retval=0 |
||
2115 | else |
||
2116 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
2117 | $as_echo "$as_me: failed program was:" >&5 |
||
2118 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2119 | |||
2120 | ac_retval=$ac_status |
||
2121 | fi |
||
2122 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
2123 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2124 | as_fn_set_status $ac_retval |
||
2125 | |||
2126 | } # ac_fn_c_try_run |
||
2127 | |||
2128 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
||
2129 | # ------------------------------------------------------- |
||
2130 | # Tests whether HEADER exists and can be compiled using the include files in |
||
2131 | # INCLUDES, setting the cache variable VAR accordingly. |
||
2132 | ac_fn_c_check_header_compile () |
||
2133 | { |
||
2134 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
2136 | $as_echo_n "checking for $2... " >&6; } |
||
2137 | if eval \${$3+:} false; then : |
||
2138 | $as_echo_n "(cached) " >&6 |
||
2139 | else |
||
2140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2141 | /* end confdefs.h. */ |
||
2142 | $4 |
||
2143 | #include <$2> |
||
2144 | _ACEOF |
||
2145 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2146 | eval "$3=yes" |
||
2147 | else |
||
2148 | eval "$3=no" |
||
2149 | fi |
||
2150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2151 | fi |
||
2152 | eval ac_res=\$$3 |
||
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
2154 | $as_echo "$ac_res" >&6; } |
||
2155 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2156 | |||
2157 | } # ac_fn_c_check_header_compile |
||
2158 | |||
2159 | # ac_fn_cxx_try_compile LINENO |
||
2160 | # ---------------------------- |
||
2161 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
||
2162 | ac_fn_cxx_try_compile () |
||
2163 | { |
||
2164 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2165 | rm -f conftest.$ac_objext |
||
2166 | if { { ac_try="$ac_compile" |
||
2167 | case "(($ac_try" in |
||
2168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2169 | *) ac_try_echo=$ac_try;; |
||
2170 | esac |
||
2171 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2172 | $as_echo "$ac_try_echo"; } >&5 |
||
2173 | (eval "$ac_compile") 2>conftest.err |
||
2174 | ac_status=$? |
||
2175 | if test -s conftest.err; then |
||
2176 | grep -v '^ *+' conftest.err >conftest.er1 |
||
2177 | cat conftest.er1 >&5 |
||
2178 | mv -f conftest.er1 conftest.err |
||
2179 | fi |
||
2180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2181 | test $ac_status = 0; } && { |
||
2182 | test -z "$ac_cxx_werror_flag" || |
||
2183 | test ! -s conftest.err |
||
2184 | } && test -s conftest.$ac_objext; then : |
||
2185 | ac_retval=0 |
||
2186 | else |
||
2187 | $as_echo "$as_me: failed program was:" >&5 |
||
2188 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2189 | |||
2190 | ac_retval=1 |
||
2191 | fi |
||
2192 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2193 | as_fn_set_status $ac_retval |
||
2194 | |||
2195 | } # ac_fn_cxx_try_compile |
||
2196 | |||
2197 | # ac_fn_c_try_link LINENO |
||
2198 | # ----------------------- |
||
2199 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
||
2200 | ac_fn_c_try_link () |
||
2201 | { |
||
2202 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2203 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
2204 | if { { ac_try="$ac_link" |
||
2205 | case "(($ac_try" in |
||
2206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2207 | *) ac_try_echo=$ac_try;; |
||
2208 | esac |
||
2209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2210 | $as_echo "$ac_try_echo"; } >&5 |
||
2211 | (eval "$ac_link") 2>conftest.err |
||
2212 | ac_status=$? |
||
2213 | if test -s conftest.err; then |
||
2214 | grep -v '^ *+' conftest.err >conftest.er1 |
||
2215 | cat conftest.er1 >&5 |
||
2216 | mv -f conftest.er1 conftest.err |
||
2217 | fi |
||
2218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2219 | test $ac_status = 0; } && { |
||
2220 | test -z "$ac_c_werror_flag" || |
||
2221 | test ! -s conftest.err |
||
2222 | } && test -s conftest$ac_exeext && { |
||
2223 | test "$cross_compiling" = yes || |
||
2224 | test -x conftest$ac_exeext |
||
2225 | }; then : |
||
2226 | ac_retval=0 |
||
2227 | else |
||
2228 | $as_echo "$as_me: failed program was:" >&5 |
||
2229 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2230 | |||
2231 | ac_retval=1 |
||
2232 | fi |
||
2233 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
||
2234 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
||
2235 | # interfere with the next link command; also delete a directory that is |
||
2236 | # left behind by Apple's compiler. We do this before executing the actions. |
||
2237 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
2238 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2239 | as_fn_set_status $ac_retval |
||
2240 | |||
2241 | } # ac_fn_c_try_link |
||
2242 | |||
2243 | # ac_fn_c_check_func LINENO FUNC VAR |
||
2244 | # ---------------------------------- |
||
2245 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
||
2246 | ac_fn_c_check_func () |
||
2247 | { |
||
2248 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
2250 | $as_echo_n "checking for $2... " >&6; } |
||
2251 | if eval \${$3+:} false; then : |
||
2252 | $as_echo_n "(cached) " >&6 |
||
2253 | else |
||
2254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2255 | /* end confdefs.h. */ |
||
2256 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
||
2257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
2258 | #define $2 innocuous_$2 |
||
2259 | |||
2260 | /* System header to define __stub macros and hopefully few prototypes, |
||
2261 | which can conflict with char $2 (); below. |
||
2262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
2263 | <limits.h> exists even on freestanding compilers. */ |
||
2264 | |||
2265 | #ifdef __STDC__ |
||
2266 | # include <limits.h> |
||
2267 | #else |
||
2268 | # include <assert.h> |
||
2269 | #endif |
||
2270 | |||
2271 | #undef $2 |
||
2272 | |||
2273 | /* Override any GCC internal prototype to avoid an error. |
||
2274 | Use char because int might match the return type of a GCC |
||
2275 | builtin and then its argument prototype would still apply. */ |
||
2276 | #ifdef __cplusplus |
||
2277 | extern "C" |
||
2278 | #endif |
||
2279 | char $2 (); |
||
2280 | /* The GNU C library defines this for functions which it implements |
||
2281 | to always fail with ENOSYS. Some functions are actually named |
||
2282 | something starting with __ and the normal name is an alias. */ |
||
2283 | #if defined __stub_$2 || defined __stub___$2 |
||
2284 | choke me |
||
2285 | #endif |
||
2286 | |||
2287 | int |
||
2288 | main () |
||
2289 | { |
||
2290 | return $2 (); |
||
2291 | ; |
||
2292 | return 0; |
||
2293 | } |
||
2294 | _ACEOF |
||
2295 | if ac_fn_c_try_link "$LINENO"; then : |
||
2296 | eval "$3=yes" |
||
2297 | else |
||
2298 | eval "$3=no" |
||
2299 | fi |
||
2300 | rm -f core conftest.err conftest.$ac_objext \ |
||
2301 | conftest$ac_exeext conftest.$ac_ext |
||
2302 | fi |
||
2303 | eval ac_res=\$$3 |
||
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
2305 | $as_echo "$ac_res" >&6; } |
||
2306 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2307 | |||
2308 | } # ac_fn_c_check_func |
||
2309 | |||
2310 | # ac_fn_cxx_try_cpp LINENO |
||
2311 | # ------------------------ |
||
2312 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
||
2313 | ac_fn_cxx_try_cpp () |
||
2314 | { |
||
2315 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2316 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
||
2317 | case "(($ac_try" in |
||
2318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2319 | *) ac_try_echo=$ac_try;; |
||
2320 | esac |
||
2321 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2322 | $as_echo "$ac_try_echo"; } >&5 |
||
2323 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
||
2324 | ac_status=$? |
||
2325 | if test -s conftest.err; then |
||
2326 | grep -v '^ *+' conftest.err >conftest.er1 |
||
2327 | cat conftest.er1 >&5 |
||
2328 | mv -f conftest.er1 conftest.err |
||
2329 | fi |
||
2330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2331 | test $ac_status = 0; } > conftest.i && { |
||
2332 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
||
2333 | test ! -s conftest.err |
||
2334 | }; then : |
||
2335 | ac_retval=0 |
||
2336 | else |
||
2337 | $as_echo "$as_me: failed program was:" >&5 |
||
2338 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2339 | |||
2340 | ac_retval=1 |
||
2341 | fi |
||
2342 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2343 | as_fn_set_status $ac_retval |
||
2344 | |||
2345 | } # ac_fn_cxx_try_cpp |
||
2346 | |||
2347 | # ac_fn_cxx_try_link LINENO |
||
2348 | # ------------------------- |
||
2349 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
||
2350 | ac_fn_cxx_try_link () |
||
2351 | { |
||
2352 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2353 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
2354 | if { { ac_try="$ac_link" |
||
2355 | case "(($ac_try" in |
||
2356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2357 | *) ac_try_echo=$ac_try;; |
||
2358 | esac |
||
2359 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2360 | $as_echo "$ac_try_echo"; } >&5 |
||
2361 | (eval "$ac_link") 2>conftest.err |
||
2362 | ac_status=$? |
||
2363 | if test -s conftest.err; then |
||
2364 | grep -v '^ *+' conftest.err >conftest.er1 |
||
2365 | cat conftest.er1 >&5 |
||
2366 | mv -f conftest.er1 conftest.err |
||
2367 | fi |
||
2368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2369 | test $ac_status = 0; } && { |
||
2370 | test -z "$ac_cxx_werror_flag" || |
||
2371 | test ! -s conftest.err |
||
2372 | } && test -s conftest$ac_exeext && { |
||
2373 | test "$cross_compiling" = yes || |
||
2374 | test -x conftest$ac_exeext |
||
2375 | }; then : |
||
2376 | ac_retval=0 |
||
2377 | else |
||
2378 | $as_echo "$as_me: failed program was:" >&5 |
||
2379 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2380 | |||
2381 | ac_retval=1 |
||
2382 | fi |
||
2383 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
||
2384 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
||
2385 | # interfere with the next link command; also delete a directory that is |
||
2386 | # left behind by Apple's compiler. We do this before executing the actions. |
||
2387 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
2388 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2389 | as_fn_set_status $ac_retval |
||
2390 | |||
2391 | } # ac_fn_cxx_try_link |
||
2392 | |||
2393 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
||
2394 | # ------------------------------------------- |
||
2395 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
||
2396 | # variable VAR accordingly. |
||
2397 | ac_fn_c_check_type () |
||
2398 | { |
||
2399 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
2401 | $as_echo_n "checking for $2... " >&6; } |
||
2402 | if eval \${$3+:} false; then : |
||
2403 | $as_echo_n "(cached) " >&6 |
||
2404 | else |
||
2405 | eval "$3=no" |
||
2406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2407 | /* end confdefs.h. */ |
||
2408 | $4 |
||
2409 | int |
||
2410 | main () |
||
2411 | { |
||
2412 | if (sizeof ($2)) |
||
2413 | return 0; |
||
2414 | ; |
||
2415 | return 0; |
||
2416 | } |
||
2417 | _ACEOF |
||
2418 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2420 | /* end confdefs.h. */ |
||
2421 | $4 |
||
2422 | int |
||
2423 | main () |
||
2424 | { |
||
2425 | if (sizeof (($2))) |
||
2426 | return 0; |
||
2427 | ; |
||
2428 | return 0; |
||
2429 | } |
||
2430 | _ACEOF |
||
2431 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2432 | |||
2433 | else |
||
2434 | eval "$3=yes" |
||
2435 | fi |
||
2436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2437 | fi |
||
2438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2439 | fi |
||
2440 | eval ac_res=\$$3 |
||
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
2442 | $as_echo "$ac_res" >&6; } |
||
2443 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2444 | |||
2445 | } # ac_fn_c_check_type |
||
2446 | |||
2447 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
||
2448 | # -------------------------------------------- |
||
2449 | # Tries to find the compile-time value of EXPR in a program that includes |
||
2450 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
||
2451 | # computed |
||
2452 | ac_fn_c_compute_int () |
||
2453 | { |
||
2454 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2455 | if test "$cross_compiling" = yes; then |
||
2456 | # Depending upon the size, compute the lo and hi bounds. |
||
2457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2458 | /* end confdefs.h. */ |
||
2459 | $4 |
||
2460 | int |
||
2461 | main () |
||
2462 | { |
||
2463 | static int test_array [1 - 2 * !(($2) >= 0)]; |
||
2464 | test_array [0] = 0; |
||
2465 | return test_array [0]; |
||
2466 | |||
2467 | ; |
||
2468 | return 0; |
||
2469 | } |
||
2470 | _ACEOF |
||
2471 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2472 | ac_lo=0 ac_mid=0 |
||
2473 | while :; do |
||
2474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2475 | /* end confdefs.h. */ |
||
2476 | $4 |
||
2477 | int |
||
2478 | main () |
||
2479 | { |
||
2480 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
||
2481 | test_array [0] = 0; |
||
2482 | return test_array [0]; |
||
2483 | |||
2484 | ; |
||
2485 | return 0; |
||
2486 | } |
||
2487 | _ACEOF |
||
2488 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2489 | ac_hi=$ac_mid; break |
||
2490 | else |
||
2491 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
||
2492 | if test $ac_lo -le $ac_mid; then |
||
2493 | ac_lo= ac_hi= |
||
2494 | break |
||
2495 | fi |
||
2496 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
||
2497 | fi |
||
2498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2499 | done |
||
2500 | else |
||
2501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2502 | /* end confdefs.h. */ |
||
2503 | $4 |
||
2504 | int |
||
2505 | main () |
||
2506 | { |
||
2507 | static int test_array [1 - 2 * !(($2) < 0)]; |
||
2508 | test_array [0] = 0; |
||
2509 | return test_array [0]; |
||
2510 | |||
2511 | ; |
||
2512 | return 0; |
||
2513 | } |
||
2514 | _ACEOF |
||
2515 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2516 | ac_hi=-1 ac_mid=-1 |
||
2517 | while :; do |
||
2518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2519 | /* end confdefs.h. */ |
||
2520 | $4 |
||
2521 | int |
||
2522 | main () |
||
2523 | { |
||
2524 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
||
2525 | test_array [0] = 0; |
||
2526 | return test_array [0]; |
||
2527 | |||
2528 | ; |
||
2529 | return 0; |
||
2530 | } |
||
2531 | _ACEOF |
||
2532 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2533 | ac_lo=$ac_mid; break |
||
2534 | else |
||
2535 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
||
2536 | if test $ac_mid -le $ac_hi; then |
||
2537 | ac_lo= ac_hi= |
||
2538 | break |
||
2539 | fi |
||
2540 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
||
2541 | fi |
||
2542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2543 | done |
||
2544 | else |
||
2545 | ac_lo= ac_hi= |
||
2546 | fi |
||
2547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2548 | fi |
||
2549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2550 | # Binary search between lo and hi bounds. |
||
2551 | while test "x$ac_lo" != "x$ac_hi"; do |
||
2552 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
||
2553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2554 | /* end confdefs.h. */ |
||
2555 | $4 |
||
2556 | int |
||
2557 | main () |
||
2558 | { |
||
2559 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
||
2560 | test_array [0] = 0; |
||
2561 | return test_array [0]; |
||
2562 | |||
2563 | ; |
||
2564 | return 0; |
||
2565 | } |
||
2566 | _ACEOF |
||
2567 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2568 | ac_hi=$ac_mid |
||
2569 | else |
||
2570 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
||
2571 | fi |
||
2572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2573 | done |
||
2574 | case $ac_lo in #(( |
||
2575 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
||
2576 | '') ac_retval=1 ;; |
||
2577 | esac |
||
2578 | else |
||
2579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2580 | /* end confdefs.h. */ |
||
2581 | $4 |
||
2582 | static long int longval () { return $2; } |
||
2583 | static unsigned long int ulongval () { return $2; } |
||
2584 | #include <stdio.h> |
||
2585 | #include <stdlib.h> |
||
2586 | int |
||
2587 | main () |
||
2588 | { |
||
2589 | |||
2590 | FILE *f = fopen ("conftest.val", "w"); |
||
2591 | if (! f) |
||
2592 | return 1; |
||
2593 | if (($2) < 0) |
||
2594 | { |
||
2595 | long int i = longval (); |
||
2596 | if (i != ($2)) |
||
2597 | return 1; |
||
2598 | fprintf (f, "%ld", i); |
||
2599 | } |
||
2600 | else |
||
2601 | { |
||
2602 | unsigned long int i = ulongval (); |
||
2603 | if (i != ($2)) |
||
2604 | return 1; |
||
2605 | fprintf (f, "%lu", i); |
||
2606 | } |
||
2607 | /* Do not output a trailing newline, as this causes \r\n confusion |
||
2608 | on some platforms. */ |
||
2609 | return ferror (f) || fclose (f) != 0; |
||
2610 | |||
2611 | ; |
||
2612 | return 0; |
||
2613 | } |
||
2614 | _ACEOF |
||
2615 | if ac_fn_c_try_run "$LINENO"; then : |
||
2616 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
||
2617 | else |
||
2618 | ac_retval=1 |
||
2619 | fi |
||
2620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
2621 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
2622 | rm -f conftest.val |
||
2623 | |||
2624 | fi |
||
2625 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2626 | as_fn_set_status $ac_retval |
||
2627 | |||
2628 | } # ac_fn_c_compute_int |
||
2629 | |||
2630 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
||
2631 | # ---------------------------------------------------- |
||
2632 | # Tries to find if the field MEMBER exists in type AGGR, after including |
||
2633 | # INCLUDES, setting cache variable VAR accordingly. |
||
2634 | ac_fn_c_check_member () |
||
2635 | { |
||
2636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
||
2638 | $as_echo_n "checking for $2.$3... " >&6; } |
||
2639 | if eval \${$4+:} false; then : |
||
2640 | $as_echo_n "(cached) " >&6 |
||
2641 | else |
||
2642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2643 | /* end confdefs.h. */ |
||
2644 | $5 |
||
2645 | int |
||
2646 | main () |
||
2647 | { |
||
2648 | static $2 ac_aggr; |
||
2649 | if (ac_aggr.$3) |
||
2650 | return 0; |
||
2651 | ; |
||
2652 | return 0; |
||
2653 | } |
||
2654 | _ACEOF |
||
2655 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2656 | eval "$4=yes" |
||
2657 | else |
||
2658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2659 | /* end confdefs.h. */ |
||
2660 | $5 |
||
2661 | int |
||
2662 | main () |
||
2663 | { |
||
2664 | static $2 ac_aggr; |
||
2665 | if (sizeof ac_aggr.$3) |
||
2666 | return 0; |
||
2667 | ; |
||
2668 | return 0; |
||
2669 | } |
||
2670 | _ACEOF |
||
2671 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2672 | eval "$4=yes" |
||
2673 | else |
||
2674 | eval "$4=no" |
||
2675 | fi |
||
2676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2677 | fi |
||
2678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2679 | fi |
||
2680 | eval ac_res=\$$4 |
||
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
2682 | $as_echo "$ac_res" >&6; } |
||
2683 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
2684 | |||
2685 | } # ac_fn_c_check_member |
||
2686 | cat >config.log <<_ACEOF |
||
2687 | This file contains any messages produced by compilers while |
||
2688 | running configure, to aid debugging if configure makes a mistake. |
||
2689 | |||
2690 | It was created by glib $as_me 2.48.1, which was |
||
2691 | generated by GNU Autoconf 2.69. Invocation command line was |
||
2692 | |||
2693 | $ $0 $@ |
||
2694 | |||
2695 | _ACEOF |
||
2696 | exec 5>>config.log |
||
2697 | { |
||
2698 | cat <<_ASUNAME |
||
2699 | ## --------- ## |
||
2700 | ## Platform. ## |
||
2701 | ## --------- ## |
||
2702 | |||
2703 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
2704 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
||
2705 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
||
2706 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
||
2707 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
||
2708 | |||
2709 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
||
2710 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
||
2711 | |||
2712 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
||
2713 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
||
2714 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
||
2715 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
||
2716 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
||
2717 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
||
2718 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
||
2719 | |||
2720 | _ASUNAME |
||
2721 | |||
2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2723 | for as_dir in $PATH |
||
2724 | do |
||
2725 | IFS=$as_save_IFS |
||
2726 | test -z "$as_dir" && as_dir=. |
||
2727 | $as_echo "PATH: $as_dir" |
||
2728 | done |
||
2729 | IFS=$as_save_IFS |
||
2730 | |||
2731 | } >&5 |
||
2732 | |||
2733 | cat >&5 <<_ACEOF |
||
2734 | |||
2735 | |||
2736 | ## ----------- ## |
||
2737 | ## Core tests. ## |
||
2738 | ## ----------- ## |
||
2739 | |||
2740 | _ACEOF |
||
2741 | |||
2742 | |||
2743 | # Keep a trace of the command line. |
||
2744 | # Strip out --no-create and --no-recursion so they do not pile up. |
||
2745 | # Strip out --silent because we don't want to record it for future runs. |
||
2746 | # Also quote any args containing shell meta-characters. |
||
2747 | # Make two passes to allow for proper duplicate-argument suppression. |
||
2748 | ac_configure_args= |
||
2749 | ac_configure_args0= |
||
2750 | ac_configure_args1= |
||
2751 | ac_must_keep_next=false |
||
2752 | for ac_pass in 1 2 |
||
2753 | do |
||
2754 | for ac_arg |
||
2755 | do |
||
2756 | case $ac_arg in |
||
2757 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
||
2758 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
2759 | | -silent | --silent | --silen | --sile | --sil) |
||
2760 | continue ;; |
||
2761 | *\'*) |
||
2762 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
2763 | esac |
||
2764 | case $ac_pass in |
||
2765 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
||
2766 | 2) |
||
2767 | as_fn_append ac_configure_args1 " '$ac_arg'" |
||
2768 | if test $ac_must_keep_next = true; then |
||
2769 | ac_must_keep_next=false # Got value, back to normal. |
||
2770 | else |
||
2771 | case $ac_arg in |
||
2772 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
||
2773 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
||
2774 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
||
2775 | | -with-* | --with-* | -without-* | --without-* | --x) |
||
2776 | case "$ac_configure_args0 " in |
||
2777 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
||
2778 | esac |
||
2779 | ;; |
||
2780 | -* ) ac_must_keep_next=true ;; |
||
2781 | esac |
||
2782 | fi |
||
2783 | as_fn_append ac_configure_args " '$ac_arg'" |
||
2784 | ;; |
||
2785 | esac |
||
2786 | done |
||
2787 | done |
||
2788 | { ac_configure_args0=; unset ac_configure_args0;} |
||
2789 | { ac_configure_args1=; unset ac_configure_args1;} |
||
2790 | |||
2791 | # When interrupted or exit'd, cleanup temporary files, and complete |
||
2792 | # config.log. We remove comments because anyway the quotes in there |
||
2793 | # would cause problems or look ugly. |
||
2794 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
||
2795 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
||
2796 | trap 'exit_status=$? |
||
2797 | # Save into config.log some information that might help in debugging. |
||
2798 | { |
||
2799 | echo |
||
2800 | |||
2801 | $as_echo "## ---------------- ## |
||
2802 | ## Cache variables. ## |
||
2803 | ## ---------------- ##" |
||
2804 | echo |
||
2805 | # The following way of writing the cache mishandles newlines in values, |
||
2806 | ( |
||
2807 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
||
2808 | eval ac_val=\$$ac_var |
||
2809 | case $ac_val in #( |
||
2810 | *${as_nl}*) |
||
2811 | case $ac_var in #( |
||
2812 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
||
2813 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
2814 | esac |
||
2815 | case $ac_var in #( |
||
2816 | _ | IFS | as_nl) ;; #( |
||
2817 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
2818 | *) { eval $ac_var=; unset $ac_var;} ;; |
||
2819 | esac ;; |
||
2820 | esac |
||
2821 | done |
||
2822 | (set) 2>&1 | |
||
2823 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
||
2824 | *${as_nl}ac_space=\ *) |
||
2825 | sed -n \ |
||
2826 | "s/'\''/'\''\\\\'\'''\''/g; |
||
2827 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
||
2828 | ;; #( |
||
2829 | *) |
||
2830 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
2831 | ;; |
||
2832 | esac | |
||
2833 | sort |
||
2834 | ) |
||
2835 | echo |
||
2836 | |||
2837 | $as_echo "## ----------------- ## |
||
2838 | ## Output variables. ## |
||
2839 | ## ----------------- ##" |
||
2840 | echo |
||
2841 | for ac_var in $ac_subst_vars |
||
2842 | do |
||
2843 | eval ac_val=\$$ac_var |
||
2844 | case $ac_val in |
||
2845 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
2846 | esac |
||
2847 | $as_echo "$ac_var='\''$ac_val'\''" |
||
2848 | done | sort |
||
2849 | echo |
||
2850 | |||
2851 | if test -n "$ac_subst_files"; then |
||
2852 | $as_echo "## ------------------- ## |
||
2853 | ## File substitutions. ## |
||
2854 | ## ------------------- ##" |
||
2855 | echo |
||
2856 | for ac_var in $ac_subst_files |
||
2857 | do |
||
2858 | eval ac_val=\$$ac_var |
||
2859 | case $ac_val in |
||
2860 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
2861 | esac |
||
2862 | $as_echo "$ac_var='\''$ac_val'\''" |
||
2863 | done | sort |
||
2864 | echo |
||
2865 | fi |
||
2866 | |||
2867 | if test -s confdefs.h; then |
||
2868 | $as_echo "## ----------- ## |
||
2869 | ## confdefs.h. ## |
||
2870 | ## ----------- ##" |
||
2871 | echo |
||
2872 | cat confdefs.h |
||
2873 | echo |
||
2874 | fi |
||
2875 | test "$ac_signal" != 0 && |
||
2876 | $as_echo "$as_me: caught signal $ac_signal" |
||
2877 | $as_echo "$as_me: exit $exit_status" |
||
2878 | } >&5 |
||
2879 | rm -f core *.core core.conftest.* && |
||
2880 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
||
2881 | exit $exit_status |
||
2882 | ' 0 |
||
2883 | for ac_signal in 1 2 13 15; do |
||
2884 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
||
2885 | done |
||
2886 | ac_signal=0 |
||
2887 | |||
2888 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
||
2889 | rm -f -r conftest* confdefs.h |
||
2890 | |||
2891 | $as_echo "/* confdefs.h */" > confdefs.h |
||
2892 | |||
2893 | # Predefined preprocessor variables. |
||
2894 | |||
2895 | cat >>confdefs.h <<_ACEOF |
||
2896 | #define PACKAGE_NAME "$PACKAGE_NAME" |
||
2897 | _ACEOF |
||
2898 | |||
2899 | cat >>confdefs.h <<_ACEOF |
||
2900 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
||
2901 | _ACEOF |
||
2902 | |||
2903 | cat >>confdefs.h <<_ACEOF |
||
2904 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
||
2905 | _ACEOF |
||
2906 | |||
2907 | cat >>confdefs.h <<_ACEOF |
||
2908 | #define PACKAGE_STRING "$PACKAGE_STRING" |
||
2909 | _ACEOF |
||
2910 | |||
2911 | cat >>confdefs.h <<_ACEOF |
||
2912 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
||
2913 | _ACEOF |
||
2914 | |||
2915 | cat >>confdefs.h <<_ACEOF |
||
2916 | #define PACKAGE_URL "$PACKAGE_URL" |
||
2917 | _ACEOF |
||
2918 | |||
2919 | |||
2920 | # Let the site file select an alternate cache file if it wants to. |
||
2921 | # Prefer an explicitly selected file to automatically selected ones. |
||
2922 | ac_site_file1=NONE |
||
2923 | ac_site_file2=NONE |
||
2924 | if test -n "$CONFIG_SITE"; then |
||
2925 | # We do not want a PATH search for config.site. |
||
2926 | case $CONFIG_SITE in #(( |
||
2927 | -*) ac_site_file1=./$CONFIG_SITE;; |
||
2928 | */*) ac_site_file1=$CONFIG_SITE;; |
||
2929 | *) ac_site_file1=./$CONFIG_SITE;; |
||
2930 | esac |
||
2931 | elif test "x$prefix" != xNONE; then |
||
2932 | ac_site_file1=$prefix/share/config.site |
||
2933 | ac_site_file2=$prefix/etc/config.site |
||
2934 | else |
||
2935 | ac_site_file1=$ac_default_prefix/share/config.site |
||
2936 | ac_site_file2=$ac_default_prefix/etc/config.site |
||
2937 | fi |
||
2938 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
||
2939 | do |
||
2940 | test "x$ac_site_file" = xNONE && continue |
||
2941 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
||
2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
||
2943 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
||
2944 | sed 's/^/| /' "$ac_site_file" >&5 |
||
2945 | . "$ac_site_file" \ |
||
2946 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2947 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2948 | as_fn_error $? "failed to load site script $ac_site_file |
||
2949 | See \`config.log' for more details" "$LINENO" 5; } |
||
2950 | fi |
||
2951 | done |
||
2952 | |||
2953 | if test -r "$cache_file"; then |
||
2954 | # Some versions of bash will fail to source /dev/null (special files |
||
2955 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
||
2956 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
||
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
||
2958 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
||
2959 | case $cache_file in |
||
2960 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
||
2961 | *) . "./$cache_file";; |
||
2962 | esac |
||
2963 | fi |
||
2964 | else |
||
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
||
2966 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
||
2967 | >$cache_file |
||
2968 | fi |
||
2969 | |||
2970 | # Check that the precious variables saved in the cache have kept the same |
||
2971 | # value. |
||
2972 | ac_cache_corrupted=false |
||
2973 | for ac_var in $ac_precious_vars; do |
||
2974 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
||
2975 | eval ac_new_set=\$ac_env_${ac_var}_set |
||
2976 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
||
2977 | eval ac_new_val=\$ac_env_${ac_var}_value |
||
2978 | case $ac_old_set,$ac_new_set in |
||
2979 | set,) |
||
2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
||
2981 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
||
2982 | ac_cache_corrupted=: ;; |
||
2983 | ,set) |
||
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
||
2985 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
||
2986 | ac_cache_corrupted=: ;; |
||
2987 | ,);; |
||
2988 | *) |
||
2989 | if test "x$ac_old_val" != "x$ac_new_val"; then |
||
2990 | # differences in whitespace do not lead to failure. |
||
2991 | ac_old_val_w=`echo x $ac_old_val` |
||
2992 | ac_new_val_w=`echo x $ac_new_val` |
||
2993 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
||
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
||
2995 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
||
2996 | ac_cache_corrupted=: |
||
2997 | else |
||
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
||
2999 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
||
3000 | eval $ac_var=\$ac_old_val |
||
3001 | fi |
||
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
||
3003 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
||
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
||
3005 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
||
3006 | fi;; |
||
3007 | esac |
||
3008 | # Pass precious variables to config.status. |
||
3009 | if test "$ac_new_set" = set; then |
||
3010 | case $ac_new_val in |
||
3011 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
3012 | *) ac_arg=$ac_var=$ac_new_val ;; |
||
3013 | esac |
||
3014 | case " $ac_configure_args " in |
||
3015 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
||
3016 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
||
3017 | esac |
||
3018 | fi |
||
3019 | done |
||
3020 | if $ac_cache_corrupted; then |
||
3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
||
3024 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
||
3025 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
||
3026 | fi |
||
3027 | ## -------------------- ## |
||
3028 | ## Main body of script. ## |
||
3029 | ## -------------------- ## |
||
3030 | |||
3031 | ac_ext=c |
||
3032 | ac_cpp='$CPP $CPPFLAGS' |
||
3033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3036 | |||
3037 | |||
3038 | |||
3039 | ac_config_headers="$ac_config_headers config.h" |
||
3040 | |||
3041 | |||
3042 | |||
3043 | |||
3044 | # Save this value here, since automake will set cflags later |
||
3045 | cflags_set=${CFLAGS:+set} |
||
3046 | |||
3047 | am__api_version='1.15' |
||
3048 | |||
3049 | ac_aux_dir= |
||
3050 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
||
3051 | if test -f "$ac_dir/install-sh"; then |
||
3052 | ac_aux_dir=$ac_dir |
||
3053 | ac_install_sh="$ac_aux_dir/install-sh -c" |
||
3054 | break |
||
3055 | elif test -f "$ac_dir/install.sh"; then |
||
3056 | ac_aux_dir=$ac_dir |
||
3057 | ac_install_sh="$ac_aux_dir/install.sh -c" |
||
3058 | break |
||
3059 | elif test -f "$ac_dir/shtool"; then |
||
3060 | ac_aux_dir=$ac_dir |
||
3061 | ac_install_sh="$ac_aux_dir/shtool install -c" |
||
3062 | break |
||
3063 | fi |
||
3064 | done |
||
3065 | if test -z "$ac_aux_dir"; then |
||
3066 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
||
3067 | fi |
||
3068 | |||
3069 | # These three variables are undocumented and unsupported, |
||
3070 | # and are intended to be withdrawn in a future Autoconf release. |
||
3071 | # They can cause serious problems if a builder's source tree is in a directory |
||
3072 | # whose full name contains unusual characters. |
||
3073 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
||
3074 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
||
3075 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
||
3076 | |||
3077 | |||
3078 | # Find a good install program. We prefer a C program (faster), |
||
3079 | # so one script is as good as another. But avoid the broken or |
||
3080 | # incompatible versions: |
||
3081 | # SysV /etc/install, /usr/sbin/install |
||
3082 | # SunOS /usr/etc/install |
||
3083 | # IRIX /sbin/install |
||
3084 | # AIX /bin/install |
||
3085 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
||
3086 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
||
3087 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
||
3088 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
||
3089 | # OS/2's system install, which has a completely different semantic |
||
3090 | # ./install, which can be erroneously created by make from ./install.sh. |
||
3091 | # Reject install programs that cannot install multiple files. |
||
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
||
3093 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
||
3094 | if test -z "$INSTALL"; then |
||
3095 | if ${ac_cv_path_install+:} false; then : |
||
3096 | $as_echo_n "(cached) " >&6 |
||
3097 | else |
||
3098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3099 | for as_dir in $PATH |
||
3100 | do |
||
3101 | IFS=$as_save_IFS |
||
3102 | test -z "$as_dir" && as_dir=. |
||
3103 | # Account for people who put trailing slashes in PATH elements. |
||
3104 | case $as_dir/ in #(( |
||
3105 | ./ | .// | /[cC]/* | \ |
||
3106 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
||
3107 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
||
3108 | /usr/ucb/* ) ;; |
||
3109 | *) |
||
3110 | # OSF1 and SCO ODT 3.0 have their own names for install. |
||
3111 | # Don't use installbsd from OSF since it installs stuff as root |
||
3112 | # by default. |
||
3113 | for ac_prog in ginstall scoinst install; do |
||
3114 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3115 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
||
3116 | if test $ac_prog = install && |
||
3117 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
3118 | # AIX install. It has an incompatible calling convention. |
||
3119 | : |
||
3120 | elif test $ac_prog = install && |
||
3121 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
||
3122 | # program-specific install script used by HP pwplus--don't use. |
||
3123 | : |
||
3124 | else |
||
3125 | rm -rf conftest.one conftest.two conftest.dir |
||
3126 | echo one > conftest.one |
||
3127 | echo two > conftest.two |
||
3128 | mkdir conftest.dir |
||
3129 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
||
3130 | test -s conftest.one && test -s conftest.two && |
||
3131 | test -s conftest.dir/conftest.one && |
||
3132 | test -s conftest.dir/conftest.two |
||
3133 | then |
||
3134 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
||
3135 | break 3 |
||
3136 | fi |
||
3137 | fi |
||
3138 | fi |
||
3139 | done |
||
3140 | done |
||
3141 | ;; |
||
3142 | esac |
||
3143 | |||
3144 | done |
||
3145 | IFS=$as_save_IFS |
||
3146 | |||
3147 | rm -rf conftest.one conftest.two conftest.dir |
||
3148 | |||
3149 | fi |
||
3150 | if test "${ac_cv_path_install+set}" = set; then |
||
3151 | INSTALL=$ac_cv_path_install |
||
3152 | else |
||
3153 | # As a last resort, use the slow shell script. Don't cache a |
||
3154 | # value for INSTALL within a source directory, because that will |
||
3155 | # break other packages using the cache if that directory is |
||
3156 | # removed, or if the value is a relative name. |
||
3157 | INSTALL=$ac_install_sh |
||
3158 | fi |
||
3159 | fi |
||
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
||
3161 | $as_echo "$INSTALL" >&6; } |
||
3162 | |||
3163 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
||
3164 | # It thinks the first close brace ends the variable substitution. |
||
3165 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
||
3166 | |||
3167 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
||
3168 | |||
3169 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
||
3170 | |||
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
||
3172 | $as_echo_n "checking whether build environment is sane... " >&6; } |
||
3173 | # Reject unsafe characters in $srcdir or the absolute working directory |
||
3174 | # name. Accept space and tab only in the latter. |
||
3175 | am_lf=' |
||
3176 | ' |
||
3177 | case `pwd` in |
||
3178 | *[\\\"\#\$\&\'\`$am_lf]*) |
||
3179 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
||
3180 | esac |
||
3181 | case $srcdir in |
||
3182 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
||
3183 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
||
3184 | esac |
||
3185 | |||
3186 | # Do 'set' in a subshell so we don't clobber the current shell's |
||
3187 | # arguments. Must try -L first in case configure is actually a |
||
3188 | # symlink; some systems play weird games with the mod time of symlinks |
||
3189 | # (eg FreeBSD returns the mod time of the symlink's containing |
||
3190 | # directory). |
||
3191 | if ( |
||
3192 | am_has_slept=no |
||
3193 | for am_try in 1 2; do |
||
3194 | echo "timestamp, slept: $am_has_slept" > conftest.file |
||
3195 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
||
3196 | if test "$*" = "X"; then |
||
3197 | # -L didn't work. |
||
3198 | set X `ls -t "$srcdir/configure" conftest.file` |
||
3199 | fi |
||
3200 | if test "$*" != "X $srcdir/configure conftest.file" \ |
||
3201 | && test "$*" != "X conftest.file $srcdir/configure"; then |
||
3202 | |||
3203 | # If neither matched, then we have a broken ls. This can happen |
||
3204 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
||
3205 | # broken ls alias from the environment. This has actually |
||
3206 | # happened. Such a system could not be considered "sane". |
||
3207 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
||
3208 | alias in your environment" "$LINENO" 5 |
||
3209 | fi |
||
3210 | if test "$2" = conftest.file || test $am_try -eq 2; then |
||
3211 | break |
||
3212 | fi |
||
3213 | # Just in case. |
||
3214 | sleep 1 |
||
3215 | am_has_slept=yes |
||
3216 | done |
||
3217 | test "$2" = conftest.file |
||
3218 | ) |
||
3219 | then |
||
3220 | # Ok. |
||
3221 | : |
||
3222 | else |
||
3223 | as_fn_error $? "newly created file is older than distributed files! |
||
3224 | Check your system clock" "$LINENO" 5 |
||
3225 | fi |
||
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
3227 | $as_echo "yes" >&6; } |
||
3228 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
||
3229 | # generated files are strictly newer. |
||
3230 | am_sleep_pid= |
||
3231 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
||
3232 | ( sleep 1 ) & |
||
3233 | am_sleep_pid=$! |
||
3234 | fi |
||
3235 | |||
3236 | rm -f conftest.file |
||
3237 | |||
3238 | test "$program_prefix" != NONE && |
||
3239 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
||
3240 | # Use a double $ so make ignores it. |
||
3241 | test "$program_suffix" != NONE && |
||
3242 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
||
3243 | # Double any \ or $. |
||
3244 | # By default was `s,x,x', remove it if useless. |
||
3245 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
||
3246 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
||
3247 | |||
3248 | # Expand $ac_aux_dir to an absolute path. |
||
3249 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
||
3250 | |||
3251 | if test x"${MISSING+set}" != xset; then |
||
3252 | case $am_aux_dir in |
||
3253 | *\ * | *\ *) |
||
3254 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
||
3255 | *) |
||
3256 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
||
3257 | esac |
||
3258 | fi |
||
3259 | # Use eval to expand $SHELL |
||
3260 | if eval "$MISSING --is-lightweight"; then |
||
3261 | am_missing_run="$MISSING " |
||
3262 | else |
||
3263 | am_missing_run= |
||
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
||
3265 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
||
3266 | fi |
||
3267 | |||
3268 | if test x"${install_sh+set}" != xset; then |
||
3269 | case $am_aux_dir in |
||
3270 | *\ * | *\ *) |
||
3271 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
||
3272 | *) |
||
3273 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
||
3274 | esac |
||
3275 | fi |
||
3276 | |||
3277 | # Installed binaries are usually stripped using 'strip' when the user |
||
3278 | # run "make install-strip". However 'strip' might not be the right |
||
3279 | # tool to use in cross-compilation environments, therefore Automake |
||
3280 | # will honor the 'STRIP' environment variable to overrule this program. |
||
3281 | if test "$cross_compiling" != no; then |
||
3282 | if test -n "$ac_tool_prefix"; then |
||
3283 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
3284 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3286 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3287 | if ${ac_cv_prog_STRIP+:} false; then : |
||
3288 | $as_echo_n "(cached) " >&6 |
||
3289 | else |
||
3290 | if test -n "$STRIP"; then |
||
3291 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
3292 | else |
||
3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3294 | for as_dir in $PATH |
||
3295 | do |
||
3296 | IFS=$as_save_IFS |
||
3297 | test -z "$as_dir" && as_dir=. |
||
3298 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3300 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
3301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3302 | break 2 |
||
3303 | fi |
||
3304 | done |
||
3305 | done |
||
3306 | IFS=$as_save_IFS |
||
3307 | |||
3308 | fi |
||
3309 | fi |
||
3310 | STRIP=$ac_cv_prog_STRIP |
||
3311 | if test -n "$STRIP"; then |
||
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
||
3313 | $as_echo "$STRIP" >&6; } |
||
3314 | else |
||
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3316 | $as_echo "no" >&6; } |
||
3317 | fi |
||
3318 | |||
3319 | |||
3320 | fi |
||
3321 | if test -z "$ac_cv_prog_STRIP"; then |
||
3322 | ac_ct_STRIP=$STRIP |
||
3323 | # Extract the first word of "strip", so it can be a program name with args. |
||
3324 | set dummy strip; ac_word=$2 |
||
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3326 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3327 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
||
3328 | $as_echo_n "(cached) " >&6 |
||
3329 | else |
||
3330 | if test -n "$ac_ct_STRIP"; then |
||
3331 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
3332 | else |
||
3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3334 | for as_dir in $PATH |
||
3335 | do |
||
3336 | IFS=$as_save_IFS |
||
3337 | test -z "$as_dir" && as_dir=. |
||
3338 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3340 | ac_cv_prog_ac_ct_STRIP="strip" |
||
3341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3342 | break 2 |
||
3343 | fi |
||
3344 | done |
||
3345 | done |
||
3346 | IFS=$as_save_IFS |
||
3347 | |||
3348 | fi |
||
3349 | fi |
||
3350 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
3351 | if test -n "$ac_ct_STRIP"; then |
||
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
||
3353 | $as_echo "$ac_ct_STRIP" >&6; } |
||
3354 | else |
||
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3356 | $as_echo "no" >&6; } |
||
3357 | fi |
||
3358 | |||
3359 | if test "x$ac_ct_STRIP" = x; then |
||
3360 | STRIP=":" |
||
3361 | else |
||
3362 | case $cross_compiling:$ac_tool_warned in |
||
3363 | yes:) |
||
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
3365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
3366 | ac_tool_warned=yes ;; |
||
3367 | esac |
||
3368 | STRIP=$ac_ct_STRIP |
||
3369 | fi |
||
3370 | else |
||
3371 | STRIP="$ac_cv_prog_STRIP" |
||
3372 | fi |
||
3373 | |||
3374 | fi |
||
3375 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
||
3376 | |||
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
||
3378 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
||
3379 | if test -z "$MKDIR_P"; then |
||
3380 | if ${ac_cv_path_mkdir+:} false; then : |
||
3381 | $as_echo_n "(cached) " >&6 |
||
3382 | else |
||
3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3384 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
||
3385 | do |
||
3386 | IFS=$as_save_IFS |
||
3387 | test -z "$as_dir" && as_dir=. |
||
3388 | for ac_prog in mkdir gmkdir; do |
||
3389 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3390 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
||
3391 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
||
3392 | 'mkdir (GNU coreutils) '* | \ |
||
3393 | 'mkdir (coreutils) '* | \ |
||
3394 | 'mkdir (fileutils) '4.1*) |
||
3395 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
||
3396 | break 3;; |
||
3397 | esac |
||
3398 | done |
||
3399 | done |
||
3400 | done |
||
3401 | IFS=$as_save_IFS |
||
3402 | |||
3403 | fi |
||
3404 | |||
3405 | test -d ./--version && rmdir ./--version |
||
3406 | if test "${ac_cv_path_mkdir+set}" = set; then |
||
3407 | MKDIR_P="$ac_cv_path_mkdir -p" |
||
3408 | else |
||
3409 | # As a last resort, use the slow shell script. Don't cache a |
||
3410 | # value for MKDIR_P within a source directory, because that will |
||
3411 | # break other packages using the cache if that directory is |
||
3412 | # removed, or if the value is a relative name. |
||
3413 | MKDIR_P="$ac_install_sh -d" |
||
3414 | fi |
||
3415 | fi |
||
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
||
3417 | $as_echo "$MKDIR_P" >&6; } |
||
3418 | |||
3419 | for ac_prog in gawk mawk nawk awk |
||
3420 | do |
||
3421 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
3422 | set dummy $ac_prog; ac_word=$2 |
||
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3424 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3425 | if ${ac_cv_prog_AWK+:} false; then : |
||
3426 | $as_echo_n "(cached) " >&6 |
||
3427 | else |
||
3428 | if test -n "$AWK"; then |
||
3429 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
3430 | else |
||
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3432 | for as_dir in $PATH |
||
3433 | do |
||
3434 | IFS=$as_save_IFS |
||
3435 | test -z "$as_dir" && as_dir=. |
||
3436 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3438 | ac_cv_prog_AWK="$ac_prog" |
||
3439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3440 | break 2 |
||
3441 | fi |
||
3442 | done |
||
3443 | done |
||
3444 | IFS=$as_save_IFS |
||
3445 | |||
3446 | fi |
||
3447 | fi |
||
3448 | AWK=$ac_cv_prog_AWK |
||
3449 | if test -n "$AWK"; then |
||
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
||
3451 | $as_echo "$AWK" >&6; } |
||
3452 | else |
||
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3454 | $as_echo "no" >&6; } |
||
3455 | fi |
||
3456 | |||
3457 | |||
3458 | test -n "$AWK" && break |
||
3459 | done |
||
3460 | |||
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
||
3462 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
||
3463 | set x ${MAKE-make} |
||
3464 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
||
3465 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
||
3466 | $as_echo_n "(cached) " >&6 |
||
3467 | else |
||
3468 | cat >conftest.make <<\_ACEOF |
||
3469 | SHELL = /bin/sh |
||
3470 | all: |
||
3471 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
||
3472 | _ACEOF |
||
3473 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
||
3474 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
||
3475 | *@@@%%%=?*=@@@%%%*) |
||
3476 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
||
3477 | *) |
||
3478 | eval ac_cv_prog_make_${ac_make}_set=no;; |
||
3479 | esac |
||
3480 | rm -f conftest.make |
||
3481 | fi |
||
3482 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
||
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
3484 | $as_echo "yes" >&6; } |
||
3485 | SET_MAKE= |
||
3486 | else |
||
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3488 | $as_echo "no" >&6; } |
||
3489 | SET_MAKE="MAKE=${MAKE-make}" |
||
3490 | fi |
||
3491 | |||
3492 | rm -rf .tst 2>/dev/null |
||
3493 | mkdir .tst 2>/dev/null |
||
3494 | if test -d .tst; then |
||
3495 | am__leading_dot=. |
||
3496 | else |
||
3497 | am__leading_dot=_ |
||
3498 | fi |
||
3499 | rmdir .tst 2>/dev/null |
||
3500 | |||
3501 | # Check whether --enable-silent-rules was given. |
||
3502 | if test "${enable_silent_rules+set}" = set; then : |
||
3503 | enableval=$enable_silent_rules; |
||
3504 | fi |
||
3505 | |||
3506 | case $enable_silent_rules in # ((( |
||
3507 | yes) AM_DEFAULT_VERBOSITY=0;; |
||
3508 | no) AM_DEFAULT_VERBOSITY=1;; |
||
3509 | *) AM_DEFAULT_VERBOSITY=1;; |
||
3510 | esac |
||
3511 | am_make=${MAKE-make} |
||
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
||
3513 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
||
3514 | if ${am_cv_make_support_nested_variables+:} false; then : |
||
3515 | $as_echo_n "(cached) " >&6 |
||
3516 | else |
||
3517 | if $as_echo 'TRUE=$(BAR$(V)) |
||
3518 | BAR0=false |
||
3519 | BAR1=true |
||
3520 | V=1 |
||
3521 | am__doit: |
||
3522 | @$(TRUE) |
||
3523 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
||
3524 | am_cv_make_support_nested_variables=yes |
||
3525 | else |
||
3526 | am_cv_make_support_nested_variables=no |
||
3527 | fi |
||
3528 | fi |
||
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
||
3530 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
||
3531 | if test $am_cv_make_support_nested_variables = yes; then |
||
3532 | AM_V='$(V)' |
||
3533 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
||
3534 | else |
||
3535 | AM_V=$AM_DEFAULT_VERBOSITY |
||
3536 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
||
3537 | fi |
||
3538 | AM_BACKSLASH='\' |
||
3539 | |||
3540 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
||
3541 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
||
3542 | # is not polluted with repeated "-I." |
||
3543 | am__isrc=' -I$(srcdir)' |
||
3544 | # test to see if srcdir already configured |
||
3545 | if test -f $srcdir/config.status; then |
||
3546 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
||
3547 | fi |
||
3548 | fi |
||
3549 | |||
3550 | # test whether we have cygpath |
||
3551 | if test -z "$CYGPATH_W"; then |
||
3552 | if (cygpath --version) >/dev/null 2>/dev/null; then |
||
3553 | CYGPATH_W='cygpath -w' |
||
3554 | else |
||
3555 | CYGPATH_W=echo |
||
3556 | fi |
||
3557 | fi |
||
3558 | |||
3559 | |||
3560 | # Define the identity of the package. |
||
3561 | PACKAGE='glib' |
||
3562 | VERSION='2.48.1' |
||
3563 | |||
3564 | |||
3565 | # Some tools Automake needs. |
||
3566 | |||
3567 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
||
3568 | |||
3569 | |||
3570 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
||
3571 | |||
3572 | |||
3573 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
||
3574 | |||
3575 | |||
3576 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
||
3577 | |||
3578 | |||
3579 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
||
3580 | |||
3581 | # For better backward compatibility. To be removed once Automake 1.9.x |
||
3582 | # dies out for good. For more background, see: |
||
3583 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
||
3584 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
||
3585 | mkdir_p='$(MKDIR_P)' |
||
3586 | |||
3587 | # We need awk for the "check" target (and possibly the TAP driver). The |
||
3588 | # system "awk" is bad on some platforms. |
||
3589 | # Always define AMTAR for backward compatibility. Yes, it's still used |
||
3590 | # in the wild :-( We should find a proper way to deprecate it ... |
||
3591 | AMTAR='$${TAR-tar}' |
||
3592 | |||
3593 | |||
3594 | # We'll loop over all known methods to create a tar archive until one works. |
||
3595 | _am_tools='gnutar plaintar pax cpio none' |
||
3596 | |||
3597 | # The POSIX 1988 'ustar' format is defined with fixed-size fields. |
||
3598 | # There is notably a 21 bits limit for the UID and the GID. In fact, |
||
3599 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
||
3600 | # and bug#13588). |
||
3601 | am_max_uid=2097151 # 2^21 - 1 |
||
3602 | am_max_gid=$am_max_uid |
||
3603 | # The $UID and $GID variables are not portable, so we need to resort |
||
3604 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
||
3605 | # below are definitely unexpected, so allow the users to see them |
||
3606 | # (that is, avoid stderr redirection). |
||
3607 | am_uid=`id -u || echo unknown` |
||
3608 | am_gid=`id -g || echo unknown` |
||
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 |
||
3610 | $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } |
||
3611 | if test $am_uid -le $am_max_uid; then |
||
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
3613 | $as_echo "yes" >&6; } |
||
3614 | else |
||
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3616 | $as_echo "no" >&6; } |
||
3617 | _am_tools=none |
||
3618 | fi |
||
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 |
||
3620 | $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } |
||
3621 | if test $am_gid -le $am_max_gid; then |
||
3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
3623 | $as_echo "yes" >&6; } |
||
3624 | else |
||
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3626 | $as_echo "no" >&6; } |
||
3627 | _am_tools=none |
||
3628 | fi |
||
3629 | |||
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
||
3631 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
||
3632 | |||
3633 | # Go ahead even if we have the value already cached. We do so because we |
||
3634 | # need to set the values for the 'am__tar' and 'am__untar' variables. |
||
3635 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
||
3636 | |||
3637 | for _am_tool in $_am_tools; do |
||
3638 | case $_am_tool in |
||
3639 | gnutar) |
||
3640 | for _am_tar in tar gnutar gtar; do |
||
3641 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
||
3642 | ($_am_tar --version) >&5 2>&5 |
||
3643 | ac_status=$? |
||
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3645 | (exit $ac_status); } && break |
||
3646 | done |
||
3647 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
||
3648 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
||
3649 | am__untar="$_am_tar -xf -" |
||
3650 | ;; |
||
3651 | plaintar) |
||
3652 | # Must skip GNU tar: if it does not support --format= it doesn't create |
||
3653 | # ustar tarball either. |
||
3654 | (tar --version) >/dev/null 2>&1 && continue |
||
3655 | am__tar='tar chf - "$$tardir"' |
||
3656 | am__tar_='tar chf - "$tardir"' |
||
3657 | am__untar='tar xf -' |
||
3658 | ;; |
||
3659 | pax) |
||
3660 | am__tar='pax -L -x ustar -w "$$tardir"' |
||
3661 | am__tar_='pax -L -x ustar -w "$tardir"' |
||
3662 | am__untar='pax -r' |
||
3663 | ;; |
||
3664 | cpio) |
||
3665 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
||
3666 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
||
3667 | am__untar='cpio -i -H ustar -d' |
||
3668 | ;; |
||
3669 | none) |
||
3670 | am__tar=false |
||
3671 | am__tar_=false |
||
3672 | am__untar=false |
||
3673 | ;; |
||
3674 | esac |
||
3675 | |||
3676 | # If the value was cached, stop now. We just wanted to have am__tar |
||
3677 | # and am__untar set. |
||
3678 | test -n "${am_cv_prog_tar_ustar}" && break |
||
3679 | |||
3680 | # tar/untar a dummy directory, and stop if the command works. |
||
3681 | rm -rf conftest.dir |
||
3682 | mkdir conftest.dir |
||
3683 | echo GrepMe > conftest.dir/file |
||
3684 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
||
3685 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
||
3686 | ac_status=$? |
||
3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3688 | (exit $ac_status); } |
||
3689 | rm -rf conftest.dir |
||
3690 | if test -s conftest.tar; then |
||
3691 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
||
3692 | ($am__untar <conftest.tar) >&5 2>&5 |
||
3693 | ac_status=$? |
||
3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3695 | (exit $ac_status); } |
||
3696 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
||
3697 | (cat conftest.dir/file) >&5 2>&5 |
||
3698 | ac_status=$? |
||
3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3700 | (exit $ac_status); } |
||
3701 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
||
3702 | fi |
||
3703 | done |
||
3704 | rm -rf conftest.dir |
||
3705 | |||
3706 | if ${am_cv_prog_tar_ustar+:} false; then : |
||
3707 | $as_echo_n "(cached) " >&6 |
||
3708 | else |
||
3709 | am_cv_prog_tar_ustar=$_am_tool |
||
3710 | fi |
||
3711 | |||
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
||
3713 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
||
3714 | |||
3715 | |||
3716 | |||
3717 | |||
3718 | |||
3719 | |||
3720 | # POSIX will say in a future version that running "rm -f" with no argument |
||
3721 | # is OK; and we want to be able to make that assumption in our Makefile |
||
3722 | # recipes. So use an aggressive probe to check that the usage we want is |
||
3723 | # actually supported "in the wild" to an acceptable degree. |
||
3724 | # See automake bug#10828. |
||
3725 | # To make any issue more visible, cause the running configure to be aborted |
||
3726 | # by default if the 'rm' program in use doesn't match our expectations; the |
||
3727 | # user can still override this though. |
||
3728 | if rm -f && rm -fr && rm -rf; then : OK; else |
||
3729 | cat >&2 <<'END' |
||
3730 | Oops! |
||
3731 | |||
3732 | Your 'rm' program seems unable to run without file operands specified |
||
3733 | on the command line, even when the '-f' option is present. This is contrary |
||
3734 | to the behaviour of most rm programs out there, and not conforming with |
||
3735 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
||
3736 | |||
3737 | Please tell bug-automake@gnu.org about your system, including the value |
||
3738 | of your $PATH and any error possibly output before this message. This |
||
3739 | can help us improve future automake versions. |
||
3740 | |||
3741 | END |
||
3742 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
||
3743 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
||
3744 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
||
3745 | echo >&2 |
||
3746 | else |
||
3747 | cat >&2 <<'END' |
||
3748 | Aborting the configuration process, to ensure you take notice of the issue. |
||
3749 | |||
3750 | You can download and install GNU coreutils to get an 'rm' implementation |
||
3751 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
||
3752 | |||
3753 | If you want to complete the configuration process using your problematic |
||
3754 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
||
3755 | to "yes", and re-run configure. |
||
3756 | |||
3757 | END |
||
3758 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
||
3759 | fi |
||
3760 | fi |
||
3761 | |||
3762 | |||
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
||
3764 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
||
3765 | # Check whether --enable-maintainer-mode was given. |
||
3766 | if test "${enable_maintainer_mode+set}" = set; then : |
||
3767 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
||
3768 | else |
||
3769 | USE_MAINTAINER_MODE=yes |
||
3770 | fi |
||
3771 | |||
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
||
3773 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
||
3774 | if test $USE_MAINTAINER_MODE = yes; then |
||
3775 | MAINTAINER_MODE_TRUE= |
||
3776 | MAINTAINER_MODE_FALSE='#' |
||
3777 | else |
||
3778 | MAINTAINER_MODE_TRUE='#' |
||
3779 | MAINTAINER_MODE_FALSE= |
||
3780 | fi |
||
3781 | |||
3782 | MAINT=$MAINTAINER_MODE_TRUE |
||
3783 | |||
3784 | |||
3785 | |||
3786 | # Support silent build rules. Disable |
||
3787 | # by either passing --disable-silent-rules to configure or passing V=1 |
||
3788 | # to make |
||
3789 | # Check whether --enable-silent-rules was given. |
||
3790 | if test "${enable_silent_rules+set}" = set; then : |
||
3791 | enableval=$enable_silent_rules; |
||
3792 | fi |
||
3793 | |||
3794 | case $enable_silent_rules in # ((( |
||
3795 | yes) AM_DEFAULT_VERBOSITY=0;; |
||
3796 | no) AM_DEFAULT_VERBOSITY=1;; |
||
3797 | *) AM_DEFAULT_VERBOSITY=0;; |
||
3798 | esac |
||
3799 | am_make=${MAKE-make} |
||
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
||
3801 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
||
3802 | if ${am_cv_make_support_nested_variables+:} false; then : |
||
3803 | $as_echo_n "(cached) " >&6 |
||
3804 | else |
||
3805 | if $as_echo 'TRUE=$(BAR$(V)) |
||
3806 | BAR0=false |
||
3807 | BAR1=true |
||
3808 | V=1 |
||
3809 | am__doit: |
||
3810 | @$(TRUE) |
||
3811 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
||
3812 | am_cv_make_support_nested_variables=yes |
||
3813 | else |
||
3814 | am_cv_make_support_nested_variables=no |
||
3815 | fi |
||
3816 | fi |
||
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
||
3818 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
||
3819 | if test $am_cv_make_support_nested_variables = yes; then |
||
3820 | AM_V='$(V)' |
||
3821 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
||
3822 | else |
||
3823 | AM_V=$AM_DEFAULT_VERBOSITY |
||
3824 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
||
3825 | fi |
||
3826 | AM_BACKSLASH='\' |
||
3827 | |||
3828 | |||
3829 | GLIB_MAJOR_VERSION=2 |
||
3830 | GLIB_MINOR_VERSION=48 |
||
3831 | GLIB_MICRO_VERSION=1 |
||
3832 | GLIB_INTERFACE_AGE=1 |
||
3833 | GLIB_BINARY_AGE=4801 |
||
3834 | GLIB_VERSION=2.48.1 |
||
3835 | |||
3836 | |||
3837 | |||
3838 | |||
3839 | |||
3840 | |||
3841 | |||
3842 | |||
3843 | |||
3844 | $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h |
||
3845 | |||
3846 | |||
3847 | $as_echo "#define GLIB_MINOR_VERSION 48" >>confdefs.h |
||
3848 | |||
3849 | |||
3850 | $as_echo "#define GLIB_MICRO_VERSION 1" >>confdefs.h |
||
3851 | |||
3852 | |||
3853 | $as_echo "#define GLIB_INTERFACE_AGE 1" >>confdefs.h |
||
3854 | |||
3855 | |||
3856 | $as_echo "#define GLIB_BINARY_AGE 4801" >>confdefs.h |
||
3857 | |||
3858 | |||
3859 | # libtool versioning |
||
3860 | LT_RELEASE=2.48 |
||
3861 | LT_CURRENT=4800 |
||
3862 | LT_REVISION=1 |
||
3863 | LT_AGE=4800 |
||
3864 | LT_CURRENT_MINUS_AGE=0 |
||
3865 | |||
3866 | |||
3867 | |||
3868 | |||
3869 | |||
3870 | |||
3871 | ac_ext=c |
||
3872 | ac_cpp='$CPP $CPPFLAGS' |
||
3873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3876 | if test -n "$ac_tool_prefix"; then |
||
3877 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
||
3878 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
||
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3880 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3881 | if ${ac_cv_prog_CC+:} false; then : |
||
3882 | $as_echo_n "(cached) " >&6 |
||
3883 | else |
||
3884 | if test -n "$CC"; then |
||
3885 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
3886 | else |
||
3887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3888 | for as_dir in $PATH |
||
3889 | do |
||
3890 | IFS=$as_save_IFS |
||
3891 | test -z "$as_dir" && as_dir=. |
||
3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3894 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
||
3895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3896 | break 2 |
||
3897 | fi |
||
3898 | done |
||
3899 | done |
||
3900 | IFS=$as_save_IFS |
||
3901 | |||
3902 | fi |
||
3903 | fi |
||
3904 | CC=$ac_cv_prog_CC |
||
3905 | if test -n "$CC"; then |
||
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
3907 | $as_echo "$CC" >&6; } |
||
3908 | else |
||
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3910 | $as_echo "no" >&6; } |
||
3911 | fi |
||
3912 | |||
3913 | |||
3914 | fi |
||
3915 | if test -z "$ac_cv_prog_CC"; then |
||
3916 | ac_ct_CC=$CC |
||
3917 | # Extract the first word of "gcc", so it can be a program name with args. |
||
3918 | set dummy gcc; ac_word=$2 |
||
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3920 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3921 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
3922 | $as_echo_n "(cached) " >&6 |
||
3923 | else |
||
3924 | if test -n "$ac_ct_CC"; then |
||
3925 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
3926 | else |
||
3927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3928 | for as_dir in $PATH |
||
3929 | do |
||
3930 | IFS=$as_save_IFS |
||
3931 | test -z "$as_dir" && as_dir=. |
||
3932 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3934 | ac_cv_prog_ac_ct_CC="gcc" |
||
3935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3936 | break 2 |
||
3937 | fi |
||
3938 | done |
||
3939 | done |
||
3940 | IFS=$as_save_IFS |
||
3941 | |||
3942 | fi |
||
3943 | fi |
||
3944 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
3945 | if test -n "$ac_ct_CC"; then |
||
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
3947 | $as_echo "$ac_ct_CC" >&6; } |
||
3948 | else |
||
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3950 | $as_echo "no" >&6; } |
||
3951 | fi |
||
3952 | |||
3953 | if test "x$ac_ct_CC" = x; then |
||
3954 | CC="" |
||
3955 | else |
||
3956 | case $cross_compiling:$ac_tool_warned in |
||
3957 | yes:) |
||
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
3959 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
3960 | ac_tool_warned=yes ;; |
||
3961 | esac |
||
3962 | CC=$ac_ct_CC |
||
3963 | fi |
||
3964 | else |
||
3965 | CC="$ac_cv_prog_CC" |
||
3966 | fi |
||
3967 | |||
3968 | if test -z "$CC"; then |
||
3969 | if test -n "$ac_tool_prefix"; then |
||
3970 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
||
3971 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
||
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3973 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3974 | if ${ac_cv_prog_CC+:} false; then : |
||
3975 | $as_echo_n "(cached) " >&6 |
||
3976 | else |
||
3977 | if test -n "$CC"; then |
||
3978 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
3979 | else |
||
3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3981 | for as_dir in $PATH |
||
3982 | do |
||
3983 | IFS=$as_save_IFS |
||
3984 | test -z "$as_dir" && as_dir=. |
||
3985 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3987 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
||
3988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3989 | break 2 |
||
3990 | fi |
||
3991 | done |
||
3992 | done |
||
3993 | IFS=$as_save_IFS |
||
3994 | |||
3995 | fi |
||
3996 | fi |
||
3997 | CC=$ac_cv_prog_CC |
||
3998 | if test -n "$CC"; then |
||
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
4000 | $as_echo "$CC" >&6; } |
||
4001 | else |
||
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4003 | $as_echo "no" >&6; } |
||
4004 | fi |
||
4005 | |||
4006 | |||
4007 | fi |
||
4008 | fi |
||
4009 | if test -z "$CC"; then |
||
4010 | # Extract the first word of "cc", so it can be a program name with args. |
||
4011 | set dummy cc; ac_word=$2 |
||
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
4013 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4014 | if ${ac_cv_prog_CC+:} false; then : |
||
4015 | $as_echo_n "(cached) " >&6 |
||
4016 | else |
||
4017 | if test -n "$CC"; then |
||
4018 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
4019 | else |
||
4020 | ac_prog_rejected=no |
||
4021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4022 | for as_dir in $PATH |
||
4023 | do |
||
4024 | IFS=$as_save_IFS |
||
4025 | test -z "$as_dir" && as_dir=. |
||
4026 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
4028 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
||
4029 | ac_prog_rejected=yes |
||
4030 | continue |
||
4031 | fi |
||
4032 | ac_cv_prog_CC="cc" |
||
4033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4034 | break 2 |
||
4035 | fi |
||
4036 | done |
||
4037 | done |
||
4038 | IFS=$as_save_IFS |
||
4039 | |||
4040 | if test $ac_prog_rejected = yes; then |
||
4041 | # We found a bogon in the path, so make sure we never use it. |
||
4042 | set dummy $ac_cv_prog_CC |
||
4043 | shift |
||
4044 | if test $# != 0; then |
||
4045 | # We chose a different compiler from the bogus one. |
||
4046 | # However, it has the same basename, so the bogon will be chosen |
||
4047 | # first if we set CC to just the basename; use the full file name. |
||
4048 | shift |
||
4049 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
||
4050 | fi |
||
4051 | fi |
||
4052 | fi |
||
4053 | fi |
||
4054 | CC=$ac_cv_prog_CC |
||
4055 | if test -n "$CC"; then |
||
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
4057 | $as_echo "$CC" >&6; } |
||
4058 | else |
||
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4060 | $as_echo "no" >&6; } |
||
4061 | fi |
||
4062 | |||
4063 | |||
4064 | fi |
||
4065 | if test -z "$CC"; then |
||
4066 | if test -n "$ac_tool_prefix"; then |
||
4067 | for ac_prog in cl.exe |
||
4068 | do |
||
4069 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
4070 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
4072 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4073 | if ${ac_cv_prog_CC+:} false; then : |
||
4074 | $as_echo_n "(cached) " >&6 |
||
4075 | else |
||
4076 | if test -n "$CC"; then |
||
4077 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
4078 | else |
||
4079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4080 | for as_dir in $PATH |
||
4081 | do |
||
4082 | IFS=$as_save_IFS |
||
4083 | test -z "$as_dir" && as_dir=. |
||
4084 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
4086 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
4087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4088 | break 2 |
||
4089 | fi |
||
4090 | done |
||
4091 | done |
||
4092 | IFS=$as_save_IFS |
||
4093 | |||
4094 | fi |
||
4095 | fi |
||
4096 | CC=$ac_cv_prog_CC |
||
4097 | if test -n "$CC"; then |
||
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
4099 | $as_echo "$CC" >&6; } |
||
4100 | else |
||
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4102 | $as_echo "no" >&6; } |
||
4103 | fi |
||
4104 | |||
4105 | |||
4106 | test -n "$CC" && break |
||
4107 | done |
||
4108 | fi |
||
4109 | if test -z "$CC"; then |
||
4110 | ac_ct_CC=$CC |
||
4111 | for ac_prog in cl.exe |
||
4112 | do |
||
4113 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
4114 | set dummy $ac_prog; ac_word=$2 |
||
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
4116 | $as_echo_n "checking for $ac_word... " >&6; } |
||
4117 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
4118 | $as_echo_n "(cached) " >&6 |
||
4119 | else |
||
4120 | if test -n "$ac_ct_CC"; then |
||
4121 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
4122 | else |
||
4123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4124 | for as_dir in $PATH |
||
4125 | do |
||
4126 | IFS=$as_save_IFS |
||
4127 | test -z "$as_dir" && as_dir=. |
||
4128 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
4130 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
4131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
4132 | break 2 |
||
4133 | fi |
||
4134 | done |
||
4135 | done |
||
4136 | IFS=$as_save_IFS |
||
4137 | |||
4138 | fi |
||
4139 | fi |
||
4140 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
4141 | if test -n "$ac_ct_CC"; then |
||
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
4143 | $as_echo "$ac_ct_CC" >&6; } |
||
4144 | else |
||
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4146 | $as_echo "no" >&6; } |
||
4147 | fi |
||
4148 | |||
4149 | |||
4150 | test -n "$ac_ct_CC" && break |
||
4151 | done |
||
4152 | |||
4153 | if test "x$ac_ct_CC" = x; then |
||
4154 | CC="" |
||
4155 | else |
||
4156 | case $cross_compiling:$ac_tool_warned in |
||
4157 | yes:) |
||
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
4159 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
4160 | ac_tool_warned=yes ;; |
||
4161 | esac |
||
4162 | CC=$ac_ct_CC |
||
4163 | fi |
||
4164 | fi |
||
4165 | |||
4166 | fi |
||
4167 | |||
4168 | |||
4169 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
4170 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
4171 | as_fn_error $? "no acceptable C compiler found in \$PATH |
||
4172 | See \`config.log' for more details" "$LINENO" 5; } |
||
4173 | |||
4174 | # Provide some information about the compiler. |
||
4175 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
||
4176 | set X $ac_compile |
||
4177 | ac_compiler=$2 |
||
4178 | for ac_option in --version -v -V -qversion; do |
||
4179 | { { ac_try="$ac_compiler $ac_option >&5" |
||
4180 | case "(($ac_try" in |
||
4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4182 | *) ac_try_echo=$ac_try;; |
||
4183 | esac |
||
4184 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
4185 | $as_echo "$ac_try_echo"; } >&5 |
||
4186 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
4187 | ac_status=$? |
||
4188 | if test -s conftest.err; then |
||
4189 | sed '10a\ |
||
4190 | ... rest of stderr output deleted ... |
||
4191 | 10q' conftest.err >conftest.er1 |
||
4192 | cat conftest.er1 >&5 |
||
4193 | fi |
||
4194 | rm -f conftest.er1 conftest.err |
||
4195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
4196 | test $ac_status = 0; } |
||
4197 | done |
||
4198 | |||
4199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4200 | /* end confdefs.h. */ |
||
4201 | |||
4202 | int |
||
4203 | main () |
||
4204 | { |
||
4205 | |||
4206 | ; |
||
4207 | return 0; |
||
4208 | } |
||
4209 | _ACEOF |
||
4210 | ac_clean_files_save=$ac_clean_files |
||
4211 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
||
4212 | # Try to create an executable without -o first, disregard a.out. |
||
4213 | # It will help us diagnose broken compilers, and finding out an intuition |
||
4214 | # of exeext. |
||
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
||
4216 | $as_echo_n "checking whether the C compiler works... " >&6; } |
||
4217 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
||
4218 | |||
4219 | # The possible output files: |
||
4220 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
||
4221 | |||
4222 | ac_rmfiles= |
||
4223 | for ac_file in $ac_files |
||
4224 | do |
||
4225 | case $ac_file in |
||
4226 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
4227 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
||
4228 | esac |
||
4229 | done |
||
4230 | rm -f $ac_rmfiles |
||
4231 | |||
4232 | if { { ac_try="$ac_link_default" |
||
4233 | case "(($ac_try" in |
||
4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4235 | *) ac_try_echo=$ac_try;; |
||
4236 | esac |
||
4237 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
4238 | $as_echo "$ac_try_echo"; } >&5 |
||
4239 | (eval "$ac_link_default") 2>&5 |
||
4240 | ac_status=$? |
||
4241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
4242 | test $ac_status = 0; }; then : |
||
4243 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
||
4244 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
||
4245 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
||
4246 | # so that the user can short-circuit this test for compilers unknown to |
||
4247 | # Autoconf. |
||
4248 | for ac_file in $ac_files '' |
||
4249 | do |
||
4250 | test -f "$ac_file" || continue |
||
4251 | case $ac_file in |
||
4252 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
||
4253 | ;; |
||
4254 | [ab].out ) |
||
4255 | # We found the default executable, but exeext='' is most |
||
4256 | # certainly right. |
||
4257 | break;; |
||
4258 | *.* ) |
||
4259 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
||
4260 | then :; else |
||
4261 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
4262 | fi |
||
4263 | # We set ac_cv_exeext here because the later test for it is not |
||
4264 | # safe: cross compilers may not add the suffix if given an `-o' |
||
4265 | # argument, so we may need to know it at that point already. |
||
4266 | # Even if this section looks crufty: it has the advantage of |
||
4267 | # actually working. |
||
4268 | break;; |
||
4269 | * ) |
||
4270 | break;; |
||
4271 | esac |
||
4272 | done |
||
4273 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
||
4274 | |||
4275 | else |
||
4276 | ac_file='' |
||
4277 | fi |
||
4278 | if test -z "$ac_file"; then : |
||
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
4280 | $as_echo "no" >&6; } |
||
4281 | $as_echo "$as_me: failed program was:" >&5 |
||
4282 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4283 | |||
4284 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
4285 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
4286 | as_fn_error 77 "C compiler cannot create executables |
||
4287 | See \`config.log' for more details" "$LINENO" 5; } |
||
4288 | else |
||
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
4290 | $as_echo "yes" >&6; } |
||
4291 | fi |
||
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
||
4293 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
||
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
||
4295 | $as_echo "$ac_file" >&6; } |
||
4296 | ac_exeext=$ac_cv_exeext |
||
4297 | |||
4298 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
||
4299 | ac_clean_files=$ac_clean_files_save |
||
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
||
4301 | $as_echo_n "checking for suffix of executables... " >&6; } |
||
4302 | if { { ac_try="$ac_link" |
||
4303 | case "(($ac_try" in |
||
4304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4305 | *) ac_try_echo=$ac_try;; |
||
4306 | esac |
||
4307 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
4308 | $as_echo "$ac_try_echo"; } >&5 |
||
4309 | (eval "$ac_link") 2>&5 |
||
4310 | ac_status=$? |
||
4311 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
4312 | test $ac_status = 0; }; then : |
||
4313 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
||
4314 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
||
4315 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
||
4316 | # `rm'. |
||
4317 | for ac_file in conftest.exe conftest conftest.*; do |
||
4318 | test -f "$ac_file" || continue |
||
4319 | case $ac_file in |
||
4320 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
4321 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
4322 | break;; |
||
4323 | * ) break;; |
||
4324 | esac |
||
4325 | done |
||
4326 | else |
||
4327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
4328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
4329 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
||
4330 | See \`config.log' for more details" "$LINENO" 5; } |
||
4331 | fi |
||
4332 | rm -f conftest conftest$ac_cv_exeext |
||
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
||
4334 | $as_echo "$ac_cv_exeext" >&6; } |
||
4335 | |||
4336 | rm -f conftest.$ac_ext |
||
4337 | EXEEXT=$ac_cv_exeext |
||
4338 | ac_exeext=$EXEEXT |
||
4339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4340 | /* end confdefs.h. */ |
||
4341 | #include <stdio.h> |
||
4342 | int |
||
4343 | main () |
||
4344 | { |
||
4345 | FILE *f = fopen ("conftest.out", "w"); |
||
4346 | return ferror (f) || fclose (f) != 0; |
||
4347 | |||
4348 | ; |
||
4349 | return 0; |
||
4350 | } |
||
4351 | _ACEOF |
||
4352 | ac_clean_files="$ac_clean_files conftest.out" |
||
4353 | # Check that the compiler produces executables we can run. If not, either |
||
4354 | # the compiler is broken, or we cross compile. |
||
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
||
4356 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
||
4357 | if test "$cross_compiling" != yes; then |
||
4358 | { { ac_try="$ac_link" |
||
4359 | case "(($ac_try" in |
||
4360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4361 | *) ac_try_echo=$ac_try;; |
||
4362 | esac |
||
4363 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
4364 | $as_echo "$ac_try_echo"; } >&5 |
||
4365 | (eval "$ac_link") 2>&5 |
||
4366 | ac_status=$? |
||
4367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
4368 | test $ac_status = 0; } |
||
4369 | if { ac_try='./conftest$ac_cv_exeext' |
||
4370 | { { case "(($ac_try" in |
||
4371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4372 | *) ac_try_echo=$ac_try;; |
||
4373 | esac |
||
4374 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
4375 | $as_echo "$ac_try_echo"; } >&5 |
||
4376 | (eval "$ac_try") 2>&5 |
||
4377 | ac_status=$? |
||
4378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
4379 | test $ac_status = 0; }; }; then |
||
4380 | cross_compiling=no |
||
4381 | else |
||
4382 | if test "$cross_compiling" = maybe; then |
||
4383 | cross_compiling=yes |
||
4384 | else |
||
4385 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
4386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
4387 | as_fn_error $? "cannot run C compiled programs. |
||
4388 | If you meant to cross compile, use \`--host'. |
||
4389 | See \`config.log' for more details" "$LINENO" 5; } |
||
4390 | fi |
||
4391 | fi |
||
4392 | fi |
||
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
||
4394 | $as_echo "$cross_compiling" >&6; } |
||
4395 | |||
4396 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
||
4397 | ac_clean_files=$ac_clean_files_save |
||
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
||
4399 | $as_echo_n "checking for suffix of object files... " >&6; } |
||
4400 | if ${ac_cv_objext+:} false; then : |
||
4401 | $as_echo_n "(cached) " >&6 |
||
4402 | else |
||
4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4404 | /* end confdefs.h. */ |
||
4405 | |||
4406 | int |
||
4407 | main () |
||
4408 | { |
||
4409 | |||
4410 | ; |
||
4411 | return 0; |
||
4412 | } |
||
4413 | _ACEOF |
||
4414 | rm -f conftest.o conftest.obj |
||
4415 | if { { ac_try="$ac_compile" |
||
4416 | case "(($ac_try" in |
||
4417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
4418 | *) ac_try_echo=$ac_try;; |
||
4419 | esac |
||
4420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
4421 | $as_echo "$ac_try_echo"; } >&5 |
||
4422 | (eval "$ac_compile") 2>&5 |
||
4423 | ac_status=$? |
||
4424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
4425 | test $ac_status = 0; }; then : |
||
4426 | for ac_file in conftest.o conftest.obj conftest.*; do |
||
4427 | test -f "$ac_file" || continue; |
||
4428 | case $ac_file in |
||
4429 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
||
4430 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
||
4431 | break;; |
||
4432 | esac |
||
4433 | done |
||
4434 | else |
||
4435 | $as_echo "$as_me: failed program was:" >&5 |
||
4436 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4437 | |||
4438 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
4439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
4440 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
||
4441 | See \`config.log' for more details" "$LINENO" 5; } |
||
4442 | fi |
||
4443 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
||
4444 | fi |
||
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
||
4446 | $as_echo "$ac_cv_objext" >&6; } |
||
4447 | OBJEXT=$ac_cv_objext |
||
4448 | ac_objext=$OBJEXT |
||
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
||
4450 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
||
4451 | if ${ac_cv_c_compiler_gnu+:} false; then : |
||
4452 | $as_echo_n "(cached) " >&6 |
||
4453 | else |
||
4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4455 | /* end confdefs.h. */ |
||
4456 | |||
4457 | int |
||
4458 | main () |
||
4459 | { |
||
4460 | #ifndef __GNUC__ |
||
4461 | choke me |
||
4462 | #endif |
||
4463 | |||
4464 | ; |
||
4465 | return 0; |
||
4466 | } |
||
4467 | _ACEOF |
||
4468 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4469 | ac_compiler_gnu=yes |
||
4470 | else |
||
4471 | ac_compiler_gnu=no |
||
4472 | fi |
||
4473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4474 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
4475 | |||
4476 | fi |
||
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
||
4478 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
||
4479 | if test $ac_compiler_gnu = yes; then |
||
4480 | GCC=yes |
||
4481 | else |
||
4482 | GCC= |
||
4483 | fi |
||
4484 | ac_test_CFLAGS=${CFLAGS+set} |
||
4485 | ac_save_CFLAGS=$CFLAGS |
||
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
||
4487 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
||
4488 | if ${ac_cv_prog_cc_g+:} false; then : |
||
4489 | $as_echo_n "(cached) " >&6 |
||
4490 | else |
||
4491 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
4492 | ac_c_werror_flag=yes |
||
4493 | ac_cv_prog_cc_g=no |
||
4494 | CFLAGS="-g" |
||
4495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4496 | /* end confdefs.h. */ |
||
4497 | |||
4498 | int |
||
4499 | main () |
||
4500 | { |
||
4501 | |||
4502 | ; |
||
4503 | return 0; |
||
4504 | } |
||
4505 | _ACEOF |
||
4506 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4507 | ac_cv_prog_cc_g=yes |
||
4508 | else |
||
4509 | CFLAGS="" |
||
4510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4511 | /* end confdefs.h. */ |
||
4512 | |||
4513 | int |
||
4514 | main () |
||
4515 | { |
||
4516 | |||
4517 | ; |
||
4518 | return 0; |
||
4519 | } |
||
4520 | _ACEOF |
||
4521 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4522 | |||
4523 | else |
||
4524 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
4525 | CFLAGS="-g" |
||
4526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4527 | /* end confdefs.h. */ |
||
4528 | |||
4529 | int |
||
4530 | main () |
||
4531 | { |
||
4532 | |||
4533 | ; |
||
4534 | return 0; |
||
4535 | } |
||
4536 | _ACEOF |
||
4537 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4538 | ac_cv_prog_cc_g=yes |
||
4539 | fi |
||
4540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4541 | fi |
||
4542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4543 | fi |
||
4544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4545 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
4546 | fi |
||
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
||
4548 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
||
4549 | if test "$ac_test_CFLAGS" = set; then |
||
4550 | CFLAGS=$ac_save_CFLAGS |
||
4551 | elif test $ac_cv_prog_cc_g = yes; then |
||
4552 | if test "$GCC" = yes; then |
||
4553 | CFLAGS="-g -O2" |
||
4554 | else |
||
4555 | CFLAGS="-g" |
||
4556 | fi |
||
4557 | else |
||
4558 | if test "$GCC" = yes; then |
||
4559 | CFLAGS="-O2" |
||
4560 | else |
||
4561 | CFLAGS= |
||
4562 | fi |
||
4563 | fi |
||
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
||
4565 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
||
4566 | if ${ac_cv_prog_cc_c89+:} false; then : |
||
4567 | $as_echo_n "(cached) " >&6 |
||
4568 | else |
||
4569 | ac_cv_prog_cc_c89=no |
||
4570 | ac_save_CC=$CC |
||
4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4572 | /* end confdefs.h. */ |
||
4573 | #include <stdarg.h> |
||
4574 | #include <stdio.h> |
||
4575 | struct stat; |
||
4576 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
4577 | struct buf { int x; }; |
||
4578 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
4579 | static char *e (p, i) |
||
4580 | char **p; |
||
4581 | int i; |
||
4582 | { |
||
4583 | return p[i]; |
||
4584 | } |
||
4585 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
4586 | { |
||
4587 | char *s; |
||
4588 | va_list v; |
||
4589 | va_start (v,p); |
||
4590 | s = g (p, va_arg (v,int)); |
||
4591 | va_end (v); |
||
4592 | return s; |
||
4593 | } |
||
4594 | |||
4595 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
4596 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
4597 | These don't provoke an error unfortunately, instead are silently treated |
||
4598 | as 'x'. The following induces an error, until -std is added to get |
||
4599 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
4600 | array size at least. It's necessary to write '\x00'==0 to get something |
||
4601 | that's true only with -std. */ |
||
4602 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
4603 | |||
4604 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
4605 | inside strings and character constants. */ |
||
4606 | #define FOO(x) 'x' |
||
4607 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
4608 | |||
4609 | int test (int i, double x); |
||
4610 | struct s1 {int (*f) (int a);}; |
||
4611 | struct s2 {int (*f) (double a);}; |
||
4612 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
4613 | int argc; |
||
4614 | char **argv; |
||
4615 | int |
||
4616 | main () |
||
4617 | { |
||
4618 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
4619 | ; |
||
4620 | return 0; |
||
4621 | } |
||
4622 | _ACEOF |
||
4623 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
4624 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
4625 | do |
||
4626 | CC="$ac_save_CC $ac_arg" |
||
4627 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4628 | ac_cv_prog_cc_c89=$ac_arg |
||
4629 | fi |
||
4630 | rm -f core conftest.err conftest.$ac_objext |
||
4631 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
4632 | done |
||
4633 | rm -f conftest.$ac_ext |
||
4634 | CC=$ac_save_CC |
||
4635 | |||
4636 | fi |
||
4637 | # AC_CACHE_VAL |
||
4638 | case "x$ac_cv_prog_cc_c89" in |
||
4639 | x) |
||
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
||
4641 | $as_echo "none needed" >&6; } ;; |
||
4642 | xno) |
||
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
||
4644 | $as_echo "unsupported" >&6; } ;; |
||
4645 | *) |
||
4646 | CC="$CC $ac_cv_prog_cc_c89" |
||
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
||
4648 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
||
4649 | esac |
||
4650 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
||
4651 | |||
4652 | fi |
||
4653 | |||
4654 | ac_ext=c |
||
4655 | ac_cpp='$CPP $CPPFLAGS' |
||
4656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4659 | |||
4660 | ac_ext=c |
||
4661 | ac_cpp='$CPP $CPPFLAGS' |
||
4662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
||
4666 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
||
4667 | if ${am_cv_prog_cc_c_o+:} false; then : |
||
4668 | $as_echo_n "(cached) " >&6 |
||
4669 | else |
||
4670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4671 | /* end confdefs.h. */ |
||
4672 | |||
4673 | int |
||
4674 | main () |
||
4675 | { |
||
4676 | |||
4677 | ; |
||
4678 | return 0; |
||
4679 | } |
||
4680 | _ACEOF |
||
4681 | # Make sure it works both with $CC and with simple cc. |
||
4682 | # Following AC_PROG_CC_C_O, we do the test twice because some |
||
4683 | # compilers refuse to overwrite an existing .o file with -o, |
||
4684 | # though they will create one. |
||
4685 | am_cv_prog_cc_c_o=yes |
||
4686 | for am_i in 1 2; do |
||
4687 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
||
4688 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
||
4689 | ac_status=$? |
||
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4691 | (exit $ac_status); } \ |
||
4692 | && test -f conftest2.$ac_objext; then |
||
4693 | : OK |
||
4694 | else |
||
4695 | am_cv_prog_cc_c_o=no |
||
4696 | break |
||
4697 | fi |
||
4698 | done |
||
4699 | rm -f core conftest* |
||
4700 | unset am_i |
||
4701 | fi |
||
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
||
4703 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
||
4704 | if test "$am_cv_prog_cc_c_o" != yes; then |
||
4705 | # Losing compiler, so override with the script. |
||
4706 | # FIXME: It is wrong to rewrite CC. |
||
4707 | # But if we don't then we get into trouble of one sort or another. |
||
4708 | # A longer-term fix would be to have automake use am__CC in this case, |
||
4709 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
||
4710 | CC="$am_aux_dir/compile $CC" |
||
4711 | fi |
||
4712 | ac_ext=c |
||
4713 | ac_cpp='$CPP $CPPFLAGS' |
||
4714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4717 | |||
4718 | DEPDIR="${am__leading_dot}deps" |
||
4719 | |||
4720 | ac_config_commands="$ac_config_commands depfiles" |
||
4721 | |||
4722 | |||
4723 | am_make=${MAKE-make} |
||
4724 | cat > confinc << 'END' |
||
4725 | am__doit: |
||
4726 | @echo this is the am__doit target |
||
4727 | .PHONY: am__doit |
||
4728 | END |
||
4729 | # If we don't find an include directive, just comment out the code. |
||
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
||
4731 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
||
4732 | am__include="#" |
||
4733 | am__quote= |
||
4734 | _am_result=none |
||
4735 | # First try GNU make style include. |
||
4736 | echo "include confinc" > confmf |
||
4737 | # Ignore all kinds of additional output from 'make'. |
||
4738 | case `$am_make -s -f confmf 2> /dev/null` in #( |
||
4739 | *the\ am__doit\ target*) |
||
4740 | am__include=include |
||
4741 | am__quote= |
||
4742 | _am_result=GNU |
||
4743 | ;; |
||
4744 | esac |
||
4745 | # Now try BSD make style include. |
||
4746 | if test "$am__include" = "#"; then |
||
4747 | echo '.include "confinc"' > confmf |
||
4748 | case `$am_make -s -f confmf 2> /dev/null` in #( |
||
4749 | *the\ am__doit\ target*) |
||
4750 | am__include=.include |
||
4751 | am__quote="\"" |
||
4752 | _am_result=BSD |
||
4753 | ;; |
||
4754 | esac |
||
4755 | fi |
||
4756 | |||
4757 | |||
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
||
4759 | $as_echo "$_am_result" >&6; } |
||
4760 | rm -f confinc confmf |
||
4761 | |||
4762 | # Check whether --enable-dependency-tracking was given. |
||
4763 | if test "${enable_dependency_tracking+set}" = set; then : |
||
4764 | enableval=$enable_dependency_tracking; |
||
4765 | fi |
||
4766 | |||
4767 | if test "x$enable_dependency_tracking" != xno; then |
||
4768 | am_depcomp="$ac_aux_dir/depcomp" |
||
4769 | AMDEPBACKSLASH='\' |
||
4770 | am__nodep='_no' |
||
4771 | fi |
||
4772 | if test "x$enable_dependency_tracking" != xno; then |
||
4773 | AMDEP_TRUE= |
||
4774 | AMDEP_FALSE='#' |
||
4775 | else |
||
4776 | AMDEP_TRUE='#' |
||
4777 | AMDEP_FALSE= |
||
4778 | fi |
||
4779 | |||
4780 | |||
4781 | |||
4782 | depcc="$CC" am_compiler_list= |
||
4783 | |||
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
||
4785 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
||
4786 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
||
4787 | $as_echo_n "(cached) " >&6 |
||
4788 | else |
||
4789 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
4790 | # We make a subdir and do the tests there. Otherwise we can end up |
||
4791 | # making bogus files that we don't know about and never remove. For |
||
4792 | # instance it was reported that on HP-UX the gcc test will end up |
||
4793 | # making a dummy file named 'D' -- because '-MD' means "put the output |
||
4794 | # in D". |
||
4795 | rm -rf conftest.dir |
||
4796 | mkdir conftest.dir |
||
4797 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
4798 | # using a relative directory. |
||
4799 | cp "$am_depcomp" conftest.dir |
||
4800 | cd conftest.dir |
||
4801 | # We will build objects and dependencies in a subdirectory because |
||
4802 | # it helps to detect inapplicable dependency modes. For instance |
||
4803 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
4804 | # side effect of compilation, but ICC will put the dependencies in |
||
4805 | # the current directory while Tru64 will put them in the object |
||
4806 | # directory. |
||
4807 | mkdir sub |
||
4808 | |||
4809 | am_cv_CC_dependencies_compiler_type=none |
||
4810 | if test "$am_compiler_list" = ""; then |
||
4811 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
4812 | fi |
||
4813 | am__universal=false |
||
4814 | case " $depcc " in #( |
||
4815 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
||
4816 | esac |
||
4817 | |||
4818 | for depmode in $am_compiler_list; do |
||
4819 | # Setup a source with many dependencies, because some compilers |
||
4820 | # like to wrap large dependency lists on column 80 (with \), and |
||
4821 | # we should not choose a depcomp mode which is confused by this. |
||
4822 | # |
||
4823 | # We need to recreate these files for each test, as the compiler may |
||
4824 | # overwrite some of them when testing with obscure command lines. |
||
4825 | # This happens at least with the AIX C compiler. |
||
4826 | : > sub/conftest.c |
||
4827 | for i in 1 2 3 4 5 6; do |
||
4828 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
4829 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
||
4830 | # Solaris 10 /bin/sh. |
||
4831 | echo '/* dummy */' > sub/conftst$i.h |
||
4832 | done |
||
4833 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
4834 | |||
4835 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
||
4836 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
4837 | # handle '-M -o', and we need to detect this. Also, some Intel |
||
4838 | # versions had trouble with output in subdirs. |
||
4839 | am__obj=sub/conftest.${OBJEXT-o} |
||
4840 | am__minus_obj="-o $am__obj" |
||
4841 | case $depmode in |
||
4842 | gcc) |
||
4843 | # This depmode causes a compiler race in universal mode. |
||
4844 | test "$am__universal" = false || continue |
||
4845 | ;; |
||
4846 | nosideeffect) |
||
4847 | # After this tag, mechanisms are not by side-effect, so they'll |
||
4848 | # only be used when explicitly requested. |
||
4849 | if test "x$enable_dependency_tracking" = xyes; then |
||
4850 | continue |
||
4851 | else |
||
4852 | break |
||
4853 | fi |
||
4854 | ;; |
||
4855 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
||
4856 | # This compiler won't grok '-c -o', but also, the minuso test has |
||
4857 | # not run yet. These depmodes are late enough in the game, and |
||
4858 | # so weak that their functioning should not be impacted. |
||
4859 | am__obj=conftest.${OBJEXT-o} |
||
4860 | am__minus_obj= |
||
4861 | ;; |
||
4862 | none) break ;; |
||
4863 | esac |
||
4864 | if depmode=$depmode \ |
||
4865 | source=sub/conftest.c object=$am__obj \ |
||
4866 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
4867 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
||
4868 | >/dev/null 2>conftest.err && |
||
4869 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
||
4870 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
4871 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
||
4872 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
4873 | # icc doesn't choke on unknown options, it will just issue warnings |
||
4874 | # or remarks (even with -Werror). So we grep stderr for any message |
||
4875 | # that says an option was ignored or not supported. |
||
4876 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
4877 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
4878 | # The diagnosis changed in icc 8.0: |
||
4879 | # icc: Command line remark: option '-MP' not supported |
||
4880 | if (grep 'ignoring option' conftest.err || |
||
4881 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
4882 | am_cv_CC_dependencies_compiler_type=$depmode |
||
4883 | break |
||
4884 | fi |
||
4885 | fi |
||
4886 | done |
||
4887 | |||
4888 | cd .. |
||
4889 | rm -rf conftest.dir |
||
4890 | else |
||
4891 | am_cv_CC_dependencies_compiler_type=none |
||
4892 | fi |
||
4893 | |||
4894 | fi |
||
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
||
4896 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
||
4897 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
||
4898 | |||
4899 | if |
||
4900 | test "x$enable_dependency_tracking" != xno \ |
||
4901 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
||
4902 | am__fastdepCC_TRUE= |
||
4903 | am__fastdepCC_FALSE='#' |
||
4904 | else |
||
4905 | am__fastdepCC_TRUE='#' |
||
4906 | am__fastdepCC_FALSE= |
||
4907 | fi |
||
4908 | |||
4909 | |||
4910 | ac_ext=c |
||
4911 | ac_cpp='$CPP $CPPFLAGS' |
||
4912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
4913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
4914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
||
4916 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
||
4917 | # On Suns, sometimes $CPP names a directory. |
||
4918 | if test -n "$CPP" && test -d "$CPP"; then |
||
4919 | CPP= |
||
4920 | fi |
||
4921 | if test -z "$CPP"; then |
||
4922 | if ${ac_cv_prog_CPP+:} false; then : |
||
4923 | $as_echo_n "(cached) " >&6 |
||
4924 | else |
||
4925 | # Double quotes because CPP needs to be expanded |
||
4926 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
||
4927 | do |
||
4928 | ac_preproc_ok=false |
||
4929 | for ac_c_preproc_warn_flag in '' yes |
||
4930 | do |
||
4931 | # Use a header file that comes with gcc, so configuring glibc |
||
4932 | # with a fresh cross-compiler works. |
||
4933 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4934 | # <limits.h> exists even on freestanding compilers. |
||
4935 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
4936 | # not just through cpp. "Syntax error" is here to catch this case. |
||
4937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4938 | /* end confdefs.h. */ |
||
4939 | #ifdef __STDC__ |
||
4940 | # include <limits.h> |
||
4941 | #else |
||
4942 | # include <assert.h> |
||
4943 | #endif |
||
4944 | Syntax error |
||
4945 | _ACEOF |
||
4946 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
4947 | |||
4948 | else |
||
4949 | # Broken: fails on valid input. |
||
4950 | continue |
||
4951 | fi |
||
4952 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
4953 | |||
4954 | # OK, works on sane cases. Now check whether nonexistent headers |
||
4955 | # can be detected and how. |
||
4956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4957 | /* end confdefs.h. */ |
||
4958 | #include <ac_nonexistent.h> |
||
4959 | _ACEOF |
||
4960 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
4961 | # Broken: success on invalid input. |
||
4962 | continue |
||
4963 | else |
||
4964 | # Passes both tests. |
||
4965 | ac_preproc_ok=: |
||
4966 | break |
||
4967 | fi |
||
4968 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
4969 | |||
4970 | done |
||
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
4972 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
4973 | if $ac_preproc_ok; then : |
||
4974 | break |
||
4975 | fi |
||
4976 | |||
4977 | done |
||
4978 | ac_cv_prog_CPP=$CPP |
||
4979 | |||
4980 | fi |
||
4981 | CPP=$ac_cv_prog_CPP |
||
4982 | else |
||
4983 | ac_cv_prog_CPP=$CPP |
||
4984 | fi |
||
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
||
4986 | $as_echo "$CPP" >&6; } |
||
4987 | ac_preproc_ok=false |
||
4988 | for ac_c_preproc_warn_flag in '' yes |
||
4989 | do |
||
4990 | # Use a header file that comes with gcc, so configuring glibc |
||
4991 | # with a fresh cross-compiler works. |
||
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4993 | # <limits.h> exists even on freestanding compilers. |
||
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
4995 | # not just through cpp. "Syntax error" is here to catch this case. |
||
4996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4997 | /* end confdefs.h. */ |
||
4998 | #ifdef __STDC__ |
||
4999 | # include <limits.h> |
||
5000 | #else |
||
5001 | # include <assert.h> |
||
5002 | #endif |
||
5003 | Syntax error |
||
5004 | _ACEOF |
||
5005 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
5006 | |||
5007 | else |
||
5008 | # Broken: fails on valid input. |
||
5009 | continue |
||
5010 | fi |
||
5011 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
5012 | |||
5013 | # OK, works on sane cases. Now check whether nonexistent headers |
||
5014 | # can be detected and how. |
||
5015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5016 | /* end confdefs.h. */ |
||
5017 | #include <ac_nonexistent.h> |
||
5018 | _ACEOF |
||
5019 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
5020 | # Broken: success on invalid input. |
||
5021 | continue |
||
5022 | else |
||
5023 | # Passes both tests. |
||
5024 | ac_preproc_ok=: |
||
5025 | break |
||
5026 | fi |
||
5027 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
5028 | |||
5029 | done |
||
5030 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
5031 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
5032 | if $ac_preproc_ok; then : |
||
5033 | |||
5034 | else |
||
5035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
5036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
5037 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
||
5038 | See \`config.log' for more details" "$LINENO" 5; } |
||
5039 | fi |
||
5040 | |||
5041 | ac_ext=c |
||
5042 | ac_cpp='$CPP $CPPFLAGS' |
||
5043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
5044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
5045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
5046 | |||
5047 | |||
5048 | |||
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
||
5050 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
||
5051 | if ${ac_cv_path_GREP+:} false; then : |
||
5052 | $as_echo_n "(cached) " >&6 |
||
5053 | else |
||
5054 | if test -z "$GREP"; then |
||
5055 | ac_path_GREP_found=false |
||
5056 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5058 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
5059 | do |
||
5060 | IFS=$as_save_IFS |
||
5061 | test -z "$as_dir" && as_dir=. |
||
5062 | for ac_prog in grep ggrep; do |
||
5063 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5064 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
||
5065 | as_fn_executable_p "$ac_path_GREP" || continue |
||
5066 | # Check for GNU ac_path_GREP and select it if it is found. |
||
5067 | # Check for GNU $ac_path_GREP |
||
5068 | case `"$ac_path_GREP" --version 2>&1` in |
||
5069 | *GNU*) |
||
5070 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
||
5071 | *) |
||
5072 | ac_count=0 |
||
5073 | $as_echo_n 0123456789 >"conftest.in" |
||
5074 | while : |
||
5075 | do |
||
5076 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
5077 | mv "conftest.tmp" "conftest.in" |
||
5078 | cp "conftest.in" "conftest.nl" |
||
5079 | $as_echo 'GREP' >> "conftest.nl" |
||
5080 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
5081 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
5082 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
5083 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
||
5084 | # Best one so far, save it but keep looking for a better one |
||
5085 | ac_cv_path_GREP="$ac_path_GREP" |
||
5086 | ac_path_GREP_max=$ac_count |
||
5087 | fi |
||
5088 | # 10*(2^10) chars as input seems more than enough |
||
5089 | test $ac_count -gt 10 && break |
||
5090 | done |
||
5091 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
5092 | esac |
||
5093 | |||
5094 | $ac_path_GREP_found && break 3 |
||
5095 | done |
||
5096 | done |
||
5097 | done |
||
5098 | IFS=$as_save_IFS |
||
5099 | if test -z "$ac_cv_path_GREP"; then |
||
5100 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
5101 | fi |
||
5102 | else |
||
5103 | ac_cv_path_GREP=$GREP |
||
5104 | fi |
||
5105 | |||
5106 | fi |
||
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
||
5108 | $as_echo "$ac_cv_path_GREP" >&6; } |
||
5109 | GREP="$ac_cv_path_GREP" |
||
5110 | |||
5111 | |||
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
||
5113 | $as_echo_n "checking for egrep... " >&6; } |
||
5114 | if ${ac_cv_path_EGREP+:} false; then : |
||
5115 | $as_echo_n "(cached) " >&6 |
||
5116 | else |
||
5117 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
||
5118 | then ac_cv_path_EGREP="$GREP -E" |
||
5119 | else |
||
5120 | if test -z "$EGREP"; then |
||
5121 | ac_path_EGREP_found=false |
||
5122 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
5123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5124 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
5125 | do |
||
5126 | IFS=$as_save_IFS |
||
5127 | test -z "$as_dir" && as_dir=. |
||
5128 | for ac_prog in egrep; do |
||
5129 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5130 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
5131 | as_fn_executable_p "$ac_path_EGREP" || continue |
||
5132 | # Check for GNU ac_path_EGREP and select it if it is found. |
||
5133 | # Check for GNU $ac_path_EGREP |
||
5134 | case `"$ac_path_EGREP" --version 2>&1` in |
||
5135 | *GNU*) |
||
5136 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
||
5137 | *) |
||
5138 | ac_count=0 |
||
5139 | $as_echo_n 0123456789 >"conftest.in" |
||
5140 | while : |
||
5141 | do |
||
5142 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
5143 | mv "conftest.tmp" "conftest.in" |
||
5144 | cp "conftest.in" "conftest.nl" |
||
5145 | $as_echo 'EGREP' >> "conftest.nl" |
||
5146 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
5147 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
5148 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
5149 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
||
5150 | # Best one so far, save it but keep looking for a better one |
||
5151 | ac_cv_path_EGREP="$ac_path_EGREP" |
||
5152 | ac_path_EGREP_max=$ac_count |
||
5153 | fi |
||
5154 | # 10*(2^10) chars as input seems more than enough |
||
5155 | test $ac_count -gt 10 && break |
||
5156 | done |
||
5157 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
5158 | esac |
||
5159 | |||
5160 | $ac_path_EGREP_found && break 3 |
||
5161 | done |
||
5162 | done |
||
5163 | done |
||
5164 | IFS=$as_save_IFS |
||
5165 | if test -z "$ac_cv_path_EGREP"; then |
||
5166 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
5167 | fi |
||
5168 | else |
||
5169 | ac_cv_path_EGREP=$EGREP |
||
5170 | fi |
||
5171 | |||
5172 | fi |
||
5173 | fi |
||
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
||
5175 | $as_echo "$ac_cv_path_EGREP" >&6; } |
||
5176 | EGREP="$ac_cv_path_EGREP" |
||
5177 | |||
5178 | |||
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
||
5180 | $as_echo_n "checking for ANSI C header files... " >&6; } |
||
5181 | if ${ac_cv_header_stdc+:} false; then : |
||
5182 | $as_echo_n "(cached) " >&6 |
||
5183 | else |
||
5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5185 | /* end confdefs.h. */ |
||
5186 | #include <stdlib.h> |
||
5187 | #include <stdarg.h> |
||
5188 | #include <string.h> |
||
5189 | #include <float.h> |
||
5190 | |||
5191 | int |
||
5192 | main () |
||
5193 | { |
||
5194 | |||
5195 | ; |
||
5196 | return 0; |
||
5197 | } |
||
5198 | _ACEOF |
||
5199 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5200 | ac_cv_header_stdc=yes |
||
5201 | else |
||
5202 | ac_cv_header_stdc=no |
||
5203 | fi |
||
5204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5205 | |||
5206 | if test $ac_cv_header_stdc = yes; then |
||
5207 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
5208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5209 | /* end confdefs.h. */ |
||
5210 | #include <string.h> |
||
5211 | |||
5212 | _ACEOF |
||
5213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
5214 | $EGREP "memchr" >/dev/null 2>&1; then : |
||
5215 | |||
5216 | else |
||
5217 | ac_cv_header_stdc=no |
||
5218 | fi |
||
5219 | rm -f conftest* |
||
5220 | |||
5221 | fi |
||
5222 | |||
5223 | if test $ac_cv_header_stdc = yes; then |
||
5224 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
5225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5226 | /* end confdefs.h. */ |
||
5227 | #include <stdlib.h> |
||
5228 | |||
5229 | _ACEOF |
||
5230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
5231 | $EGREP "free" >/dev/null 2>&1; then : |
||
5232 | |||
5233 | else |
||
5234 | ac_cv_header_stdc=no |
||
5235 | fi |
||
5236 | rm -f conftest* |
||
5237 | |||
5238 | fi |
||
5239 | |||
5240 | if test $ac_cv_header_stdc = yes; then |
||
5241 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
5242 | if test "$cross_compiling" = yes; then : |
||
5243 | : |
||
5244 | else |
||
5245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5246 | /* end confdefs.h. */ |
||
5247 | #include <ctype.h> |
||
5248 | #include <stdlib.h> |
||
5249 | #if ((' ' & 0x0FF) == 0x020) |
||
5250 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
5251 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
5252 | #else |
||
5253 | # define ISLOWER(c) \ |
||
5254 | (('a' <= (c) && (c) <= 'i') \ |
||
5255 | || ('j' <= (c) && (c) <= 'r') \ |
||
5256 | || ('s' <= (c) && (c) <= 'z')) |
||
5257 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
5258 | #endif |
||
5259 | |||
5260 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
5261 | int |
||
5262 | main () |
||
5263 | { |
||
5264 | int i; |
||
5265 | for (i = 0; i < 256; i++) |
||
5266 | if (XOR (islower (i), ISLOWER (i)) |
||
5267 | || toupper (i) != TOUPPER (i)) |
||
5268 | return 2; |
||
5269 | return 0; |
||
5270 | } |
||
5271 | _ACEOF |
||
5272 | if ac_fn_c_try_run "$LINENO"; then : |
||
5273 | |||
5274 | else |
||
5275 | ac_cv_header_stdc=no |
||
5276 | fi |
||
5277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5278 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5279 | fi |
||
5280 | |||
5281 | fi |
||
5282 | fi |
||
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
||
5284 | $as_echo "$ac_cv_header_stdc" >&6; } |
||
5285 | if test $ac_cv_header_stdc = yes; then |
||
5286 | |||
5287 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
||
5288 | |||
5289 | fi |
||
5290 | |||
5291 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
||
5292 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
||
5293 | inttypes.h stdint.h unistd.h |
||
5294 | do : |
||
5295 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
5296 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
||
5297 | " |
||
5298 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
5299 | cat >>confdefs.h <<_ACEOF |
||
5300 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5301 | _ACEOF |
||
5302 | |||
5303 | fi |
||
5304 | |||
5305 | done |
||
5306 | |||
5307 | |||
5308 | |||
5309 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
||
5310 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
||
5311 | MINIX=yes |
||
5312 | else |
||
5313 | MINIX= |
||
5314 | fi |
||
5315 | |||
5316 | |||
5317 | if test "$MINIX" = yes; then |
||
5318 | |||
5319 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
||
5320 | |||
5321 | |||
5322 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
||
5323 | |||
5324 | |||
5325 | $as_echo "#define _MINIX 1" >>confdefs.h |
||
5326 | |||
5327 | fi |
||
5328 | |||
5329 | |||
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
||
5331 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
||
5332 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
||
5333 | $as_echo_n "(cached) " >&6 |
||
5334 | else |
||
5335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5336 | /* end confdefs.h. */ |
||
5337 | |||
5338 | # define __EXTENSIONS__ 1 |
||
5339 | $ac_includes_default |
||
5340 | int |
||
5341 | main () |
||
5342 | { |
||
5343 | |||
5344 | ; |
||
5345 | return 0; |
||
5346 | } |
||
5347 | _ACEOF |
||
5348 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5349 | ac_cv_safe_to_define___extensions__=yes |
||
5350 | else |
||
5351 | ac_cv_safe_to_define___extensions__=no |
||
5352 | fi |
||
5353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5354 | fi |
||
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
||
5356 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
||
5357 | test $ac_cv_safe_to_define___extensions__ = yes && |
||
5358 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
||
5359 | |||
5360 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
||
5361 | |||
5362 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
||
5363 | |||
5364 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
||
5365 | |||
5366 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
||
5367 | |||
5368 | |||
5369 | |||
5370 | if test "$GCC" = "yes"; then |
||
5371 | HAVE_GCC_TRUE= |
||
5372 | HAVE_GCC_FALSE='#' |
||
5373 | else |
||
5374 | HAVE_GCC_TRUE='#' |
||
5375 | HAVE_GCC_FALSE= |
||
5376 | fi |
||
5377 | |||
5378 | |||
5379 | # Make sure we can run config.sub. |
||
5380 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
||
5381 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
||
5382 | |||
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
||
5384 | $as_echo_n "checking build system type... " >&6; } |
||
5385 | if ${ac_cv_build+:} false; then : |
||
5386 | $as_echo_n "(cached) " >&6 |
||
5387 | else |
||
5388 | ac_build_alias=$build_alias |
||
5389 | test "x$ac_build_alias" = x && |
||
5390 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
||
5391 | test "x$ac_build_alias" = x && |
||
5392 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
||
5393 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
||
5394 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
||
5395 | |||
5396 | fi |
||
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
||
5398 | $as_echo "$ac_cv_build" >&6; } |
||
5399 | case $ac_cv_build in |
||
5400 | *-*-*) ;; |
||
5401 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
||
5402 | esac |
||
5403 | build=$ac_cv_build |
||
5404 | ac_save_IFS=$IFS; IFS='-' |
||
5405 | set x $ac_cv_build |
||
5406 | shift |
||
5407 | build_cpu=$1 |
||
5408 | build_vendor=$2 |
||
5409 | shift; shift |
||
5410 | # Remember, the first character of IFS is used to create $*, |
||
5411 | # except with old shells: |
||
5412 | build_os=$* |
||
5413 | IFS=$ac_save_IFS |
||
5414 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
||
5415 | |||
5416 | |||
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
||
5418 | $as_echo_n "checking host system type... " >&6; } |
||
5419 | if ${ac_cv_host+:} false; then : |
||
5420 | $as_echo_n "(cached) " >&6 |
||
5421 | else |
||
5422 | if test "x$host_alias" = x; then |
||
5423 | ac_cv_host=$ac_cv_build |
||
5424 | else |
||
5425 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
||
5426 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
||
5427 | fi |
||
5428 | |||
5429 | fi |
||
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
||
5431 | $as_echo "$ac_cv_host" >&6; } |
||
5432 | case $ac_cv_host in |
||
5433 | *-*-*) ;; |
||
5434 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
||
5435 | esac |
||
5436 | host=$ac_cv_host |
||
5437 | ac_save_IFS=$IFS; IFS='-' |
||
5438 | set x $ac_cv_host |
||
5439 | shift |
||
5440 | host_cpu=$1 |
||
5441 | host_vendor=$2 |
||
5442 | shift; shift |
||
5443 | # Remember, the first character of IFS is used to create $*, |
||
5444 | # except with old shells: |
||
5445 | host_os=$* |
||
5446 | IFS=$ac_save_IFS |
||
5447 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
||
5448 | |||
5449 | |||
5450 | |||
5451 | |||
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5 |
||
5453 | $as_echo_n "checking for Win32... " >&6; } |
||
5454 | LIB_EXE_MACHINE_FLAG=X86 |
||
5455 | case "$host" in |
||
5456 | *-*-mingw*) |
||
5457 | glib_native_win32=yes |
||
5458 | glib_pid_type='void *' |
||
5459 | glib_pollfd_format='%#x' |
||
5460 | glib_cv_stack_grows=no |
||
5461 | # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf |
||
5462 | # don't seem to be quite good enough, at least not in mingw-runtime-3.14. |
||
5463 | # (Sorry, I don't know exactly what is the problem, but it is related to |
||
5464 | # floating point formatting and decimal point vs. comma.) |
||
5465 | # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't |
||
5466 | # rigorous enough to notice, though. |
||
5467 | # So preset the autoconf cache variables. |
||
5468 | ac_cv_func_vsnprintf_c99=no |
||
5469 | ac_cv_func_snprintf_c99=no |
||
5470 | case "$host" in |
||
5471 | x86_64-*-*) |
||
5472 | LIB_EXE_MACHINE_FLAG=X64 |
||
5473 | glib_pollfd_format='%#I64x' |
||
5474 | ;; |
||
5475 | esac |
||
5476 | |||
5477 | |||
5478 | $as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h |
||
5479 | |||
5480 | ;; |
||
5481 | *) |
||
5482 | glib_native_win32=no |
||
5483 | glib_pid_type=int |
||
5484 | glib_pollfd_format='%d' |
||
5485 | ;; |
||
5486 | esac |
||
5487 | case $host in |
||
5488 | *-*-linux*) |
||
5489 | glib_os_linux=yes |
||
5490 | ;; |
||
5491 | esac |
||
5492 | |||
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5 |
||
5494 | $as_echo "$glib_native_win32" >&6; } |
||
5495 | |||
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android" >&5 |
||
5497 | $as_echo_n "checking for the Android... " >&6; } |
||
5498 | case $host in |
||
5499 | *android*) |
||
5500 | glib_native_android="yes" |
||
5501 | ;; |
||
5502 | *) |
||
5503 | glib_native_android="no" |
||
5504 | ;; |
||
5505 | esac |
||
5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_android" >&5 |
||
5507 | $as_echo "$glib_native_android" >&6; } |
||
5508 | |||
5509 | |||
5510 | |||
5511 | glib_have_carbon=no |
||
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5 |
||
5513 | $as_echo_n "checking for Mac OS X Carbon support... " >&6; } |
||
5514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5515 | /* end confdefs.h. */ |
||
5516 | |||
5517 | #include <Carbon/Carbon.h> |
||
5518 | #include <CoreServices/CoreServices.h> |
||
5519 | |||
5520 | _ACEOF |
||
5521 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
5522 | glib_have_carbon=yes |
||
5523 | fi |
||
5524 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
5525 | |||
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5 |
||
5527 | $as_echo "$glib_have_carbon" >&6; } |
||
5528 | |||
5529 | glib_have_cocoa=no |
||
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Cocoa support" >&5 |
||
5531 | $as_echo_n "checking for Mac OS X Cocoa support... " >&6; } |
||
5532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5533 | /* end confdefs.h. */ |
||
5534 | |||
5535 | #include <Cocoa/Cocoa.h> |
||
5536 | #ifdef GNUSTEP_BASE_VERSION |
||
5537 | #error "Detected GNUstep, not Cocoa" |
||
5538 | #endif |
||
5539 | |||
5540 | _ACEOF |
||
5541 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
5542 | glib_have_cocoa=yes |
||
5543 | fi |
||
5544 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
5545 | |||
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_cocoa" >&5 |
||
5547 | $as_echo "$glib_have_cocoa" >&6; } |
||
5548 | |||
5549 | if test "$glib_native_win32" = "yes"; then |
||
5550 | OS_WIN32_TRUE= |
||
5551 | OS_WIN32_FALSE='#' |
||
5552 | else |
||
5553 | OS_WIN32_TRUE='#' |
||
5554 | OS_WIN32_FALSE= |
||
5555 | fi |
||
5556 | |||
5557 | if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then |
||
5558 | OS_WIN32_X64_TRUE= |
||
5559 | OS_WIN32_X64_FALSE='#' |
||
5560 | else |
||
5561 | OS_WIN32_X64_TRUE='#' |
||
5562 | OS_WIN32_X64_FALSE= |
||
5563 | fi |
||
5564 | |||
5565 | if test "$glib_native_win32" != "yes"; then |
||
5566 | OS_UNIX_TRUE= |
||
5567 | OS_UNIX_FALSE='#' |
||
5568 | else |
||
5569 | OS_UNIX_TRUE='#' |
||
5570 | OS_UNIX_FALSE= |
||
5571 | fi |
||
5572 | |||
5573 | if test "$glib_os_linux" = "yes"; then |
||
5574 | OS_LINUX_TRUE= |
||
5575 | OS_LINUX_FALSE='#' |
||
5576 | else |
||
5577 | OS_LINUX_TRUE='#' |
||
5578 | OS_LINUX_FALSE= |
||
5579 | fi |
||
5580 | |||
5581 | if test "$glib_have_carbon" = "yes"; then |
||
5582 | OS_CARBON_TRUE= |
||
5583 | OS_CARBON_FALSE='#' |
||
5584 | else |
||
5585 | OS_CARBON_TRUE='#' |
||
5586 | OS_CARBON_FALSE= |
||
5587 | fi |
||
5588 | |||
5589 | if test "$glib_have_cocoa" = "yes"; then |
||
5590 | OS_COCOA_TRUE= |
||
5591 | OS_COCOA_FALSE='#' |
||
5592 | else |
||
5593 | OS_COCOA_TRUE='#' |
||
5594 | OS_COCOA_FALSE= |
||
5595 | fi |
||
5596 | |||
5597 | |||
5598 | if test "$glib_native_win32" = "yes"; then : |
||
5599 | |||
5600 | if test -n "$ac_tool_prefix"; then |
||
5601 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
||
5602 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
||
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5604 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5605 | if ${ac_cv_prog_WINDRES+:} false; then : |
||
5606 | $as_echo_n "(cached) " >&6 |
||
5607 | else |
||
5608 | if test -n "$WINDRES"; then |
||
5609 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
||
5610 | else |
||
5611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5612 | for as_dir in $PATH |
||
5613 | do |
||
5614 | IFS=$as_save_IFS |
||
5615 | test -z "$as_dir" && as_dir=. |
||
5616 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5617 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5618 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
||
5619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5620 | break 2 |
||
5621 | fi |
||
5622 | done |
||
5623 | done |
||
5624 | IFS=$as_save_IFS |
||
5625 | |||
5626 | fi |
||
5627 | fi |
||
5628 | WINDRES=$ac_cv_prog_WINDRES |
||
5629 | if test -n "$WINDRES"; then |
||
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
||
5631 | $as_echo "$WINDRES" >&6; } |
||
5632 | else |
||
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5634 | $as_echo "no" >&6; } |
||
5635 | fi |
||
5636 | |||
5637 | |||
5638 | fi |
||
5639 | if test -z "$ac_cv_prog_WINDRES"; then |
||
5640 | ac_ct_WINDRES=$WINDRES |
||
5641 | # Extract the first word of "windres", so it can be a program name with args. |
||
5642 | set dummy windres; ac_word=$2 |
||
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5644 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5645 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
||
5646 | $as_echo_n "(cached) " >&6 |
||
5647 | else |
||
5648 | if test -n "$ac_ct_WINDRES"; then |
||
5649 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
||
5650 | else |
||
5651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5652 | for as_dir in $PATH |
||
5653 | do |
||
5654 | IFS=$as_save_IFS |
||
5655 | test -z "$as_dir" && as_dir=. |
||
5656 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5658 | ac_cv_prog_ac_ct_WINDRES="windres" |
||
5659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5660 | break 2 |
||
5661 | fi |
||
5662 | done |
||
5663 | done |
||
5664 | IFS=$as_save_IFS |
||
5665 | |||
5666 | fi |
||
5667 | fi |
||
5668 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
||
5669 | if test -n "$ac_ct_WINDRES"; then |
||
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
||
5671 | $as_echo "$ac_ct_WINDRES" >&6; } |
||
5672 | else |
||
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5674 | $as_echo "no" >&6; } |
||
5675 | fi |
||
5676 | |||
5677 | if test "x$ac_ct_WINDRES" = x; then |
||
5678 | WINDRES="no" |
||
5679 | else |
||
5680 | case $cross_compiling:$ac_tool_warned in |
||
5681 | yes:) |
||
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5683 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5684 | ac_tool_warned=yes ;; |
||
5685 | esac |
||
5686 | WINDRES=$ac_ct_WINDRES |
||
5687 | fi |
||
5688 | else |
||
5689 | WINDRES="$ac_cv_prog_WINDRES" |
||
5690 | fi |
||
5691 | |||
5692 | if test "$WINDRES" = no; then |
||
5693 | as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5 |
||
5694 | fi |
||
5695 | if test -n "$ac_tool_prefix"; then |
||
5696 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. |
||
5697 | set dummy ${ac_tool_prefix}nm; ac_word=$2 |
||
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5699 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5700 | if ${ac_cv_prog_NM+:} false; then : |
||
5701 | $as_echo_n "(cached) " >&6 |
||
5702 | else |
||
5703 | if test -n "$NM"; then |
||
5704 | ac_cv_prog_NM="$NM" # Let the user override the test. |
||
5705 | else |
||
5706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5707 | for as_dir in $PATH |
||
5708 | do |
||
5709 | IFS=$as_save_IFS |
||
5710 | test -z "$as_dir" && as_dir=. |
||
5711 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5713 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
||
5714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5715 | break 2 |
||
5716 | fi |
||
5717 | done |
||
5718 | done |
||
5719 | IFS=$as_save_IFS |
||
5720 | |||
5721 | fi |
||
5722 | fi |
||
5723 | NM=$ac_cv_prog_NM |
||
5724 | if test -n "$NM"; then |
||
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
||
5726 | $as_echo "$NM" >&6; } |
||
5727 | else |
||
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5729 | $as_echo "no" >&6; } |
||
5730 | fi |
||
5731 | |||
5732 | |||
5733 | fi |
||
5734 | if test -z "$ac_cv_prog_NM"; then |
||
5735 | ac_ct_NM=$NM |
||
5736 | # Extract the first word of "nm", so it can be a program name with args. |
||
5737 | set dummy nm; ac_word=$2 |
||
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5739 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5740 | if ${ac_cv_prog_ac_ct_NM+:} false; then : |
||
5741 | $as_echo_n "(cached) " >&6 |
||
5742 | else |
||
5743 | if test -n "$ac_ct_NM"; then |
||
5744 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. |
||
5745 | else |
||
5746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5747 | for as_dir in $PATH |
||
5748 | do |
||
5749 | IFS=$as_save_IFS |
||
5750 | test -z "$as_dir" && as_dir=. |
||
5751 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5753 | ac_cv_prog_ac_ct_NM="nm" |
||
5754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5755 | break 2 |
||
5756 | fi |
||
5757 | done |
||
5758 | done |
||
5759 | IFS=$as_save_IFS |
||
5760 | |||
5761 | fi |
||
5762 | fi |
||
5763 | ac_ct_NM=$ac_cv_prog_ac_ct_NM |
||
5764 | if test -n "$ac_ct_NM"; then |
||
5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
||
5766 | $as_echo "$ac_ct_NM" >&6; } |
||
5767 | else |
||
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5769 | $as_echo "no" >&6; } |
||
5770 | fi |
||
5771 | |||
5772 | if test "x$ac_ct_NM" = x; then |
||
5773 | NM="no" |
||
5774 | else |
||
5775 | case $cross_compiling:$ac_tool_warned in |
||
5776 | yes:) |
||
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5778 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5779 | ac_tool_warned=yes ;; |
||
5780 | esac |
||
5781 | NM=$ac_ct_NM |
||
5782 | fi |
||
5783 | else |
||
5784 | NM="$ac_cv_prog_NM" |
||
5785 | fi |
||
5786 | |||
5787 | if test "$NM" = no; then |
||
5788 | as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5 |
||
5789 | fi |
||
5790 | if test -n "$ac_tool_prefix"; then |
||
5791 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
5792 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5794 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5795 | if ${ac_cv_prog_RANLIB+:} false; then : |
||
5796 | $as_echo_n "(cached) " >&6 |
||
5797 | else |
||
5798 | if test -n "$RANLIB"; then |
||
5799 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
5800 | else |
||
5801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5802 | for as_dir in $PATH |
||
5803 | do |
||
5804 | IFS=$as_save_IFS |
||
5805 | test -z "$as_dir" && as_dir=. |
||
5806 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5808 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
5809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5810 | break 2 |
||
5811 | fi |
||
5812 | done |
||
5813 | done |
||
5814 | IFS=$as_save_IFS |
||
5815 | |||
5816 | fi |
||
5817 | fi |
||
5818 | RANLIB=$ac_cv_prog_RANLIB |
||
5819 | if test -n "$RANLIB"; then |
||
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
||
5821 | $as_echo "$RANLIB" >&6; } |
||
5822 | else |
||
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5824 | $as_echo "no" >&6; } |
||
5825 | fi |
||
5826 | |||
5827 | |||
5828 | fi |
||
5829 | if test -z "$ac_cv_prog_RANLIB"; then |
||
5830 | ac_ct_RANLIB=$RANLIB |
||
5831 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
5832 | set dummy ranlib; ac_word=$2 |
||
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5834 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5835 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
||
5836 | $as_echo_n "(cached) " >&6 |
||
5837 | else |
||
5838 | if test -n "$ac_ct_RANLIB"; then |
||
5839 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
5840 | else |
||
5841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5842 | for as_dir in $PATH |
||
5843 | do |
||
5844 | IFS=$as_save_IFS |
||
5845 | test -z "$as_dir" && as_dir=. |
||
5846 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5848 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
5849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5850 | break 2 |
||
5851 | fi |
||
5852 | done |
||
5853 | done |
||
5854 | IFS=$as_save_IFS |
||
5855 | |||
5856 | fi |
||
5857 | fi |
||
5858 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
5859 | if test -n "$ac_ct_RANLIB"; then |
||
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
||
5861 | $as_echo "$ac_ct_RANLIB" >&6; } |
||
5862 | else |
||
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5864 | $as_echo "no" >&6; } |
||
5865 | fi |
||
5866 | |||
5867 | if test "x$ac_ct_RANLIB" = x; then |
||
5868 | RANLIB=":" |
||
5869 | else |
||
5870 | case $cross_compiling:$ac_tool_warned in |
||
5871 | yes:) |
||
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5873 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5874 | ac_tool_warned=yes ;; |
||
5875 | esac |
||
5876 | RANLIB=$ac_ct_RANLIB |
||
5877 | fi |
||
5878 | else |
||
5879 | RANLIB="$ac_cv_prog_RANLIB" |
||
5880 | fi |
||
5881 | |||
5882 | if test -n "$ac_tool_prefix"; then |
||
5883 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
||
5884 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
||
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5886 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5887 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
||
5888 | $as_echo_n "(cached) " >&6 |
||
5889 | else |
||
5890 | if test -n "$DLLTOOL"; then |
||
5891 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
||
5892 | else |
||
5893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5894 | for as_dir in $PATH |
||
5895 | do |
||
5896 | IFS=$as_save_IFS |
||
5897 | test -z "$as_dir" && as_dir=. |
||
5898 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5900 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
||
5901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5902 | break 2 |
||
5903 | fi |
||
5904 | done |
||
5905 | done |
||
5906 | IFS=$as_save_IFS |
||
5907 | |||
5908 | fi |
||
5909 | fi |
||
5910 | DLLTOOL=$ac_cv_prog_DLLTOOL |
||
5911 | if test -n "$DLLTOOL"; then |
||
5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
||
5913 | $as_echo "$DLLTOOL" >&6; } |
||
5914 | else |
||
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5916 | $as_echo "no" >&6; } |
||
5917 | fi |
||
5918 | |||
5919 | |||
5920 | fi |
||
5921 | if test -z "$ac_cv_prog_DLLTOOL"; then |
||
5922 | ac_ct_DLLTOOL=$DLLTOOL |
||
5923 | # Extract the first word of "dlltool", so it can be a program name with args. |
||
5924 | set dummy dlltool; ac_word=$2 |
||
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5926 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5927 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
||
5928 | $as_echo_n "(cached) " >&6 |
||
5929 | else |
||
5930 | if test -n "$ac_ct_DLLTOOL"; then |
||
5931 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
||
5932 | else |
||
5933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5934 | for as_dir in $PATH |
||
5935 | do |
||
5936 | IFS=$as_save_IFS |
||
5937 | test -z "$as_dir" && as_dir=. |
||
5938 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5940 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
||
5941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5942 | break 2 |
||
5943 | fi |
||
5944 | done |
||
5945 | done |
||
5946 | IFS=$as_save_IFS |
||
5947 | |||
5948 | fi |
||
5949 | fi |
||
5950 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
||
5951 | if test -n "$ac_ct_DLLTOOL"; then |
||
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
||
5953 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
||
5954 | else |
||
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
5956 | $as_echo "no" >&6; } |
||
5957 | fi |
||
5958 | |||
5959 | if test "x$ac_ct_DLLTOOL" = x; then |
||
5960 | DLLTOOL=":" |
||
5961 | else |
||
5962 | case $cross_compiling:$ac_tool_warned in |
||
5963 | yes:) |
||
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
5965 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
5966 | ac_tool_warned=yes ;; |
||
5967 | esac |
||
5968 | DLLTOOL=$ac_ct_DLLTOOL |
||
5969 | fi |
||
5970 | else |
||
5971 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
||
5972 | fi |
||
5973 | |||
5974 | # Extract the first word of "lib.exe", so it can be a program name with args. |
||
5975 | set dummy lib.exe; ac_word=$2 |
||
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
5977 | $as_echo_n "checking for $ac_word... " >&6; } |
||
5978 | if ${ac_cv_prog_ms_librarian+:} false; then : |
||
5979 | $as_echo_n "(cached) " >&6 |
||
5980 | else |
||
5981 | if test -n "$ms_librarian"; then |
||
5982 | ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test. |
||
5983 | else |
||
5984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
5985 | for as_dir in $PATH |
||
5986 | do |
||
5987 | IFS=$as_save_IFS |
||
5988 | test -z "$as_dir" && as_dir=. |
||
5989 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
5990 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
5991 | ac_cv_prog_ms_librarian="yes" |
||
5992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
5993 | break 2 |
||
5994 | fi |
||
5995 | done |
||
5996 | done |
||
5997 | IFS=$as_save_IFS |
||
5998 | |||
5999 | test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no" |
||
6000 | fi |
||
6001 | fi |
||
6002 | ms_librarian=$ac_cv_prog_ms_librarian |
||
6003 | if test -n "$ms_librarian"; then |
||
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5 |
||
6005 | $as_echo "$ms_librarian" >&6; } |
||
6006 | else |
||
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6008 | $as_echo "no" >&6; } |
||
6009 | fi |
||
6010 | |||
6011 | |||
6012 | |||
6013 | fi |
||
6014 | if test x$ms_librarian = xyes; then |
||
6015 | MS_LIB_AVAILABLE_TRUE= |
||
6016 | MS_LIB_AVAILABLE_FALSE='#' |
||
6017 | else |
||
6018 | MS_LIB_AVAILABLE_TRUE='#' |
||
6019 | MS_LIB_AVAILABLE_FALSE= |
||
6020 | fi |
||
6021 | |||
6022 | |||
6023 | if test "x$glib_have_carbon" = "xyes"; then : |
||
6024 | |||
6025 | |||
6026 | $as_echo "#define HAVE_CARBON 1" >>confdefs.h |
||
6027 | |||
6028 | CARBON_LIBS="-Wl,-framework,Carbon" |
||
6029 | LDFLAGS="$LDFLAGS $CARBON_LIBS" |
||
6030 | |||
6031 | else |
||
6032 | CARBON_LIBS="" |
||
6033 | fi |
||
6034 | |||
6035 | |||
6036 | |||
6037 | if test "x$glib_have_cocoa" = "xyes"; then : |
||
6038 | |||
6039 | |||
6040 | $as_echo "#define HAVE_COCOA 1" >>confdefs.h |
||
6041 | |||
6042 | COCOA_LIBS="-Wl,-framework,Foundation" |
||
6043 | LDFLAGS="$LDFLAGS $COCOA_LIBS" |
||
6044 | |||
6045 | osx_version=`sw_vers -productVersion` |
||
6046 | osx_min_version="10.9.0" |
||
6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OSX version >= $osx_min_version" >&5 |
||
6048 | $as_echo_n "checking OSX version >= $osx_min_version... " >&6; } |
||
6049 | as_arg_v1=$osx_version |
||
6050 | as_arg_v2=$osx_min_version |
||
6051 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
||
6052 | case $? in #( |
||
6053 | 1) : |
||
6054 | |||
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6056 | $as_echo "no" >&6; } |
||
6057 | as_fn_error $? "OSX version is too old!" "$LINENO" 5 |
||
6058 | ;; #( |
||
6059 | 0) : |
||
6060 | ;; #( |
||
6061 | 2) : |
||
6062 | ;; #( |
||
6063 | *) : |
||
6064 | ;; |
||
6065 | esac |
||
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
6067 | $as_echo "yes" >&6; } |
||
6068 | |||
6069 | else |
||
6070 | COCOA_LIBS="" |
||
6071 | fi |
||
6072 | |||
6073 | |||
6074 | |||
6075 | # Check whether --enable-debug was given. |
||
6076 | if test "${enable_debug+set}" = set; then : |
||
6077 | enableval=$enable_debug; |
||
6078 | else |
||
6079 | enable_debug=minimum |
||
6080 | fi |
||
6081 | |||
6082 | |||
6083 | # Check whether --enable-gc_friendly was given. |
||
6084 | if test "${enable_gc_friendly+set}" = set; then : |
||
6085 | enableval=$enable_gc_friendly; |
||
6086 | else |
||
6087 | enable_gc_friendly=no |
||
6088 | fi |
||
6089 | |||
6090 | # Check whether --enable-mem_pools was given. |
||
6091 | if test "${enable_mem_pools+set}" = set; then : |
||
6092 | enableval=$enable_mem_pools; |
||
6093 | else |
||
6094 | disable_mem_pools=no |
||
6095 | fi |
||
6096 | |||
6097 | # Check whether --enable-rebuilds was given. |
||
6098 | if test "${enable_rebuilds+set}" = set; then : |
||
6099 | enableval=$enable_rebuilds; |
||
6100 | else |
||
6101 | enable_rebuilds=yes |
||
6102 | fi |
||
6103 | |||
6104 | |||
6105 | |||
6106 | # Check whether --enable-installed-tests was given. |
||
6107 | if test "${enable_installed_tests+set}" = set; then : |
||
6108 | enableval=$enable_installed_tests; case ${enableval} in |
||
6109 | yes) ENABLE_INSTALLED_TESTS="1" ;; |
||
6110 | no) ENABLE_INSTALLED_TESTS="" ;; |
||
6111 | *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;; |
||
6112 | esac |
||
6113 | fi |
||
6114 | |||
6115 | if test "$ENABLE_INSTALLED_TESTS" = "1"; then |
||
6116 | ENABLE_INSTALLED_TESTS_TRUE= |
||
6117 | ENABLE_INSTALLED_TESTS_FALSE='#' |
||
6118 | else |
||
6119 | ENABLE_INSTALLED_TESTS_TRUE='#' |
||
6120 | ENABLE_INSTALLED_TESTS_FALSE= |
||
6121 | fi |
||
6122 | |||
6123 | # Check whether --enable-always-build-tests was given. |
||
6124 | if test "${enable_always_build_tests+set}" = set; then : |
||
6125 | enableval=$enable_always_build_tests; case ${enableval} in |
||
6126 | yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;; |
||
6127 | no) ENABLE_ALWAYS_BUILD_TESTS="" ;; |
||
6128 | *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;; |
||
6129 | esac |
||
6130 | fi |
||
6131 | |||
6132 | if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then |
||
6133 | ENABLE_ALWAYS_BUILD_TESTS_TRUE= |
||
6134 | ENABLE_ALWAYS_BUILD_TESTS_FALSE='#' |
||
6135 | else |
||
6136 | ENABLE_ALWAYS_BUILD_TESTS_TRUE='#' |
||
6137 | ENABLE_ALWAYS_BUILD_TESTS_FALSE= |
||
6138 | fi |
||
6139 | |||
6140 | if test "$ENABLE_INSTALLED_TESTS" = "1"; then |
||
6141 | installed_test_metadir=${datadir}/installed-tests/glib |
||
6142 | |||
6143 | installed_testdir=${libexecdir}/installed-tests/glib |
||
6144 | |||
6145 | fi |
||
6146 | |||
6147 | |||
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5 |
||
6149 | $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; } |
||
6150 | if test "x$enable_gc_friendly" = "xyes"; then : |
||
6151 | |||
6152 | |||
6153 | $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h |
||
6154 | |||
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
6156 | $as_echo "yes" >&6; } |
||
6157 | |||
6158 | else |
||
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6160 | $as_echo "no" >&6; } |
||
6161 | fi |
||
6162 | |||
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5 |
||
6164 | $as_echo_n "checking whether to disable memory pools... " >&6; } |
||
6165 | if test "x$disable_mem_pools" = "xno"; then : |
||
6166 | |||
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6168 | $as_echo "no" >&6; } |
||
6169 | |||
6170 | else |
||
6171 | |||
6172 | |||
6173 | $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h |
||
6174 | |||
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
6176 | $as_echo "yes" >&6; } |
||
6177 | |||
6178 | fi |
||
6179 | |||
6180 | |||
6181 | # Check whether --with-runtime-libdir was given. |
||
6182 | if test "${with_runtime_libdir+set}" = set; then : |
||
6183 | withval=$with_runtime_libdir; |
||
6184 | else |
||
6185 | with_runtime_libdir="" |
||
6186 | fi |
||
6187 | |||
6188 | GLIB_RUNTIME_LIBDIR="$with_runtime_libdir" |
||
6189 | |||
6190 | if test "x$with_runtime_libdir" != "x"; then |
||
6191 | HAVE_GLIB_RUNTIME_LIBDIR_TRUE= |
||
6192 | HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#' |
||
6193 | else |
||
6194 | HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#' |
||
6195 | HAVE_GLIB_RUNTIME_LIBDIR_FALSE= |
||
6196 | fi |
||
6197 | |||
6198 | |||
6199 | if test -n "$ac_tool_prefix"; then |
||
6200 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
||
6201 | do |
||
6202 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
6203 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
6204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6205 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6206 | if ${ac_cv_prog_CXX+:} false; then : |
||
6207 | $as_echo_n "(cached) " >&6 |
||
6208 | else |
||
6209 | if test -n "$CXX"; then |
||
6210 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
||
6211 | else |
||
6212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6213 | for as_dir in $PATH |
||
6214 | do |
||
6215 | IFS=$as_save_IFS |
||
6216 | test -z "$as_dir" && as_dir=. |
||
6217 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6219 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
||
6220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6221 | break 2 |
||
6222 | fi |
||
6223 | done |
||
6224 | done |
||
6225 | IFS=$as_save_IFS |
||
6226 | |||
6227 | fi |
||
6228 | fi |
||
6229 | CXX=$ac_cv_prog_CXX |
||
6230 | if test -n "$CXX"; then |
||
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
||
6232 | $as_echo "$CXX" >&6; } |
||
6233 | else |
||
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6235 | $as_echo "no" >&6; } |
||
6236 | fi |
||
6237 | |||
6238 | |||
6239 | test -n "$CXX" && break |
||
6240 | done |
||
6241 | fi |
||
6242 | if test -z "$CXX"; then |
||
6243 | ac_ct_CXX=$CXX |
||
6244 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
||
6245 | do |
||
6246 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
6247 | set dummy $ac_prog; ac_word=$2 |
||
6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6249 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6250 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
||
6251 | $as_echo_n "(cached) " >&6 |
||
6252 | else |
||
6253 | if test -n "$ac_ct_CXX"; then |
||
6254 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
||
6255 | else |
||
6256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6257 | for as_dir in $PATH |
||
6258 | do |
||
6259 | IFS=$as_save_IFS |
||
6260 | test -z "$as_dir" && as_dir=. |
||
6261 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6263 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
||
6264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6265 | break 2 |
||
6266 | fi |
||
6267 | done |
||
6268 | done |
||
6269 | IFS=$as_save_IFS |
||
6270 | |||
6271 | fi |
||
6272 | fi |
||
6273 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
||
6274 | if test -n "$ac_ct_CXX"; then |
||
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
||
6276 | $as_echo "$ac_ct_CXX" >&6; } |
||
6277 | else |
||
6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6279 | $as_echo "no" >&6; } |
||
6280 | fi |
||
6281 | |||
6282 | |||
6283 | test -n "$ac_ct_CXX" && break |
||
6284 | done |
||
6285 | |||
6286 | if test "x$ac_ct_CXX" = x; then |
||
6287 | CXX="gcc" |
||
6288 | else |
||
6289 | case $cross_compiling:$ac_tool_warned in |
||
6290 | yes:) |
||
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6293 | ac_tool_warned=yes ;; |
||
6294 | esac |
||
6295 | CXX=$ac_ct_CXX |
||
6296 | fi |
||
6297 | fi |
||
6298 | |||
6299 | |||
6300 | ac_ext=cpp |
||
6301 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
6302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
6305 | |||
6306 | ac_ext=cpp |
||
6307 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
6308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
6311 | if test -z "$CXX"; then |
||
6312 | if test -n "$CCC"; then |
||
6313 | CXX=$CCC |
||
6314 | else |
||
6315 | if test -n "$ac_tool_prefix"; then |
||
6316 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
6317 | do |
||
6318 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
6319 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6321 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6322 | if ${ac_cv_prog_CXX+:} false; then : |
||
6323 | $as_echo_n "(cached) " >&6 |
||
6324 | else |
||
6325 | if test -n "$CXX"; then |
||
6326 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
||
6327 | else |
||
6328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6329 | for as_dir in $PATH |
||
6330 | do |
||
6331 | IFS=$as_save_IFS |
||
6332 | test -z "$as_dir" && as_dir=. |
||
6333 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6335 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
||
6336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6337 | break 2 |
||
6338 | fi |
||
6339 | done |
||
6340 | done |
||
6341 | IFS=$as_save_IFS |
||
6342 | |||
6343 | fi |
||
6344 | fi |
||
6345 | CXX=$ac_cv_prog_CXX |
||
6346 | if test -n "$CXX"; then |
||
6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
||
6348 | $as_echo "$CXX" >&6; } |
||
6349 | else |
||
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6351 | $as_echo "no" >&6; } |
||
6352 | fi |
||
6353 | |||
6354 | |||
6355 | test -n "$CXX" && break |
||
6356 | done |
||
6357 | fi |
||
6358 | if test -z "$CXX"; then |
||
6359 | ac_ct_CXX=$CXX |
||
6360 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
6361 | do |
||
6362 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
6363 | set dummy $ac_prog; ac_word=$2 |
||
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6365 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6366 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
||
6367 | $as_echo_n "(cached) " >&6 |
||
6368 | else |
||
6369 | if test -n "$ac_ct_CXX"; then |
||
6370 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
||
6371 | else |
||
6372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6373 | for as_dir in $PATH |
||
6374 | do |
||
6375 | IFS=$as_save_IFS |
||
6376 | test -z "$as_dir" && as_dir=. |
||
6377 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6379 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
||
6380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6381 | break 2 |
||
6382 | fi |
||
6383 | done |
||
6384 | done |
||
6385 | IFS=$as_save_IFS |
||
6386 | |||
6387 | fi |
||
6388 | fi |
||
6389 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
||
6390 | if test -n "$ac_ct_CXX"; then |
||
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
||
6392 | $as_echo "$ac_ct_CXX" >&6; } |
||
6393 | else |
||
6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6395 | $as_echo "no" >&6; } |
||
6396 | fi |
||
6397 | |||
6398 | |||
6399 | test -n "$ac_ct_CXX" && break |
||
6400 | done |
||
6401 | |||
6402 | if test "x$ac_ct_CXX" = x; then |
||
6403 | CXX="g++" |
||
6404 | else |
||
6405 | case $cross_compiling:$ac_tool_warned in |
||
6406 | yes:) |
||
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
6408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
6409 | ac_tool_warned=yes ;; |
||
6410 | esac |
||
6411 | CXX=$ac_ct_CXX |
||
6412 | fi |
||
6413 | fi |
||
6414 | |||
6415 | fi |
||
6416 | fi |
||
6417 | # Provide some information about the compiler. |
||
6418 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
||
6419 | set X $ac_compile |
||
6420 | ac_compiler=$2 |
||
6421 | for ac_option in --version -v -V -qversion; do |
||
6422 | { { ac_try="$ac_compiler $ac_option >&5" |
||
6423 | case "(($ac_try" in |
||
6424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
6425 | *) ac_try_echo=$ac_try;; |
||
6426 | esac |
||
6427 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
6428 | $as_echo "$ac_try_echo"; } >&5 |
||
6429 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
6430 | ac_status=$? |
||
6431 | if test -s conftest.err; then |
||
6432 | sed '10a\ |
||
6433 | ... rest of stderr output deleted ... |
||
6434 | 10q' conftest.err >conftest.er1 |
||
6435 | cat conftest.er1 >&5 |
||
6436 | fi |
||
6437 | rm -f conftest.er1 conftest.err |
||
6438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
6439 | test $ac_status = 0; } |
||
6440 | done |
||
6441 | |||
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
||
6443 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
||
6444 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
||
6445 | $as_echo_n "(cached) " >&6 |
||
6446 | else |
||
6447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6448 | /* end confdefs.h. */ |
||
6449 | |||
6450 | int |
||
6451 | main () |
||
6452 | { |
||
6453 | #ifndef __GNUC__ |
||
6454 | choke me |
||
6455 | #endif |
||
6456 | |||
6457 | ; |
||
6458 | return 0; |
||
6459 | } |
||
6460 | _ACEOF |
||
6461 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
6462 | ac_compiler_gnu=yes |
||
6463 | else |
||
6464 | ac_compiler_gnu=no |
||
6465 | fi |
||
6466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6467 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
||
6468 | |||
6469 | fi |
||
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
||
6471 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
||
6472 | if test $ac_compiler_gnu = yes; then |
||
6473 | GXX=yes |
||
6474 | else |
||
6475 | GXX= |
||
6476 | fi |
||
6477 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
||
6478 | ac_save_CXXFLAGS=$CXXFLAGS |
||
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
||
6480 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
||
6481 | if ${ac_cv_prog_cxx_g+:} false; then : |
||
6482 | $as_echo_n "(cached) " >&6 |
||
6483 | else |
||
6484 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
||
6485 | ac_cxx_werror_flag=yes |
||
6486 | ac_cv_prog_cxx_g=no |
||
6487 | CXXFLAGS="-g" |
||
6488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6489 | /* end confdefs.h. */ |
||
6490 | |||
6491 | int |
||
6492 | main () |
||
6493 | { |
||
6494 | |||
6495 | ; |
||
6496 | return 0; |
||
6497 | } |
||
6498 | _ACEOF |
||
6499 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
6500 | ac_cv_prog_cxx_g=yes |
||
6501 | else |
||
6502 | CXXFLAGS="" |
||
6503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6504 | /* end confdefs.h. */ |
||
6505 | |||
6506 | int |
||
6507 | main () |
||
6508 | { |
||
6509 | |||
6510 | ; |
||
6511 | return 0; |
||
6512 | } |
||
6513 | _ACEOF |
||
6514 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
6515 | |||
6516 | else |
||
6517 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
6518 | CXXFLAGS="-g" |
||
6519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6520 | /* end confdefs.h. */ |
||
6521 | |||
6522 | int |
||
6523 | main () |
||
6524 | { |
||
6525 | |||
6526 | ; |
||
6527 | return 0; |
||
6528 | } |
||
6529 | _ACEOF |
||
6530 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
6531 | ac_cv_prog_cxx_g=yes |
||
6532 | fi |
||
6533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6534 | fi |
||
6535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6536 | fi |
||
6537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6538 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
6539 | fi |
||
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
||
6541 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
||
6542 | if test "$ac_test_CXXFLAGS" = set; then |
||
6543 | CXXFLAGS=$ac_save_CXXFLAGS |
||
6544 | elif test $ac_cv_prog_cxx_g = yes; then |
||
6545 | if test "$GXX" = yes; then |
||
6546 | CXXFLAGS="-g -O2" |
||
6547 | else |
||
6548 | CXXFLAGS="-g" |
||
6549 | fi |
||
6550 | else |
||
6551 | if test "$GXX" = yes; then |
||
6552 | CXXFLAGS="-O2" |
||
6553 | else |
||
6554 | CXXFLAGS= |
||
6555 | fi |
||
6556 | fi |
||
6557 | ac_ext=cpp |
||
6558 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
6559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
6562 | |||
6563 | depcc="$CXX" am_compiler_list= |
||
6564 | |||
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
||
6566 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
||
6567 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
||
6568 | $as_echo_n "(cached) " >&6 |
||
6569 | else |
||
6570 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||
6571 | # We make a subdir and do the tests there. Otherwise we can end up |
||
6572 | # making bogus files that we don't know about and never remove. For |
||
6573 | # instance it was reported that on HP-UX the gcc test will end up |
||
6574 | # making a dummy file named 'D' -- because '-MD' means "put the output |
||
6575 | # in D". |
||
6576 | rm -rf conftest.dir |
||
6577 | mkdir conftest.dir |
||
6578 | # Copy depcomp to subdir because otherwise we won't find it if we're |
||
6579 | # using a relative directory. |
||
6580 | cp "$am_depcomp" conftest.dir |
||
6581 | cd conftest.dir |
||
6582 | # We will build objects and dependencies in a subdirectory because |
||
6583 | # it helps to detect inapplicable dependency modes. For instance |
||
6584 | # both Tru64's cc and ICC support -MD to output dependencies as a |
||
6585 | # side effect of compilation, but ICC will put the dependencies in |
||
6586 | # the current directory while Tru64 will put them in the object |
||
6587 | # directory. |
||
6588 | mkdir sub |
||
6589 | |||
6590 | am_cv_CXX_dependencies_compiler_type=none |
||
6591 | if test "$am_compiler_list" = ""; then |
||
6592 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
||
6593 | fi |
||
6594 | am__universal=false |
||
6595 | case " $depcc " in #( |
||
6596 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
||
6597 | esac |
||
6598 | |||
6599 | for depmode in $am_compiler_list; do |
||
6600 | # Setup a source with many dependencies, because some compilers |
||
6601 | # like to wrap large dependency lists on column 80 (with \), and |
||
6602 | # we should not choose a depcomp mode which is confused by this. |
||
6603 | # |
||
6604 | # We need to recreate these files for each test, as the compiler may |
||
6605 | # overwrite some of them when testing with obscure command lines. |
||
6606 | # This happens at least with the AIX C compiler. |
||
6607 | : > sub/conftest.c |
||
6608 | for i in 1 2 3 4 5 6; do |
||
6609 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||
6610 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
||
6611 | # Solaris 10 /bin/sh. |
||
6612 | echo '/* dummy */' > sub/conftst$i.h |
||
6613 | done |
||
6614 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||
6615 | |||
6616 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
||
6617 | # mode. It turns out that the SunPro C++ compiler does not properly |
||
6618 | # handle '-M -o', and we need to detect this. Also, some Intel |
||
6619 | # versions had trouble with output in subdirs. |
||
6620 | am__obj=sub/conftest.${OBJEXT-o} |
||
6621 | am__minus_obj="-o $am__obj" |
||
6622 | case $depmode in |
||
6623 | gcc) |
||
6624 | # This depmode causes a compiler race in universal mode. |
||
6625 | test "$am__universal" = false || continue |
||
6626 | ;; |
||
6627 | nosideeffect) |
||
6628 | # After this tag, mechanisms are not by side-effect, so they'll |
||
6629 | # only be used when explicitly requested. |
||
6630 | if test "x$enable_dependency_tracking" = xyes; then |
||
6631 | continue |
||
6632 | else |
||
6633 | break |
||
6634 | fi |
||
6635 | ;; |
||
6636 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
||
6637 | # This compiler won't grok '-c -o', but also, the minuso test has |
||
6638 | # not run yet. These depmodes are late enough in the game, and |
||
6639 | # so weak that their functioning should not be impacted. |
||
6640 | am__obj=conftest.${OBJEXT-o} |
||
6641 | am__minus_obj= |
||
6642 | ;; |
||
6643 | none) break ;; |
||
6644 | esac |
||
6645 | if depmode=$depmode \ |
||
6646 | source=sub/conftest.c object=$am__obj \ |
||
6647 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||
6648 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
||
6649 | >/dev/null 2>conftest.err && |
||
6650 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
||
6651 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||
6652 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
||
6653 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||
6654 | # icc doesn't choke on unknown options, it will just issue warnings |
||
6655 | # or remarks (even with -Werror). So we grep stderr for any message |
||
6656 | # that says an option was ignored or not supported. |
||
6657 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
||
6658 | # icc: Command line warning: ignoring option '-M'; no argument required |
||
6659 | # The diagnosis changed in icc 8.0: |
||
6660 | # icc: Command line remark: option '-MP' not supported |
||
6661 | if (grep 'ignoring option' conftest.err || |
||
6662 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||
6663 | am_cv_CXX_dependencies_compiler_type=$depmode |
||
6664 | break |
||
6665 | fi |
||
6666 | fi |
||
6667 | done |
||
6668 | |||
6669 | cd .. |
||
6670 | rm -rf conftest.dir |
||
6671 | else |
||
6672 | am_cv_CXX_dependencies_compiler_type=none |
||
6673 | fi |
||
6674 | |||
6675 | fi |
||
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
||
6677 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
||
6678 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
||
6679 | |||
6680 | if |
||
6681 | test "x$enable_dependency_tracking" != xno \ |
||
6682 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
||
6683 | am__fastdepCXX_TRUE= |
||
6684 | am__fastdepCXX_FALSE='#' |
||
6685 | else |
||
6686 | am__fastdepCXX_TRUE='#' |
||
6687 | am__fastdepCXX_FALSE= |
||
6688 | fi |
||
6689 | |||
6690 | |||
6691 | |||
6692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6693 | /* end confdefs.h. */ |
||
6694 | |||
6695 | int |
||
6696 | main () |
||
6697 | { |
||
6698 | class a { int b; } c; |
||
6699 | ; |
||
6700 | return 0; |
||
6701 | } |
||
6702 | _ACEOF |
||
6703 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
6704 | |||
6705 | else |
||
6706 | CXX= |
||
6707 | fi |
||
6708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6709 | if test "$CXX" != ""; then |
||
6710 | HAVE_CXX_TRUE= |
||
6711 | HAVE_CXX_FALSE='#' |
||
6712 | else |
||
6713 | HAVE_CXX_TRUE='#' |
||
6714 | HAVE_CXX_FALSE= |
||
6715 | fi |
||
6716 | |||
6717 | ac_ext=c |
||
6718 | ac_cpp='$CPP $CPPFLAGS' |
||
6719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
6720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
6721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
6722 | |||
6723 | |||
6724 | |||
6725 | |||
6726 | |||
6727 | # Check whether --enable-largefile was given. |
||
6728 | if test "${enable_largefile+set}" = set; then : |
||
6729 | enableval=$enable_largefile; |
||
6730 | fi |
||
6731 | |||
6732 | if test "$enable_largefile" != no; then |
||
6733 | |||
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
||
6735 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
||
6736 | if ${ac_cv_sys_largefile_CC+:} false; then : |
||
6737 | $as_echo_n "(cached) " >&6 |
||
6738 | else |
||
6739 | ac_cv_sys_largefile_CC=no |
||
6740 | if test "$GCC" != yes; then |
||
6741 | ac_save_CC=$CC |
||
6742 | while :; do |
||
6743 | # IRIX 6.2 and later do not support large files by default, |
||
6744 | # so use the C compiler's -n32 option if that helps. |
||
6745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6746 | /* end confdefs.h. */ |
||
6747 | #include <sys/types.h> |
||
6748 | /* Check that off_t can represent 2**63 - 1 correctly. |
||
6749 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
||
6750 | since some C++ compilers masquerading as C compilers |
||
6751 | incorrectly reject 9223372036854775807. */ |
||
6752 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
||
6753 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
||
6754 | && LARGE_OFF_T % 2147483647 == 1) |
||
6755 | ? 1 : -1]; |
||
6756 | int |
||
6757 | main () |
||
6758 | { |
||
6759 | |||
6760 | ; |
||
6761 | return 0; |
||
6762 | } |
||
6763 | _ACEOF |
||
6764 | if ac_fn_c_try_compile "$LINENO"; then : |
||
6765 | break |
||
6766 | fi |
||
6767 | rm -f core conftest.err conftest.$ac_objext |
||
6768 | CC="$CC -n32" |
||
6769 | if ac_fn_c_try_compile "$LINENO"; then : |
||
6770 | ac_cv_sys_largefile_CC=' -n32'; break |
||
6771 | fi |
||
6772 | rm -f core conftest.err conftest.$ac_objext |
||
6773 | break |
||
6774 | done |
||
6775 | CC=$ac_save_CC |
||
6776 | rm -f conftest.$ac_ext |
||
6777 | fi |
||
6778 | fi |
||
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
||
6780 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
||
6781 | if test "$ac_cv_sys_largefile_CC" != no; then |
||
6782 | CC=$CC$ac_cv_sys_largefile_CC |
||
6783 | fi |
||
6784 | |||
6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
||
6786 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
||
6787 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
||
6788 | $as_echo_n "(cached) " >&6 |
||
6789 | else |
||
6790 | while :; do |
||
6791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6792 | /* end confdefs.h. */ |
||
6793 | #include <sys/types.h> |
||
6794 | /* Check that off_t can represent 2**63 - 1 correctly. |
||
6795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
||
6796 | since some C++ compilers masquerading as C compilers |
||
6797 | incorrectly reject 9223372036854775807. */ |
||
6798 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
||
6799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
||
6800 | && LARGE_OFF_T % 2147483647 == 1) |
||
6801 | ? 1 : -1]; |
||
6802 | int |
||
6803 | main () |
||
6804 | { |
||
6805 | |||
6806 | ; |
||
6807 | return 0; |
||
6808 | } |
||
6809 | _ACEOF |
||
6810 | if ac_fn_c_try_compile "$LINENO"; then : |
||
6811 | ac_cv_sys_file_offset_bits=no; break |
||
6812 | fi |
||
6813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6815 | /* end confdefs.h. */ |
||
6816 | #define _FILE_OFFSET_BITS 64 |
||
6817 | #include <sys/types.h> |
||
6818 | /* Check that off_t can represent 2**63 - 1 correctly. |
||
6819 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
||
6820 | since some C++ compilers masquerading as C compilers |
||
6821 | incorrectly reject 9223372036854775807. */ |
||
6822 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
||
6823 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
||
6824 | && LARGE_OFF_T % 2147483647 == 1) |
||
6825 | ? 1 : -1]; |
||
6826 | int |
||
6827 | main () |
||
6828 | { |
||
6829 | |||
6830 | ; |
||
6831 | return 0; |
||
6832 | } |
||
6833 | _ACEOF |
||
6834 | if ac_fn_c_try_compile "$LINENO"; then : |
||
6835 | ac_cv_sys_file_offset_bits=64; break |
||
6836 | fi |
||
6837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6838 | ac_cv_sys_file_offset_bits=unknown |
||
6839 | break |
||
6840 | done |
||
6841 | fi |
||
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
||
6843 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
||
6844 | case $ac_cv_sys_file_offset_bits in #( |
||
6845 | no | unknown) ;; |
||
6846 | *) |
||
6847 | cat >>confdefs.h <<_ACEOF |
||
6848 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
||
6849 | _ACEOF |
||
6850 | ;; |
||
6851 | esac |
||
6852 | rm -rf conftest* |
||
6853 | if test $ac_cv_sys_file_offset_bits = unknown; then |
||
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
||
6855 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
||
6856 | if ${ac_cv_sys_large_files+:} false; then : |
||
6857 | $as_echo_n "(cached) " >&6 |
||
6858 | else |
||
6859 | while :; do |
||
6860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6861 | /* end confdefs.h. */ |
||
6862 | #include <sys/types.h> |
||
6863 | /* Check that off_t can represent 2**63 - 1 correctly. |
||
6864 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
||
6865 | since some C++ compilers masquerading as C compilers |
||
6866 | incorrectly reject 9223372036854775807. */ |
||
6867 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
||
6868 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
||
6869 | && LARGE_OFF_T % 2147483647 == 1) |
||
6870 | ? 1 : -1]; |
||
6871 | int |
||
6872 | main () |
||
6873 | { |
||
6874 | |||
6875 | ; |
||
6876 | return 0; |
||
6877 | } |
||
6878 | _ACEOF |
||
6879 | if ac_fn_c_try_compile "$LINENO"; then : |
||
6880 | ac_cv_sys_large_files=no; break |
||
6881 | fi |
||
6882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6884 | /* end confdefs.h. */ |
||
6885 | #define _LARGE_FILES 1 |
||
6886 | #include <sys/types.h> |
||
6887 | /* Check that off_t can represent 2**63 - 1 correctly. |
||
6888 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
||
6889 | since some C++ compilers masquerading as C compilers |
||
6890 | incorrectly reject 9223372036854775807. */ |
||
6891 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
||
6892 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
||
6893 | && LARGE_OFF_T % 2147483647 == 1) |
||
6894 | ? 1 : -1]; |
||
6895 | int |
||
6896 | main () |
||
6897 | { |
||
6898 | |||
6899 | ; |
||
6900 | return 0; |
||
6901 | } |
||
6902 | _ACEOF |
||
6903 | if ac_fn_c_try_compile "$LINENO"; then : |
||
6904 | ac_cv_sys_large_files=1; break |
||
6905 | fi |
||
6906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6907 | ac_cv_sys_large_files=unknown |
||
6908 | break |
||
6909 | done |
||
6910 | fi |
||
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
||
6912 | $as_echo "$ac_cv_sys_large_files" >&6; } |
||
6913 | case $ac_cv_sys_large_files in #( |
||
6914 | no | unknown) ;; |
||
6915 | *) |
||
6916 | cat >>confdefs.h <<_ACEOF |
||
6917 | #define _LARGE_FILES $ac_cv_sys_large_files |
||
6918 | _ACEOF |
||
6919 | ;; |
||
6920 | esac |
||
6921 | rm -rf conftest* |
||
6922 | fi |
||
6923 | |||
6924 | |||
6925 | fi |
||
6926 | |||
6927 | |||
6928 | |||
6929 | |||
6930 | |||
6931 | |||
6932 | |||
6933 | |||
6934 | |||
6935 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
||
6936 | if test -n "$ac_tool_prefix"; then |
||
6937 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
||
6938 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
||
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6940 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6941 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
||
6942 | $as_echo_n "(cached) " >&6 |
||
6943 | else |
||
6944 | case $PKG_CONFIG in |
||
6945 | [\\/]* | ?:[\\/]*) |
||
6946 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
||
6947 | ;; |
||
6948 | *) |
||
6949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6950 | for as_dir in $PATH |
||
6951 | do |
||
6952 | IFS=$as_save_IFS |
||
6953 | test -z "$as_dir" && as_dir=. |
||
6954 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6956 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
||
6957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
6958 | break 2 |
||
6959 | fi |
||
6960 | done |
||
6961 | done |
||
6962 | IFS=$as_save_IFS |
||
6963 | |||
6964 | ;; |
||
6965 | esac |
||
6966 | fi |
||
6967 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
||
6968 | if test -n "$PKG_CONFIG"; then |
||
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
||
6970 | $as_echo "$PKG_CONFIG" >&6; } |
||
6971 | else |
||
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
6973 | $as_echo "no" >&6; } |
||
6974 | fi |
||
6975 | |||
6976 | |||
6977 | fi |
||
6978 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
||
6979 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
||
6980 | # Extract the first word of "pkg-config", so it can be a program name with args. |
||
6981 | set dummy pkg-config; ac_word=$2 |
||
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
6983 | $as_echo_n "checking for $ac_word... " >&6; } |
||
6984 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
||
6985 | $as_echo_n "(cached) " >&6 |
||
6986 | else |
||
6987 | case $ac_pt_PKG_CONFIG in |
||
6988 | [\\/]* | ?:[\\/]*) |
||
6989 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
||
6990 | ;; |
||
6991 | *) |
||
6992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6993 | for as_dir in $PATH |
||
6994 | do |
||
6995 | IFS=$as_save_IFS |
||
6996 | test -z "$as_dir" && as_dir=. |
||
6997 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
6998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
6999 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
||
7000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7001 | break 2 |
||
7002 | fi |
||
7003 | done |
||
7004 | done |
||
7005 | IFS=$as_save_IFS |
||
7006 | |||
7007 | ;; |
||
7008 | esac |
||
7009 | fi |
||
7010 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
||
7011 | if test -n "$ac_pt_PKG_CONFIG"; then |
||
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
||
7013 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
||
7014 | else |
||
7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7016 | $as_echo "no" >&6; } |
||
7017 | fi |
||
7018 | |||
7019 | if test "x$ac_pt_PKG_CONFIG" = x; then |
||
7020 | PKG_CONFIG="" |
||
7021 | else |
||
7022 | case $cross_compiling:$ac_tool_warned in |
||
7023 | yes:) |
||
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
7025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
7026 | ac_tool_warned=yes ;; |
||
7027 | esac |
||
7028 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
||
7029 | fi |
||
7030 | else |
||
7031 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
||
7032 | fi |
||
7033 | |||
7034 | fi |
||
7035 | if test -n "$PKG_CONFIG"; then |
||
7036 | _pkg_min_version=0.16 |
||
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
||
7038 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
||
7039 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
||
7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
7041 | $as_echo "yes" >&6; } |
||
7042 | else |
||
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7044 | $as_echo "no" >&6; } |
||
7045 | PKG_CONFIG="" |
||
7046 | fi |
||
7047 | fi |
||
7048 | |||
7049 | if test "x$enable_debug" = "xyes"; then |
||
7050 | if test "x$cflags_set" != "x" ; then |
||
7051 | case " $CFLAGS " in |
||
7052 | *[\ \ ]-g[\ \ ]*) ;; |
||
7053 | *) CFLAGS="$CFLAGS -g" ;; |
||
7054 | esac |
||
7055 | fi |
||
7056 | GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG" |
||
7057 | else |
||
7058 | GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS" |
||
7059 | |||
7060 | if test "x$enable_debug" = "xno"; then |
||
7061 | GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" |
||
7062 | fi |
||
7063 | fi |
||
7064 | |||
7065 | # Ensure MSVC-compatible struct packing convention is used when |
||
7066 | # compiling for Win32 with gcc. |
||
7067 | # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while |
||
7068 | # gcc2 uses "-fnative-struct". |
||
7069 | if test x"$glib_native_win32" = xyes; then |
||
7070 | if test x"$GCC" = xyes; then |
||
7071 | msnative_struct='' |
||
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5 |
||
7073 | $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; } |
||
7074 | if test -z "$ac_cv_prog_CC"; then |
||
7075 | our_gcc="$CC" |
||
7076 | else |
||
7077 | our_gcc="$ac_cv_prog_CC" |
||
7078 | fi |
||
7079 | case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in |
||
7080 | 2.) |
||
7081 | if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then |
||
7082 | msnative_struct='-fnative-struct' |
||
7083 | fi |
||
7084 | ;; |
||
7085 | *) |
||
7086 | if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then |
||
7087 | msnative_struct='-mms-bitfields' |
||
7088 | fi |
||
7089 | ;; |
||
7090 | esac |
||
7091 | if test x"$msnative_struct" = x ; then |
||
7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5 |
||
7093 | $as_echo "no way" >&6; } |
||
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5 |
||
7095 | $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;} |
||
7096 | else |
||
7097 | CFLAGS="$CFLAGS $msnative_struct" |
||
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5 |
||
7099 | $as_echo "${msnative_struct}" >&6; } |
||
7100 | fi |
||
7101 | fi |
||
7102 | fi |
||
7103 | GLIB_EXTRA_CFLAGS="${msnative_struct}" |
||
7104 | |||
7105 | |||
7106 | |||
7107 | |||
7108 | # define a MAINT-like variable REBUILD which is set if Perl |
||
7109 | # and awk are found, so autogenerated sources can be rebuilt |
||
7110 | for ac_prog in gawk mawk nawk awk |
||
7111 | do |
||
7112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
7113 | set dummy $ac_prog; ac_word=$2 |
||
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7115 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7116 | if ${ac_cv_prog_AWK+:} false; then : |
||
7117 | $as_echo_n "(cached) " >&6 |
||
7118 | else |
||
7119 | if test -n "$AWK"; then |
||
7120 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
7121 | else |
||
7122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7123 | for as_dir in $PATH |
||
7124 | do |
||
7125 | IFS=$as_save_IFS |
||
7126 | test -z "$as_dir" && as_dir=. |
||
7127 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7129 | ac_cv_prog_AWK="$ac_prog" |
||
7130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7131 | break 2 |
||
7132 | fi |
||
7133 | done |
||
7134 | done |
||
7135 | IFS=$as_save_IFS |
||
7136 | |||
7137 | fi |
||
7138 | fi |
||
7139 | AWK=$ac_cv_prog_AWK |
||
7140 | if test -n "$AWK"; then |
||
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
||
7142 | $as_echo "$AWK" >&6; } |
||
7143 | else |
||
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7145 | $as_echo "no" >&6; } |
||
7146 | fi |
||
7147 | |||
7148 | |||
7149 | test -n "$AWK" && break |
||
7150 | done |
||
7151 | |||
7152 | for ac_prog in perl5 perl |
||
7153 | do |
||
7154 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
7155 | set dummy $ac_prog; ac_word=$2 |
||
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7157 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7158 | if ${ac_cv_prog_PERL+:} false; then : |
||
7159 | $as_echo_n "(cached) " >&6 |
||
7160 | else |
||
7161 | if test -n "$PERL"; then |
||
7162 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
||
7163 | else |
||
7164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7165 | for as_dir in $PATH |
||
7166 | do |
||
7167 | IFS=$as_save_IFS |
||
7168 | test -z "$as_dir" && as_dir=. |
||
7169 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7171 | ac_cv_prog_PERL="$ac_prog" |
||
7172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7173 | break 2 |
||
7174 | fi |
||
7175 | done |
||
7176 | done |
||
7177 | IFS=$as_save_IFS |
||
7178 | |||
7179 | fi |
||
7180 | fi |
||
7181 | PERL=$ac_cv_prog_PERL |
||
7182 | if test -n "$PERL"; then |
||
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
||
7184 | $as_echo "$PERL" >&6; } |
||
7185 | else |
||
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7187 | $as_echo "no" >&6; } |
||
7188 | fi |
||
7189 | |||
7190 | |||
7191 | test -n "$PERL" && break |
||
7192 | done |
||
7193 | |||
7194 | # We would like indent, but don't require it. |
||
7195 | # Extract the first word of "indent", so it can be a program name with args. |
||
7196 | set dummy indent; ac_word=$2 |
||
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7198 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7199 | if ${ac_cv_prog_INDENT+:} false; then : |
||
7200 | $as_echo_n "(cached) " >&6 |
||
7201 | else |
||
7202 | if test -n "$INDENT"; then |
||
7203 | ac_cv_prog_INDENT="$INDENT" # Let the user override the test. |
||
7204 | else |
||
7205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7206 | for as_dir in $PATH |
||
7207 | do |
||
7208 | IFS=$as_save_IFS |
||
7209 | test -z "$as_dir" && as_dir=. |
||
7210 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7212 | ac_cv_prog_INDENT="indent" |
||
7213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7214 | break 2 |
||
7215 | fi |
||
7216 | done |
||
7217 | done |
||
7218 | IFS=$as_save_IFS |
||
7219 | |||
7220 | fi |
||
7221 | fi |
||
7222 | INDENT=$ac_cv_prog_INDENT |
||
7223 | if test -n "$INDENT"; then |
||
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 |
||
7225 | $as_echo "$INDENT" >&6; } |
||
7226 | else |
||
7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7228 | $as_echo "no" >&6; } |
||
7229 | fi |
||
7230 | |||
7231 | |||
7232 | REBUILD=\# |
||
7233 | if test "x$enable_rebuilds" = "xyes" && \ |
||
7234 | test -n "$PERL" && \ |
||
7235 | $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \ |
||
7236 | test -n "$AWK" ; then |
||
7237 | REBUILD= |
||
7238 | fi |
||
7239 | |||
7240 | |||
7241 | # Need full path to Perl for glib-mkenums |
||
7242 | # |
||
7243 | if test "x$PERL" != x ; then |
||
7244 | # Extract the first word of "$PERL", so it can be a program name with args. |
||
7245 | set dummy $PERL; ac_word=$2 |
||
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7247 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7248 | if ${ac_cv_path_PERL_PATH+:} false; then : |
||
7249 | $as_echo_n "(cached) " >&6 |
||
7250 | else |
||
7251 | case $PERL_PATH in |
||
7252 | [\\/]* | ?:[\\/]*) |
||
7253 | ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path. |
||
7254 | ;; |
||
7255 | *) |
||
7256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7257 | for as_dir in $PATH |
||
7258 | do |
||
7259 | IFS=$as_save_IFS |
||
7260 | test -z "$as_dir" && as_dir=. |
||
7261 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7263 | ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext" |
||
7264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7265 | break 2 |
||
7266 | fi |
||
7267 | done |
||
7268 | done |
||
7269 | IFS=$as_save_IFS |
||
7270 | |||
7271 | ;; |
||
7272 | esac |
||
7273 | fi |
||
7274 | PERL_PATH=$ac_cv_path_PERL_PATH |
||
7275 | if test -n "$PERL_PATH"; then |
||
7276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5 |
||
7277 | $as_echo "$PERL_PATH" >&6; } |
||
7278 | else |
||
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7280 | $as_echo "no" >&6; } |
||
7281 | fi |
||
7282 | |||
7283 | |||
7284 | fi |
||
7285 | if test "x$PERL_PATH" = x ; then |
||
7286 | PERL_PATH="/usr/bin/env perl" |
||
7287 | fi |
||
7288 | |||
7289 | |||
7290 | # option to specify python interpreter to use; this just sets $PYTHON, so that |
||
7291 | # we will fallback to reading $PYTHON if --with-python is not given, and |
||
7292 | # python.m4 will get the expected input |
||
7293 | |||
7294 | # Check whether --with-python was given. |
||
7295 | if test "${with_python+set}" = set; then : |
||
7296 | withval=$with_python; PYTHON="$withval" |
||
7297 | fi |
||
7298 | |||
7299 | if test x"$PYTHON" = xyes; then |
||
7300 | as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5 |
||
7301 | fi |
||
7302 | |||
7303 | |||
7304 | |||
7305 | |||
7306 | |||
7307 | |||
7308 | if test -n "$PYTHON"; then |
||
7309 | # If the user set $PYTHON, use it and don't search something else. |
||
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5 |
||
7311 | $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; } |
||
7312 | prog="import sys |
||
7313 | # split strings by '.' and convert to numeric. Append some zeros |
||
7314 | # because we need at least 4 digits for the hex conversion. |
||
7315 | # map returns an iterator in Python 3.0 and a list in 2.x |
||
7316 | minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] |
||
7317 | minverhex = 0 |
||
7318 | # xrange is not present in Python 3.0 and range returns an iterator |
||
7319 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
||
7320 | sys.exit(sys.hexversion < minverhex)" |
||
7321 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 |
||
7322 | ($PYTHON -c "$prog") >&5 2>&5 |
||
7323 | ac_status=$? |
||
7324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7325 | (exit $ac_status); }; then : |
||
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
7327 | $as_echo "yes" >&6; } |
||
7328 | else |
||
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7330 | $as_echo "no" >&6; } |
||
7331 | as_fn_error $? "Python interpreter is too old" "$LINENO" 5 |
||
7332 | fi |
||
7333 | am_display_PYTHON=$PYTHON |
||
7334 | else |
||
7335 | # Otherwise, try each interpreter until we find one that satisfies |
||
7336 | # VERSION. |
||
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5 |
||
7338 | $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; } |
||
7339 | if ${am_cv_pathless_PYTHON+:} false; then : |
||
7340 | $as_echo_n "(cached) " >&6 |
||
7341 | else |
||
7342 | |||
7343 | for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
||
7344 | test "$am_cv_pathless_PYTHON" = none && break |
||
7345 | prog="import sys |
||
7346 | # split strings by '.' and convert to numeric. Append some zeros |
||
7347 | # because we need at least 4 digits for the hex conversion. |
||
7348 | # map returns an iterator in Python 3.0 and a list in 2.x |
||
7349 | minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] |
||
7350 | minverhex = 0 |
||
7351 | # xrange is not present in Python 3.0 and range returns an iterator |
||
7352 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
||
7353 | sys.exit(sys.hexversion < minverhex)" |
||
7354 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 |
||
7355 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 |
||
7356 | ac_status=$? |
||
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7358 | (exit $ac_status); }; then : |
||
7359 | break |
||
7360 | fi |
||
7361 | done |
||
7362 | fi |
||
7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
||
7364 | $as_echo "$am_cv_pathless_PYTHON" >&6; } |
||
7365 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
||
7366 | if test "$am_cv_pathless_PYTHON" = none; then |
||
7367 | PYTHON=: |
||
7368 | else |
||
7369 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. |
||
7370 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 |
||
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
7372 | $as_echo_n "checking for $ac_word... " >&6; } |
||
7373 | if ${ac_cv_path_PYTHON+:} false; then : |
||
7374 | $as_echo_n "(cached) " >&6 |
||
7375 | else |
||
7376 | case $PYTHON in |
||
7377 | [\\/]* | ?:[\\/]*) |
||
7378 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
||
7379 | ;; |
||
7380 | *) |
||
7381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
7382 | for as_dir in $PATH |
||
7383 | do |
||
7384 | IFS=$as_save_IFS |
||
7385 | test -z "$as_dir" && as_dir=. |
||
7386 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
7387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
7388 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
||
7389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
7390 | break 2 |
||
7391 | fi |
||
7392 | done |
||
7393 | done |
||
7394 | IFS=$as_save_IFS |
||
7395 | |||
7396 | ;; |
||
7397 | esac |
||
7398 | fi |
||
7399 | PYTHON=$ac_cv_path_PYTHON |
||
7400 | if test -n "$PYTHON"; then |
||
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
||
7402 | $as_echo "$PYTHON" >&6; } |
||
7403 | else |
||
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7405 | $as_echo "no" >&6; } |
||
7406 | fi |
||
7407 | |||
7408 | |||
7409 | fi |
||
7410 | am_display_PYTHON=$am_cv_pathless_PYTHON |
||
7411 | fi |
||
7412 | |||
7413 | |||
7414 | if test "$PYTHON" = :; then |
||
7415 | PYTHON="/usr/bin/env python2.5" |
||
7416 | else |
||
7417 | |||
7418 | |||
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
||
7420 | $as_echo_n "checking for $am_display_PYTHON version... " >&6; } |
||
7421 | if ${am_cv_python_version+:} false; then : |
||
7422 | $as_echo_n "(cached) " >&6 |
||
7423 | else |
||
7424 | am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` |
||
7425 | fi |
||
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
||
7427 | $as_echo "$am_cv_python_version" >&6; } |
||
7428 | PYTHON_VERSION=$am_cv_python_version |
||
7429 | |||
7430 | |||
7431 | |||
7432 | PYTHON_PREFIX='${prefix}' |
||
7433 | |||
7434 | PYTHON_EXEC_PREFIX='${exec_prefix}' |
||
7435 | |||
7436 | |||
7437 | |||
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
||
7439 | $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } |
||
7440 | if ${am_cv_python_platform+:} false; then : |
||
7441 | $as_echo_n "(cached) " >&6 |
||
7442 | else |
||
7443 | am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` |
||
7444 | fi |
||
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 |
||
7446 | $as_echo "$am_cv_python_platform" >&6; } |
||
7447 | PYTHON_PLATFORM=$am_cv_python_platform |
||
7448 | |||
7449 | |||
7450 | # Just factor out some code duplication. |
||
7451 | am_python_setup_sysconfig="\ |
||
7452 | import sys |
||
7453 | # Prefer sysconfig over distutils.sysconfig, for better compatibility |
||
7454 | # with python 3.x. See automake bug#10227. |
||
7455 | try: |
||
7456 | import sysconfig |
||
7457 | except ImportError: |
||
7458 | can_use_sysconfig = 0 |
||
7459 | else: |
||
7460 | can_use_sysconfig = 1 |
||
7461 | # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
||
7462 | # <https://github.com/pypa/virtualenv/issues/118> |
||
7463 | try: |
||
7464 | from platform import python_implementation |
||
7465 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
||
7466 | can_use_sysconfig = 0 |
||
7467 | except ImportError: |
||
7468 | pass" |
||
7469 | |||
7470 | |||
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 |
||
7472 | $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } |
||
7473 | if ${am_cv_python_pythondir+:} false; then : |
||
7474 | $as_echo_n "(cached) " >&6 |
||
7475 | else |
||
7476 | if test "x$prefix" = xNONE |
||
7477 | then |
||
7478 | am_py_prefix=$ac_default_prefix |
||
7479 | else |
||
7480 | am_py_prefix=$prefix |
||
7481 | fi |
||
7482 | am_cv_python_pythondir=`$PYTHON -c " |
||
7483 | $am_python_setup_sysconfig |
||
7484 | if can_use_sysconfig: |
||
7485 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
||
7486 | else: |
||
7487 | from distutils import sysconfig |
||
7488 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
||
7489 | sys.stdout.write(sitedir)"` |
||
7490 | case $am_cv_python_pythondir in |
||
7491 | $am_py_prefix*) |
||
7492 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` |
||
7493 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` |
||
7494 | ;; |
||
7495 | *) |
||
7496 | case $am_py_prefix in |
||
7497 | /usr|/System*) ;; |
||
7498 | *) |
||
7499 | am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages |
||
7500 | ;; |
||
7501 | esac |
||
7502 | ;; |
||
7503 | esac |
||
7504 | |||
7505 | fi |
||
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
||
7507 | $as_echo "$am_cv_python_pythondir" >&6; } |
||
7508 | pythondir=$am_cv_python_pythondir |
||
7509 | |||
7510 | |||
7511 | |||
7512 | pkgpythondir=\${pythondir}/$PACKAGE |
||
7513 | |||
7514 | |||
7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 |
||
7516 | $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } |
||
7517 | if ${am_cv_python_pyexecdir+:} false; then : |
||
7518 | $as_echo_n "(cached) " >&6 |
||
7519 | else |
||
7520 | if test "x$exec_prefix" = xNONE |
||
7521 | then |
||
7522 | am_py_exec_prefix=$am_py_prefix |
||
7523 | else |
||
7524 | am_py_exec_prefix=$exec_prefix |
||
7525 | fi |
||
7526 | am_cv_python_pyexecdir=`$PYTHON -c " |
||
7527 | $am_python_setup_sysconfig |
||
7528 | if can_use_sysconfig: |
||
7529 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) |
||
7530 | else: |
||
7531 | from distutils import sysconfig |
||
7532 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') |
||
7533 | sys.stdout.write(sitedir)"` |
||
7534 | case $am_cv_python_pyexecdir in |
||
7535 | $am_py_exec_prefix*) |
||
7536 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |
||
7537 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` |
||
7538 | ;; |
||
7539 | *) |
||
7540 | case $am_py_exec_prefix in |
||
7541 | /usr|/System*) ;; |
||
7542 | *) |
||
7543 | am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages |
||
7544 | ;; |
||
7545 | esac |
||
7546 | ;; |
||
7547 | esac |
||
7548 | |||
7549 | fi |
||
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
||
7551 | $as_echo "$am_cv_python_pyexecdir" >&6; } |
||
7552 | pyexecdir=$am_cv_python_pyexecdir |
||
7553 | |||
7554 | |||
7555 | |||
7556 | pkgpyexecdir=\${pyexecdir}/$PACKAGE |
||
7557 | |||
7558 | |||
7559 | |||
7560 | fi |
||
7561 | |||
7562 | |||
7563 | |||
7564 | |||
7565 | |||
7566 | |||
7567 | if test x"$glib_native_win32" = xyes; then : |
||
7568 | |||
7569 | with_libiconv=native |
||
7570 | |||
7571 | else |
||
7572 | |||
7573 | |||
7574 | # Check whether --with-libiconv was given. |
||
7575 | if test "${with_libiconv+set}" = set; then : |
||
7576 | withval=$with_libiconv; |
||
7577 | else |
||
7578 | with_libiconv=maybe |
||
7579 | fi |
||
7580 | |||
7581 | |||
7582 | found_iconv=no |
||
7583 | case $with_libiconv in |
||
7584 | maybe) |
||
7585 | # Check in the C library first |
||
7586 | ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open" |
||
7587 | if test "x$ac_cv_func_iconv_open" = xyes; then : |
||
7588 | with_libiconv=no; found_iconv=yes |
||
7589 | fi |
||
7590 | |||
7591 | # Check if we have GNU libiconv |
||
7592 | if test $found_iconv = "no"; then |
||
7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 |
||
7594 | $as_echo_n "checking for libiconv_open in -liconv... " >&6; } |
||
7595 | if ${ac_cv_lib_iconv_libiconv_open+:} false; then : |
||
7596 | $as_echo_n "(cached) " >&6 |
||
7597 | else |
||
7598 | ac_check_lib_save_LIBS=$LIBS |
||
7599 | LIBS="-liconv $LIBS" |
||
7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7601 | /* end confdefs.h. */ |
||
7602 | |||
7603 | /* Override any GCC internal prototype to avoid an error. |
||
7604 | Use char because int might match the return type of a GCC |
||
7605 | builtin and then its argument prototype would still apply. */ |
||
7606 | #ifdef __cplusplus |
||
7607 | extern "C" |
||
7608 | #endif |
||
7609 | char libiconv_open (); |
||
7610 | int |
||
7611 | main () |
||
7612 | { |
||
7613 | return libiconv_open (); |
||
7614 | ; |
||
7615 | return 0; |
||
7616 | } |
||
7617 | _ACEOF |
||
7618 | if ac_fn_c_try_link "$LINENO"; then : |
||
7619 | ac_cv_lib_iconv_libiconv_open=yes |
||
7620 | else |
||
7621 | ac_cv_lib_iconv_libiconv_open=no |
||
7622 | fi |
||
7623 | rm -f core conftest.err conftest.$ac_objext \ |
||
7624 | conftest$ac_exeext conftest.$ac_ext |
||
7625 | LIBS=$ac_check_lib_save_LIBS |
||
7626 | fi |
||
7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 |
||
7628 | $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } |
||
7629 | if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : |
||
7630 | with_libiconv=gnu; found_iconv=yes |
||
7631 | fi |
||
7632 | |||
7633 | fi |
||
7634 | # Check if we have a iconv in -liconv, possibly from vendor |
||
7635 | if test $found_iconv = "no"; then |
||
7636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
||
7637 | $as_echo_n "checking for iconv_open in -liconv... " >&6; } |
||
7638 | if ${ac_cv_lib_iconv_iconv_open+:} false; then : |
||
7639 | $as_echo_n "(cached) " >&6 |
||
7640 | else |
||
7641 | ac_check_lib_save_LIBS=$LIBS |
||
7642 | LIBS="-liconv $LIBS" |
||
7643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7644 | /* end confdefs.h. */ |
||
7645 | |||
7646 | /* Override any GCC internal prototype to avoid an error. |
||
7647 | Use char because int might match the return type of a GCC |
||
7648 | builtin and then its argument prototype would still apply. */ |
||
7649 | #ifdef __cplusplus |
||
7650 | extern "C" |
||
7651 | #endif |
||
7652 | char iconv_open (); |
||
7653 | int |
||
7654 | main () |
||
7655 | { |
||
7656 | return iconv_open (); |
||
7657 | ; |
||
7658 | return 0; |
||
7659 | } |
||
7660 | _ACEOF |
||
7661 | if ac_fn_c_try_link "$LINENO"; then : |
||
7662 | ac_cv_lib_iconv_iconv_open=yes |
||
7663 | else |
||
7664 | ac_cv_lib_iconv_iconv_open=no |
||
7665 | fi |
||
7666 | rm -f core conftest.err conftest.$ac_objext \ |
||
7667 | conftest$ac_exeext conftest.$ac_ext |
||
7668 | LIBS=$ac_check_lib_save_LIBS |
||
7669 | fi |
||
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
||
7671 | $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } |
||
7672 | if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : |
||
7673 | with_libiconv=native; found_iconv=yes |
||
7674 | fi |
||
7675 | |||
7676 | fi |
||
7677 | ;; |
||
7678 | no) |
||
7679 | ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open" |
||
7680 | if test "x$ac_cv_func_iconv_open" = xyes; then : |
||
7681 | with_libiconv=no; found_iconv=yes |
||
7682 | fi |
||
7683 | |||
7684 | ;; |
||
7685 | gnu|yes) |
||
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 |
||
7687 | $as_echo_n "checking for libiconv_open in -liconv... " >&6; } |
||
7688 | if ${ac_cv_lib_iconv_libiconv_open+:} false; then : |
||
7689 | $as_echo_n "(cached) " >&6 |
||
7690 | else |
||
7691 | ac_check_lib_save_LIBS=$LIBS |
||
7692 | LIBS="-liconv $LIBS" |
||
7693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7694 | /* end confdefs.h. */ |
||
7695 | |||
7696 | /* Override any GCC internal prototype to avoid an error. |
||
7697 | Use char because int might match the return type of a GCC |
||
7698 | builtin and then its argument prototype would still apply. */ |
||
7699 | #ifdef __cplusplus |
||
7700 | extern "C" |
||
7701 | #endif |
||
7702 | char libiconv_open (); |
||
7703 | int |
||
7704 | main () |
||
7705 | { |
||
7706 | return libiconv_open (); |
||
7707 | ; |
||
7708 | return 0; |
||
7709 | } |
||
7710 | _ACEOF |
||
7711 | if ac_fn_c_try_link "$LINENO"; then : |
||
7712 | ac_cv_lib_iconv_libiconv_open=yes |
||
7713 | else |
||
7714 | ac_cv_lib_iconv_libiconv_open=no |
||
7715 | fi |
||
7716 | rm -f core conftest.err conftest.$ac_objext \ |
||
7717 | conftest$ac_exeext conftest.$ac_ext |
||
7718 | LIBS=$ac_check_lib_save_LIBS |
||
7719 | fi |
||
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 |
||
7721 | $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } |
||
7722 | if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : |
||
7723 | with_libiconv=gnu; found_iconv=yes |
||
7724 | fi |
||
7725 | |||
7726 | ;; |
||
7727 | native) |
||
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
||
7729 | $as_echo_n "checking for iconv_open in -liconv... " >&6; } |
||
7730 | if ${ac_cv_lib_iconv_iconv_open+:} false; then : |
||
7731 | $as_echo_n "(cached) " >&6 |
||
7732 | else |
||
7733 | ac_check_lib_save_LIBS=$LIBS |
||
7734 | LIBS="-liconv $LIBS" |
||
7735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7736 | /* end confdefs.h. */ |
||
7737 | |||
7738 | /* Override any GCC internal prototype to avoid an error. |
||
7739 | Use char because int might match the return type of a GCC |
||
7740 | builtin and then its argument prototype would still apply. */ |
||
7741 | #ifdef __cplusplus |
||
7742 | extern "C" |
||
7743 | #endif |
||
7744 | char iconv_open (); |
||
7745 | int |
||
7746 | main () |
||
7747 | { |
||
7748 | return iconv_open (); |
||
7749 | ; |
||
7750 | return 0; |
||
7751 | } |
||
7752 | _ACEOF |
||
7753 | if ac_fn_c_try_link "$LINENO"; then : |
||
7754 | ac_cv_lib_iconv_iconv_open=yes |
||
7755 | else |
||
7756 | ac_cv_lib_iconv_iconv_open=no |
||
7757 | fi |
||
7758 | rm -f core conftest.err conftest.$ac_objext \ |
||
7759 | conftest$ac_exeext conftest.$ac_ext |
||
7760 | LIBS=$ac_check_lib_save_LIBS |
||
7761 | fi |
||
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
||
7763 | $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } |
||
7764 | if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : |
||
7765 | with_libiconv=native; found_iconv=yes |
||
7766 | fi |
||
7767 | |||
7768 | ;; |
||
7769 | esac |
||
7770 | |||
7771 | if test "x$found_iconv" = "xno" ; then |
||
7772 | as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5 |
||
7773 | fi |
||
7774 | |||
7775 | fi |
||
7776 | |||
7777 | |||
7778 | pkg_failed=no |
||
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
||
7780 | $as_echo_n "checking for ZLIB... " >&6; } |
||
7781 | |||
7782 | if test -n "$ZLIB_CFLAGS"; then |
||
7783 | pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" |
||
7784 | elif test -n "$PKG_CONFIG"; then |
||
7785 | if test -n "$PKG_CONFIG" && \ |
||
7786 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 |
||
7787 | ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 |
||
7788 | ac_status=$? |
||
7789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
7790 | test $ac_status = 0; }; then |
||
7791 | pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` |
||
7792 | test "x$?" != "x0" && pkg_failed=yes |
||
7793 | else |
||
7794 | pkg_failed=yes |
||
7795 | fi |
||
7796 | else |
||
7797 | pkg_failed=untried |
||
7798 | fi |
||
7799 | if test -n "$ZLIB_LIBS"; then |
||
7800 | pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" |
||
7801 | elif test -n "$PKG_CONFIG"; then |
||
7802 | if test -n "$PKG_CONFIG" && \ |
||
7803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 |
||
7804 | ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 |
||
7805 | ac_status=$? |
||
7806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
7807 | test $ac_status = 0; }; then |
||
7808 | pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` |
||
7809 | test "x$?" != "x0" && pkg_failed=yes |
||
7810 | else |
||
7811 | pkg_failed=yes |
||
7812 | fi |
||
7813 | else |
||
7814 | pkg_failed=untried |
||
7815 | fi |
||
7816 | |||
7817 | |||
7818 | |||
7819 | if test $pkg_failed = yes; then |
||
7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7821 | $as_echo "no" >&6; } |
||
7822 | |||
7823 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
7824 | _pkg_short_errors_supported=yes |
||
7825 | else |
||
7826 | _pkg_short_errors_supported=no |
||
7827 | fi |
||
7828 | if test $_pkg_short_errors_supported = yes; then |
||
7829 | ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` |
||
7830 | else |
||
7831 | ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` |
||
7832 | fi |
||
7833 | # Put the nasty error message in config.log where it belongs |
||
7834 | echo "$ZLIB_PKG_ERRORS" >&5 |
||
7835 | |||
7836 | found_zlib=no |
||
7837 | elif test $pkg_failed = untried; then |
||
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7839 | $as_echo "no" >&6; } |
||
7840 | found_zlib=no |
||
7841 | else |
||
7842 | ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS |
||
7843 | ZLIB_LIBS=$pkg_cv_ZLIB_LIBS |
||
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
7845 | $as_echo "yes" >&6; } |
||
7846 | found_zlib=yes |
||
7847 | fi |
||
7848 | if test "x$found_zlib" = "xno"; then : |
||
7849 | |||
7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
||
7851 | $as_echo_n "checking for inflate in -lz... " >&6; } |
||
7852 | if ${ac_cv_lib_z_inflate+:} false; then : |
||
7853 | $as_echo_n "(cached) " >&6 |
||
7854 | else |
||
7855 | ac_check_lib_save_LIBS=$LIBS |
||
7856 | LIBS="-lz $LIBS" |
||
7857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
7858 | /* end confdefs.h. */ |
||
7859 | |||
7860 | /* Override any GCC internal prototype to avoid an error. |
||
7861 | Use char because int might match the return type of a GCC |
||
7862 | builtin and then its argument prototype would still apply. */ |
||
7863 | #ifdef __cplusplus |
||
7864 | extern "C" |
||
7865 | #endif |
||
7866 | char inflate (); |
||
7867 | int |
||
7868 | main () |
||
7869 | { |
||
7870 | return inflate (); |
||
7871 | ; |
||
7872 | return 0; |
||
7873 | } |
||
7874 | _ACEOF |
||
7875 | if ac_fn_c_try_link "$LINENO"; then : |
||
7876 | ac_cv_lib_z_inflate=yes |
||
7877 | else |
||
7878 | ac_cv_lib_z_inflate=no |
||
7879 | fi |
||
7880 | rm -f core conftest.err conftest.$ac_objext \ |
||
7881 | conftest$ac_exeext conftest.$ac_ext |
||
7882 | LIBS=$ac_check_lib_save_LIBS |
||
7883 | fi |
||
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
||
7885 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
||
7886 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
||
7887 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
||
7888 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
||
7889 | found_zlib=yes |
||
7890 | fi |
||
7891 | |||
7892 | |||
7893 | fi |
||
7894 | |||
7895 | if test "x$found_zlib" = "xno" ; then |
||
7896 | as_fn_error $? "*** Working zlib library and headers not found ***" "$LINENO" 5 |
||
7897 | fi |
||
7898 | ZLIB_LIBS='-lz' |
||
7899 | |||
7900 | |||
7901 | fi |
||
7902 | |||
7903 | |||
7904 | pkg_failed=no |
||
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
||
7906 | $as_echo_n "checking for LIBFFI... " >&6; } |
||
7907 | |||
7908 | if test -n "$LIBFFI_CFLAGS"; then |
||
7909 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" |
||
7910 | elif test -n "$PKG_CONFIG"; then |
||
7911 | if test -n "$PKG_CONFIG" && \ |
||
7912 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5 |
||
7913 | ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5 |
||
7914 | ac_status=$? |
||
7915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
7916 | test $ac_status = 0; }; then |
||
7917 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0" 2>/dev/null` |
||
7918 | test "x$?" != "x0" && pkg_failed=yes |
||
7919 | else |
||
7920 | pkg_failed=yes |
||
7921 | fi |
||
7922 | else |
||
7923 | pkg_failed=untried |
||
7924 | fi |
||
7925 | if test -n "$LIBFFI_LIBS"; then |
||
7926 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" |
||
7927 | elif test -n "$PKG_CONFIG"; then |
||
7928 | if test -n "$PKG_CONFIG" && \ |
||
7929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5 |
||
7930 | ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5 |
||
7931 | ac_status=$? |
||
7932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
7933 | test $ac_status = 0; }; then |
||
7934 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0" 2>/dev/null` |
||
7935 | test "x$?" != "x0" && pkg_failed=yes |
||
7936 | else |
||
7937 | pkg_failed=yes |
||
7938 | fi |
||
7939 | else |
||
7940 | pkg_failed=untried |
||
7941 | fi |
||
7942 | |||
7943 | |||
7944 | |||
7945 | if test $pkg_failed = yes; then |
||
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7947 | $as_echo "no" >&6; } |
||
7948 | |||
7949 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
7950 | _pkg_short_errors_supported=yes |
||
7951 | else |
||
7952 | _pkg_short_errors_supported=no |
||
7953 | fi |
||
7954 | if test $_pkg_short_errors_supported = yes; then |
||
7955 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.0" 2>&1` |
||
7956 | else |
||
7957 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.0" 2>&1` |
||
7958 | fi |
||
7959 | # Put the nasty error message in config.log where it belongs |
||
7960 | echo "$LIBFFI_PKG_ERRORS" >&5 |
||
7961 | |||
7962 | as_fn_error $? "Package requirements (libffi >= 3.0.0) were not met: |
||
7963 | |||
7964 | $LIBFFI_PKG_ERRORS |
||
7965 | |||
7966 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
||
7967 | installed software in a non-standard prefix. |
||
7968 | |||
7969 | Alternatively, you may set the environment variables LIBFFI_CFLAGS |
||
7970 | and LIBFFI_LIBS to avoid the need to call pkg-config. |
||
7971 | See the pkg-config man page for more details." "$LINENO" 5 |
||
7972 | elif test $pkg_failed = untried; then |
||
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
7974 | $as_echo "no" >&6; } |
||
7975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
7976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
7977 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
||
7978 | is in your PATH or set the PKG_CONFIG environment variable to the full |
||
7979 | path to pkg-config. |
||
7980 | |||
7981 | Alternatively, you may set the environment variables LIBFFI_CFLAGS |
||
7982 | and LIBFFI_LIBS to avoid the need to call pkg-config. |
||
7983 | See the pkg-config man page for more details. |
||
7984 | |||
7985 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
||
7986 | See \`config.log' for more details" "$LINENO" 5; } |
||
7987 | else |
||
7988 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
||
7989 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS |
||
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
7991 | $as_echo "yes" >&6; } |
||
7992 | |||
7993 | fi |
||
7994 | |||
7995 | |||
7996 | |||
7997 | |||
7998 | ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`" |
||
7999 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS' |
||
8000 | |||
8001 | |||
8002 | for ac_header in locale.h |
||
8003 | do : |
||
8004 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
||
8005 | if test "x$ac_cv_header_locale_h" = xyes; then : |
||
8006 | cat >>confdefs.h <<_ACEOF |
||
8007 | #define HAVE_LOCALE_H 1 |
||
8008 | _ACEOF |
||
8009 | |||
8010 | fi |
||
8011 | |||
8012 | done |
||
8013 | |||
8014 | if test $ac_cv_header_locale_h = yes; then |
||
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
||
8016 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
||
8017 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
||
8018 | $as_echo_n "(cached) " >&6 |
||
8019 | else |
||
8020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8021 | /* end confdefs.h. */ |
||
8022 | #include <locale.h> |
||
8023 | int |
||
8024 | main () |
||
8025 | { |
||
8026 | return LC_MESSAGES |
||
8027 | ; |
||
8028 | return 0; |
||
8029 | } |
||
8030 | _ACEOF |
||
8031 | if ac_fn_c_try_link "$LINENO"; then : |
||
8032 | am_cv_val_LC_MESSAGES=yes |
||
8033 | else |
||
8034 | am_cv_val_LC_MESSAGES=no |
||
8035 | fi |
||
8036 | rm -f core conftest.err conftest.$ac_objext \ |
||
8037 | conftest$ac_exeext conftest.$ac_ext |
||
8038 | fi |
||
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
||
8040 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
||
8041 | if test $am_cv_val_LC_MESSAGES = yes; then |
||
8042 | |||
8043 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
||
8044 | |||
8045 | fi |
||
8046 | fi |
||
8047 | USE_NLS=yes |
||
8048 | |||
8049 | |||
8050 | gt_cv_have_gettext=no |
||
8051 | |||
8052 | CATOBJEXT=NONE |
||
8053 | XGETTEXT=: |
||
8054 | INTLLIBS= |
||
8055 | |||
8056 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
||
8057 | if test "x$ac_cv_header_libintl_h" = xyes; then : |
||
8058 | gt_cv_func_dgettext_libintl="no" |
||
8059 | libintl_extra_libs="" |
||
8060 | |||
8061 | # |
||
8062 | # First check in libc |
||
8063 | # |
||
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 |
||
8065 | $as_echo_n "checking for ngettext in libc... " >&6; } |
||
8066 | if ${gt_cv_func_ngettext_libc+:} false; then : |
||
8067 | $as_echo_n "(cached) " >&6 |
||
8068 | else |
||
8069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8070 | /* end confdefs.h. */ |
||
8071 | |||
8072 | #include <libintl.h> |
||
8073 | |||
8074 | int |
||
8075 | main () |
||
8076 | { |
||
8077 | return !ngettext ("","", 1) |
||
8078 | ; |
||
8079 | return 0; |
||
8080 | } |
||
8081 | _ACEOF |
||
8082 | if ac_fn_c_try_link "$LINENO"; then : |
||
8083 | gt_cv_func_ngettext_libc=yes |
||
8084 | else |
||
8085 | gt_cv_func_ngettext_libc=no |
||
8086 | fi |
||
8087 | rm -f core conftest.err conftest.$ac_objext \ |
||
8088 | conftest$ac_exeext conftest.$ac_ext |
||
8089 | |||
8090 | fi |
||
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 |
||
8092 | $as_echo "$gt_cv_func_ngettext_libc" >&6; } |
||
8093 | |||
8094 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
||
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 |
||
8096 | $as_echo_n "checking for dgettext in libc... " >&6; } |
||
8097 | if ${gt_cv_func_dgettext_libc+:} false; then : |
||
8098 | $as_echo_n "(cached) " >&6 |
||
8099 | else |
||
8100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8101 | /* end confdefs.h. */ |
||
8102 | |||
8103 | #include <libintl.h> |
||
8104 | |||
8105 | int |
||
8106 | main () |
||
8107 | { |
||
8108 | return !dgettext ("","") |
||
8109 | ; |
||
8110 | return 0; |
||
8111 | } |
||
8112 | _ACEOF |
||
8113 | if ac_fn_c_try_link "$LINENO"; then : |
||
8114 | gt_cv_func_dgettext_libc=yes |
||
8115 | else |
||
8116 | gt_cv_func_dgettext_libc=no |
||
8117 | fi |
||
8118 | rm -f core conftest.err conftest.$ac_objext \ |
||
8119 | conftest$ac_exeext conftest.$ac_ext |
||
8120 | |||
8121 | fi |
||
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 |
||
8123 | $as_echo "$gt_cv_func_dgettext_libc" >&6; } |
||
8124 | fi |
||
8125 | |||
8126 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
||
8127 | for ac_func in bind_textdomain_codeset |
||
8128 | do : |
||
8129 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
||
8130 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : |
||
8131 | cat >>confdefs.h <<_ACEOF |
||
8132 | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 |
||
8133 | _ACEOF |
||
8134 | |||
8135 | fi |
||
8136 | done |
||
8137 | |||
8138 | fi |
||
8139 | |||
8140 | # |
||
8141 | # If we don't have everything we want, check in libintl |
||
8142 | # |
||
8143 | if test "$gt_cv_func_dgettext_libc" != "yes" \ |
||
8144 | || test "$gt_cv_func_ngettext_libc" != "yes" \ |
||
8145 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
||
8146 | |||
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 |
||
8148 | $as_echo_n "checking for bindtextdomain in -lintl... " >&6; } |
||
8149 | if ${ac_cv_lib_intl_bindtextdomain+:} false; then : |
||
8150 | $as_echo_n "(cached) " >&6 |
||
8151 | else |
||
8152 | ac_check_lib_save_LIBS=$LIBS |
||
8153 | LIBS="-lintl $LIBS" |
||
8154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8155 | /* end confdefs.h. */ |
||
8156 | |||
8157 | /* Override any GCC internal prototype to avoid an error. |
||
8158 | Use char because int might match the return type of a GCC |
||
8159 | builtin and then its argument prototype would still apply. */ |
||
8160 | #ifdef __cplusplus |
||
8161 | extern "C" |
||
8162 | #endif |
||
8163 | char bindtextdomain (); |
||
8164 | int |
||
8165 | main () |
||
8166 | { |
||
8167 | return bindtextdomain (); |
||
8168 | ; |
||
8169 | return 0; |
||
8170 | } |
||
8171 | _ACEOF |
||
8172 | if ac_fn_c_try_link "$LINENO"; then : |
||
8173 | ac_cv_lib_intl_bindtextdomain=yes |
||
8174 | else |
||
8175 | ac_cv_lib_intl_bindtextdomain=no |
||
8176 | fi |
||
8177 | rm -f core conftest.err conftest.$ac_objext \ |
||
8178 | conftest$ac_exeext conftest.$ac_ext |
||
8179 | LIBS=$ac_check_lib_save_LIBS |
||
8180 | fi |
||
8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 |
||
8182 | $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } |
||
8183 | if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : |
||
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 |
||
8185 | $as_echo_n "checking for ngettext in -lintl... " >&6; } |
||
8186 | if ${ac_cv_lib_intl_ngettext+:} false; then : |
||
8187 | $as_echo_n "(cached) " >&6 |
||
8188 | else |
||
8189 | ac_check_lib_save_LIBS=$LIBS |
||
8190 | LIBS="-lintl $LIBS" |
||
8191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8192 | /* end confdefs.h. */ |
||
8193 | |||
8194 | /* Override any GCC internal prototype to avoid an error. |
||
8195 | Use char because int might match the return type of a GCC |
||
8196 | builtin and then its argument prototype would still apply. */ |
||
8197 | #ifdef __cplusplus |
||
8198 | extern "C" |
||
8199 | #endif |
||
8200 | char ngettext (); |
||
8201 | int |
||
8202 | main () |
||
8203 | { |
||
8204 | return ngettext (); |
||
8205 | ; |
||
8206 | return 0; |
||
8207 | } |
||
8208 | _ACEOF |
||
8209 | if ac_fn_c_try_link "$LINENO"; then : |
||
8210 | ac_cv_lib_intl_ngettext=yes |
||
8211 | else |
||
8212 | ac_cv_lib_intl_ngettext=no |
||
8213 | fi |
||
8214 | rm -f core conftest.err conftest.$ac_objext \ |
||
8215 | conftest$ac_exeext conftest.$ac_ext |
||
8216 | LIBS=$ac_check_lib_save_LIBS |
||
8217 | fi |
||
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 |
||
8219 | $as_echo "$ac_cv_lib_intl_ngettext" >&6; } |
||
8220 | if test "x$ac_cv_lib_intl_ngettext" = xyes; then : |
||
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 |
||
8222 | $as_echo_n "checking for dgettext in -lintl... " >&6; } |
||
8223 | if ${ac_cv_lib_intl_dgettext+:} false; then : |
||
8224 | $as_echo_n "(cached) " >&6 |
||
8225 | else |
||
8226 | ac_check_lib_save_LIBS=$LIBS |
||
8227 | LIBS="-lintl $LIBS" |
||
8228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8229 | /* end confdefs.h. */ |
||
8230 | |||
8231 | /* Override any GCC internal prototype to avoid an error. |
||
8232 | Use char because int might match the return type of a GCC |
||
8233 | builtin and then its argument prototype would still apply. */ |
||
8234 | #ifdef __cplusplus |
||
8235 | extern "C" |
||
8236 | #endif |
||
8237 | char dgettext (); |
||
8238 | int |
||
8239 | main () |
||
8240 | { |
||
8241 | return dgettext (); |
||
8242 | ; |
||
8243 | return 0; |
||
8244 | } |
||
8245 | _ACEOF |
||
8246 | if ac_fn_c_try_link "$LINENO"; then : |
||
8247 | ac_cv_lib_intl_dgettext=yes |
||
8248 | else |
||
8249 | ac_cv_lib_intl_dgettext=no |
||
8250 | fi |
||
8251 | rm -f core conftest.err conftest.$ac_objext \ |
||
8252 | conftest$ac_exeext conftest.$ac_ext |
||
8253 | LIBS=$ac_check_lib_save_LIBS |
||
8254 | fi |
||
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 |
||
8256 | $as_echo "$ac_cv_lib_intl_dgettext" >&6; } |
||
8257 | if test "x$ac_cv_lib_intl_dgettext" = xyes; then : |
||
8258 | gt_cv_func_dgettext_libintl=yes |
||
8259 | fi |
||
8260 | |||
8261 | fi |
||
8262 | |||
8263 | fi |
||
8264 | |||
8265 | |||
8266 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
||
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 |
||
8268 | $as_echo_n "checking if -liconv is needed to use gettext... " >&6; } |
||
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
||
8270 | $as_echo "" >&6; } |
||
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 |
||
8272 | $as_echo_n "checking for ngettext in -lintl... " >&6; } |
||
8273 | if ${ac_cv_lib_intl_ngettext+:} false; then : |
||
8274 | $as_echo_n "(cached) " >&6 |
||
8275 | else |
||
8276 | ac_check_lib_save_LIBS=$LIBS |
||
8277 | LIBS="-lintl -liconv $LIBS" |
||
8278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8279 | /* end confdefs.h. */ |
||
8280 | |||
8281 | /* Override any GCC internal prototype to avoid an error. |
||
8282 | Use char because int might match the return type of a GCC |
||
8283 | builtin and then its argument prototype would still apply. */ |
||
8284 | #ifdef __cplusplus |
||
8285 | extern "C" |
||
8286 | #endif |
||
8287 | char ngettext (); |
||
8288 | int |
||
8289 | main () |
||
8290 | { |
||
8291 | return ngettext (); |
||
8292 | ; |
||
8293 | return 0; |
||
8294 | } |
||
8295 | _ACEOF |
||
8296 | if ac_fn_c_try_link "$LINENO"; then : |
||
8297 | ac_cv_lib_intl_ngettext=yes |
||
8298 | else |
||
8299 | ac_cv_lib_intl_ngettext=no |
||
8300 | fi |
||
8301 | rm -f core conftest.err conftest.$ac_objext \ |
||
8302 | conftest$ac_exeext conftest.$ac_ext |
||
8303 | LIBS=$ac_check_lib_save_LIBS |
||
8304 | fi |
||
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 |
||
8306 | $as_echo "$ac_cv_lib_intl_ngettext" >&6; } |
||
8307 | if test "x$ac_cv_lib_intl_ngettext" = xyes; then : |
||
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 |
||
8309 | $as_echo_n "checking for dcgettext in -lintl... " >&6; } |
||
8310 | if ${ac_cv_lib_intl_dcgettext+:} false; then : |
||
8311 | $as_echo_n "(cached) " >&6 |
||
8312 | else |
||
8313 | ac_check_lib_save_LIBS=$LIBS |
||
8314 | LIBS="-lintl -liconv $LIBS" |
||
8315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8316 | /* end confdefs.h. */ |
||
8317 | |||
8318 | /* Override any GCC internal prototype to avoid an error. |
||
8319 | Use char because int might match the return type of a GCC |
||
8320 | builtin and then its argument prototype would still apply. */ |
||
8321 | #ifdef __cplusplus |
||
8322 | extern "C" |
||
8323 | #endif |
||
8324 | char dcgettext (); |
||
8325 | int |
||
8326 | main () |
||
8327 | { |
||
8328 | return dcgettext (); |
||
8329 | ; |
||
8330 | return 0; |
||
8331 | } |
||
8332 | _ACEOF |
||
8333 | if ac_fn_c_try_link "$LINENO"; then : |
||
8334 | ac_cv_lib_intl_dcgettext=yes |
||
8335 | else |
||
8336 | ac_cv_lib_intl_dcgettext=no |
||
8337 | fi |
||
8338 | rm -f core conftest.err conftest.$ac_objext \ |
||
8339 | conftest$ac_exeext conftest.$ac_ext |
||
8340 | LIBS=$ac_check_lib_save_LIBS |
||
8341 | fi |
||
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 |
||
8343 | $as_echo "$ac_cv_lib_intl_dcgettext" >&6; } |
||
8344 | if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : |
||
8345 | gt_cv_func_dgettext_libintl=yes |
||
8346 | libintl_extra_libs=-liconv |
||
8347 | else |
||
8348 | : |
||
8349 | fi |
||
8350 | |||
8351 | else |
||
8352 | : |
||
8353 | fi |
||
8354 | |||
8355 | fi |
||
8356 | |||
8357 | # |
||
8358 | # If we found libintl, then check in it for bind_textdomain_codeset(); |
||
8359 | # we'll prefer libc if neither have bind_textdomain_codeset(), |
||
8360 | # and both have dgettext and ngettext |
||
8361 | # |
||
8362 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
||
8363 | glib_save_LIBS="$LIBS" |
||
8364 | LIBS="$LIBS -lintl $libintl_extra_libs" |
||
8365 | unset ac_cv_func_bind_textdomain_codeset |
||
8366 | for ac_func in bind_textdomain_codeset |
||
8367 | do : |
||
8368 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
||
8369 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : |
||
8370 | cat >>confdefs.h <<_ACEOF |
||
8371 | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 |
||
8372 | _ACEOF |
||
8373 | |||
8374 | fi |
||
8375 | done |
||
8376 | |||
8377 | LIBS="$glib_save_LIBS" |
||
8378 | |||
8379 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
||
8380 | gt_cv_func_dgettext_libc=no |
||
8381 | else |
||
8382 | if test "$gt_cv_func_dgettext_libc" = "yes" \ |
||
8383 | && test "$gt_cv_func_ngettext_libc" = "yes"; then |
||
8384 | gt_cv_func_dgettext_libintl=no |
||
8385 | fi |
||
8386 | fi |
||
8387 | fi |
||
8388 | fi |
||
8389 | |||
8390 | if test "$gt_cv_func_dgettext_libc" = "yes" \ |
||
8391 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
||
8392 | gt_cv_have_gettext=yes |
||
8393 | fi |
||
8394 | |||
8395 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
||
8396 | INTLLIBS="-lintl $libintl_extra_libs" |
||
8397 | fi |
||
8398 | |||
8399 | if test "$gt_cv_have_gettext" = "yes"; then |
||
8400 | |||
8401 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
||
8402 | |||
8403 | # Extract the first word of "msgfmt", so it can be a program name with args. |
||
8404 | set dummy msgfmt; ac_word=$2 |
||
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
8406 | $as_echo_n "checking for $ac_word... " >&6; } |
||
8407 | if ${ac_cv_path_MSGFMT+:} false; then : |
||
8408 | $as_echo_n "(cached) " >&6 |
||
8409 | else |
||
8410 | case "$MSGFMT" in |
||
8411 | /*) |
||
8412 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
||
8413 | ;; |
||
8414 | *) |
||
8415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
||
8416 | for ac_dir in $PATH; do |
||
8417 | test -z "$ac_dir" && ac_dir=. |
||
8418 | if test -f $ac_dir/$ac_word; then |
||
8419 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
||
8420 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
||
8421 | break |
||
8422 | fi |
||
8423 | fi |
||
8424 | done |
||
8425 | IFS="$ac_save_ifs" |
||
8426 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
||
8427 | ;; |
||
8428 | esac |
||
8429 | fi |
||
8430 | MSGFMT="$ac_cv_path_MSGFMT" |
||
8431 | if test "$MSGFMT" != "no"; then |
||
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
||
8433 | $as_echo "$MSGFMT" >&6; } |
||
8434 | else |
||
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
8436 | $as_echo "no" >&6; } |
||
8437 | fi |
||
8438 | if test "$MSGFMT" != "no"; then |
||
8439 | glib_save_LIBS="$LIBS" |
||
8440 | LIBS="$LIBS $INTLLIBS" |
||
8441 | for ac_func in dcgettext |
||
8442 | do : |
||
8443 | ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" |
||
8444 | if test "x$ac_cv_func_dcgettext" = xyes; then : |
||
8445 | cat >>confdefs.h <<_ACEOF |
||
8446 | #define HAVE_DCGETTEXT 1 |
||
8447 | _ACEOF |
||
8448 | |||
8449 | fi |
||
8450 | done |
||
8451 | |||
8452 | MSGFMT_OPTS= |
||
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 |
||
8454 | $as_echo_n "checking if msgfmt accepts -c... " >&6; } |
||
8455 | cat >conftest.foo <<_ACEOF |
||
8456 | |||
8457 | msgid "" |
||
8458 | msgstr "" |
||
8459 | "Content-Type: text/plain; charset=UTF-8\n" |
||
8460 | "Project-Id-Version: test 1.0\n" |
||
8461 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" |
||
8462 | "Last-Translator: test <foo@bar.xx>\n" |
||
8463 | "Language-Team: C <LL@li.org>\n" |
||
8464 | "MIME-Version: 1.0\n" |
||
8465 | "Content-Transfer-Encoding: 8bit\n" |
||
8466 | |||
8467 | _ACEOF |
||
8468 | if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 |
||
8469 | ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 |
||
8470 | ac_status=$? |
||
8471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
8472 | test $ac_status = 0; }; then |
||
8473 | MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
8474 | $as_echo "yes" >&6; } |
||
8475 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
8476 | $as_echo "no" >&6; } |
||
8477 | echo "$as_me: failed input was:" >&5 |
||
8478 | sed 's/^/| /' conftest.foo >&5 |
||
8479 | fi |
||
8480 | |||
8481 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
||
8482 | set dummy gmsgfmt; ac_word=$2 |
||
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
8484 | $as_echo_n "checking for $ac_word... " >&6; } |
||
8485 | if ${ac_cv_path_GMSGFMT+:} false; then : |
||
8486 | $as_echo_n "(cached) " >&6 |
||
8487 | else |
||
8488 | case $GMSGFMT in |
||
8489 | [\\/]* | ?:[\\/]*) |
||
8490 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
||
8491 | ;; |
||
8492 | *) |
||
8493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
8494 | for as_dir in $PATH |
||
8495 | do |
||
8496 | IFS=$as_save_IFS |
||
8497 | test -z "$as_dir" && as_dir=. |
||
8498 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
8499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
8500 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
||
8501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
8502 | break 2 |
||
8503 | fi |
||
8504 | done |
||
8505 | done |
||
8506 | IFS=$as_save_IFS |
||
8507 | |||
8508 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
||
8509 | ;; |
||
8510 | esac |
||
8511 | fi |
||
8512 | GMSGFMT=$ac_cv_path_GMSGFMT |
||
8513 | if test -n "$GMSGFMT"; then |
||
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
||
8515 | $as_echo "$GMSGFMT" >&6; } |
||
8516 | else |
||
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
8518 | $as_echo "no" >&6; } |
||
8519 | fi |
||
8520 | |||
8521 | |||
8522 | # Extract the first word of "xgettext", so it can be a program name with args. |
||
8523 | set dummy xgettext; ac_word=$2 |
||
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
8525 | $as_echo_n "checking for $ac_word... " >&6; } |
||
8526 | if ${ac_cv_path_XGETTEXT+:} false; then : |
||
8527 | $as_echo_n "(cached) " >&6 |
||
8528 | else |
||
8529 | case "$XGETTEXT" in |
||
8530 | /*) |
||
8531 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
||
8532 | ;; |
||
8533 | *) |
||
8534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
||
8535 | for ac_dir in $PATH; do |
||
8536 | test -z "$ac_dir" && ac_dir=. |
||
8537 | if test -f $ac_dir/$ac_word; then |
||
8538 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
||
8539 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
||
8540 | break |
||
8541 | fi |
||
8542 | fi |
||
8543 | done |
||
8544 | IFS="$ac_save_ifs" |
||
8545 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
||
8546 | ;; |
||
8547 | esac |
||
8548 | fi |
||
8549 | XGETTEXT="$ac_cv_path_XGETTEXT" |
||
8550 | if test "$XGETTEXT" != ":"; then |
||
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
||
8552 | $as_echo "$XGETTEXT" >&6; } |
||
8553 | else |
||
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
8555 | $as_echo "no" >&6; } |
||
8556 | fi |
||
8557 | |||
8558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
8559 | /* end confdefs.h. */ |
||
8560 | |||
8561 | int |
||
8562 | main () |
||
8563 | { |
||
8564 | extern int _nl_msg_cat_cntr; |
||
8565 | return _nl_msg_cat_cntr |
||
8566 | ; |
||
8567 | return 0; |
||
8568 | } |
||
8569 | _ACEOF |
||
8570 | if ac_fn_c_try_link "$LINENO"; then : |
||
8571 | CATOBJEXT=.gmo |
||
8572 | DATADIRNAME=share |
||
8573 | else |
||
8574 | case $host in |
||
8575 | *-*-solaris*) |
||
8576 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
||
8577 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : |
||
8578 | CATOBJEXT=.gmo |
||
8579 | DATADIRNAME=share |
||
8580 | else |
||
8581 | CATOBJEXT=.mo |
||
8582 | DATADIRNAME=lib |
||
8583 | fi |
||
8584 | |||
8585 | ;; |
||
8586 | *-*-openbsd*) |
||
8587 | CATOBJEXT=.mo |
||
8588 | DATADIRNAME=share |
||
8589 | ;; |
||
8590 | *) |
||
8591 | CATOBJEXT=.mo |
||
8592 | DATADIRNAME=lib |
||
8593 | ;; |
||
8594 | esac |
||
8595 | fi |
||
8596 | rm -f core conftest.err conftest.$ac_objext \ |
||
8597 | conftest$ac_exeext conftest.$ac_ext |
||
8598 | LIBS="$glib_save_LIBS" |
||
8599 | INSTOBJEXT=.mo |
||
8600 | else |
||
8601 | gt_cv_have_gettext=no |
||
8602 | fi |
||
8603 | fi |
||
8604 | |||
8605 | fi |
||
8606 | |||
8607 | |||
8608 | |||
8609 | if test "$gt_cv_have_gettext" = "yes" ; then |
||
8610 | |||
8611 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
||
8612 | |||
8613 | fi |
||
8614 | |||
8615 | if test "$XGETTEXT" != ":"; then |
||
8616 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
||
8617 | : ; |
||
8618 | else |
||
8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
||
8620 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
||
8621 | XGETTEXT=":" |
||
8622 | fi |
||
8623 | fi |
||
8624 | |||
8625 | # We need to process the po/ directory. |
||
8626 | POSUB=po |
||
8627 | |||
8628 | ac_config_commands="$ac_config_commands default-1" |
||
8629 | |||
8630 | |||
8631 | for lang in $ALL_LINGUAS; do |
||
8632 | GMOFILES="$GMOFILES $lang.gmo" |
||
8633 | POFILES="$POFILES $lang.po" |
||
8634 | done |
||
8635 | |||
8636 | |||
8637 | |||
8638 | |||
8639 | |||
8640 | |||
8641 | |||
8642 | |||
8643 | |||
8644 | |||
8645 | |||
8646 | |||
8647 | |||
8648 | if test "$gt_cv_have_gettext" = "yes"; then |
||
8649 | if test "x$ALL_LINGUAS" = "x"; then |
||
8650 | LINGUAS= |
||
8651 | else |
||
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
||
8653 | $as_echo_n "checking for catalogs to be installed... " >&6; } |
||
8654 | NEW_LINGUAS= |
||
8655 | for presentlang in $ALL_LINGUAS; do |
||
8656 | useit=no |
||
8657 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
||
8658 | desiredlanguages="$LINGUAS" |
||
8659 | else |
||
8660 | desiredlanguages="$ALL_LINGUAS" |
||
8661 | fi |
||
8662 | for desiredlang in $desiredlanguages; do |
||
8663 | # Use the presentlang catalog if desiredlang is |
||
8664 | # a. equal to presentlang, or |
||
8665 | # b. a variant of presentlang (because in this case, |
||
8666 | # presentlang can be used as a fallback for messages |
||
8667 | # which are not translated in the desiredlang catalog). |
||
8668 | case "$desiredlang" in |
||
8669 | "$presentlang"*) useit=yes;; |
||
8670 | esac |
||
8671 | done |
||
8672 | if test $useit = yes; then |
||
8673 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
||
8674 | fi |
||
8675 | done |
||
8676 | LINGUAS=$NEW_LINGUAS |
||
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
||
8678 | $as_echo "$LINGUAS" >&6; } |
||
8679 | fi |
||
8680 | |||
8681 | if test -n "$LINGUAS"; then |
||
8682 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
||
8683 | fi |
||
8684 | fi |
||
8685 | |||
8686 | MKINSTALLDIRS= |
||
8687 | if test -n "$ac_aux_dir"; then |
||
8688 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
||
8689 | fi |
||
8690 | if test -z "$MKINSTALLDIRS"; then |
||
8691 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
||
8692 | fi |
||
8693 | |||
8694 | |||
8695 | test -d po || mkdir po |
||
8696 | if test "x$srcdir" != "x."; then |
||
8697 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
||
8698 | posrcprefix="$srcdir/" |
||
8699 | else |
||
8700 | posrcprefix="../$srcdir/" |
||
8701 | fi |
||
8702 | else |
||
8703 | posrcprefix="../" |
||
8704 | fi |
||
8705 | rm -f po/POTFILES |
||
8706 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
||
8707 | < $srcdir/po/POTFILES.in > po/POTFILES |
||
8708 | |||
8709 | |||
8710 | if test "$gt_cv_have_gettext" != "yes" ; then |
||
8711 | as_fn_error $? " |
||
8712 | *** You must have either have gettext support in your C library, or use the |
||
8713 | *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html |
||
8714 | " "$LINENO" 5 |
||
8715 | fi |
||
8716 | |||
8717 | LIBS="$INTLLIBS $LIBS" |
||
8718 | |||
8719 | GETTEXT_PACKAGE=glib20 |
||
8720 | |||
8721 | |||
8722 | cat >>confdefs.h <<_ACEOF |
||
8723 | #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" |
||
8724 | _ACEOF |
||
8725 | |||
8726 | |||
8727 | glib_save_prefix="$prefix" |
||
8728 | glib_save_exec_prefix="$exec_prefix" |
||
8729 | glib_save_datarootdir="$datarootdir" |
||
8730 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
8731 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
||
8732 | datarootdir=`eval echo "${datarootdir}"` |
||
8733 | if test "x$CATOBJEXT" = "x.mo" ; then |
||
8734 | localedir=`eval echo "${libdir}/locale"` |
||
8735 | else |
||
8736 | localedir=`eval echo "${datadir}/locale"` |
||
8737 | fi |
||
8738 | prefix="$glib_save_prefix" |
||
8739 | exec_prefix="$glib_save_exec_prefix" |
||
8740 | datarootdir="$glib_save_datarootdir" |
||
8741 | |||
8742 | cat >>confdefs.h <<_ACEOF |
||
8743 | #define GLIB_LOCALE_DIR "$localedir" |
||
8744 | _ACEOF |
||
8745 | |||
8746 | |||
8747 | |||
8748 | |||
8749 | if test x"$glib_native_win32" != xyes; then : |
||
8750 | |||
8751 | if test x$with_libiconv != xno ; then |
||
8752 | case " $INTLLIBS " in |
||
8753 | *[\ \ ]-liconv[\ \ ]*) ;; |
||
8754 | *) ICONV_LIBS="-liconv" ;; |
||
8755 | esac |
||
8756 | fi |
||
8757 | |||
8758 | fi |
||
8759 | |||
8760 | |||
8761 | case $with_libiconv in |
||
8762 | gnu) |
||
8763 | |||
8764 | $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h |
||
8765 | |||
8766 | ;; |
||
8767 | native) |
||
8768 | |||
8769 | $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h |
||
8770 | |||
8771 | ;; |
||
8772 | esac |
||
8773 | |||
8774 | |||
8775 | case `pwd` in |
||
8776 | *\ * | *\ *) |
||
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
||
8778 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
||
8779 | esac |
||
8780 | |||
8781 | |||
8782 | |||
8783 | macro_version='2.4.6' |
||
8784 | macro_revision='2.4.6' |
||
8785 | |||
8786 | |||
8787 | |||
8788 | |||
8789 | |||
8790 | |||
8791 | |||
8792 | |||
8793 | |||
8794 | |||
8795 | |||
8796 | |||
8797 | |||
8798 | ltmain=$ac_aux_dir/ltmain.sh |
||
8799 | |||
8800 | # Backslashify metacharacters that are still active within |
||
8801 | # double-quoted strings. |
||
8802 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
||
8803 | |||
8804 | # Same as above, but do not quote variable references. |
||
8805 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
||
8806 | |||
8807 | # Sed substitution to delay expansion of an escaped shell variable in a |
||
8808 | # double_quote_subst'ed string. |
||
8809 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
||
8810 | |||
8811 | # Sed substitution to delay expansion of an escaped single quote. |
||
8812 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
||
8813 | |||
8814 | # Sed substitution to avoid accidental globbing in evaled expressions |
||
8815 | no_glob_subst='s/\*/\\\*/g' |
||
8816 | |||
8817 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
8818 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
||
8819 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
||
8820 | |||
8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
||
8822 | $as_echo_n "checking how to print strings... " >&6; } |
||
8823 | # Test print first, because it will be a builtin if present. |
||
8824 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
||
8825 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
||
8826 | ECHO='print -r --' |
||
8827 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
||
8828 | ECHO='printf %s\n' |
||
8829 | else |
||
8830 | # Use this function as a fallback that always works. |
||
8831 | func_fallback_echo () |
||
8832 | { |
||
8833 | eval 'cat <<_LTECHO_EOF |
||
8834 | $1 |
||
8835 | _LTECHO_EOF' |
||
8836 | } |
||
8837 | ECHO='func_fallback_echo' |
||
8838 | fi |
||
8839 | |||
8840 | # func_echo_all arg... |
||
8841 | # Invoke $ECHO with all args, space-separated. |
||
8842 | func_echo_all () |
||
8843 | { |
||
8844 | $ECHO "" |
||
8845 | } |
||
8846 | |||
8847 | case $ECHO in |
||
8848 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
||
8849 | $as_echo "printf" >&6; } ;; |
||
8850 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
||
8851 | $as_echo "print -r" >&6; } ;; |
||
8852 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
||
8853 | $as_echo "cat" >&6; } ;; |
||
8854 | esac |
||
8855 | |||
8856 | |||
8857 | |||
8858 | |||
8859 | |||
8860 | |||
8861 | |||
8862 | |||
8863 | |||
8864 | |||
8865 | |||
8866 | |||
8867 | |||
8868 | |||
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
||
8870 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
||
8871 | if ${ac_cv_path_SED+:} false; then : |
||
8872 | $as_echo_n "(cached) " >&6 |
||
8873 | else |
||
8874 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
||
8875 | for ac_i in 1 2 3 4 5 6 7; do |
||
8876 | ac_script="$ac_script$as_nl$ac_script" |
||
8877 | done |
||
8878 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
||
8879 | { ac_script=; unset ac_script;} |
||
8880 | if test -z "$SED"; then |
||
8881 | ac_path_SED_found=false |
||
8882 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
8883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
8884 | for as_dir in $PATH |
||
8885 | do |
||
8886 | IFS=$as_save_IFS |
||
8887 | test -z "$as_dir" && as_dir=. |
||
8888 | for ac_prog in sed gsed; do |
||
8889 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
8890 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
||
8891 | as_fn_executable_p "$ac_path_SED" || continue |
||
8892 | # Check for GNU ac_path_SED and select it if it is found. |
||
8893 | # Check for GNU $ac_path_SED |
||
8894 | case `"$ac_path_SED" --version 2>&1` in |
||
8895 | *GNU*) |
||
8896 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
||
8897 | *) |
||
8898 | ac_count=0 |
||
8899 | $as_echo_n 0123456789 >"conftest.in" |
||
8900 | while : |
||
8901 | do |
||
8902 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
8903 | mv "conftest.tmp" "conftest.in" |
||
8904 | cp "conftest.in" "conftest.nl" |
||
8905 | $as_echo '' >> "conftest.nl" |
||
8906 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
8907 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
8908 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
8909 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
||
8910 | # Best one so far, save it but keep looking for a better one |
||
8911 | ac_cv_path_SED="$ac_path_SED" |
||
8912 | ac_path_SED_max=$ac_count |
||
8913 | fi |
||
8914 | # 10*(2^10) chars as input seems more than enough |
||
8915 | test $ac_count -gt 10 && break |
||
8916 | done |
||
8917 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
8918 | esac |
||
8919 | |||
8920 | $ac_path_SED_found && break 3 |
||
8921 | done |
||
8922 | done |
||
8923 | done |
||
8924 | IFS=$as_save_IFS |
||
8925 | if test -z "$ac_cv_path_SED"; then |
||
8926 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
||
8927 | fi |
||
8928 | else |
||
8929 | ac_cv_path_SED=$SED |
||
8930 | fi |
||
8931 | |||
8932 | fi |
||
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
||
8934 | $as_echo "$ac_cv_path_SED" >&6; } |
||
8935 | SED="$ac_cv_path_SED" |
||
8936 | rm -f conftest.sed |
||
8937 | |||
8938 | test -z "$SED" && SED=sed |
||
8939 | Xsed="$SED -e 1s/^X//" |
||
8940 | |||
8941 | |||
8942 | |||
8943 | |||
8944 | |||
8945 | |||
8946 | |||
8947 | |||
8948 | |||
8949 | |||
8950 | |||
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
||
8952 | $as_echo_n "checking for fgrep... " >&6; } |
||
8953 | if ${ac_cv_path_FGREP+:} false; then : |
||
8954 | $as_echo_n "(cached) " >&6 |
||
8955 | else |
||
8956 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
||
8957 | then ac_cv_path_FGREP="$GREP -F" |
||
8958 | else |
||
8959 | if test -z "$FGREP"; then |
||
8960 | ac_path_FGREP_found=false |
||
8961 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
8962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
8963 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
8964 | do |
||
8965 | IFS=$as_save_IFS |
||
8966 | test -z "$as_dir" && as_dir=. |
||
8967 | for ac_prog in fgrep; do |
||
8968 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
8969 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
8970 | as_fn_executable_p "$ac_path_FGREP" || continue |
||
8971 | # Check for GNU ac_path_FGREP and select it if it is found. |
||
8972 | # Check for GNU $ac_path_FGREP |
||
8973 | case `"$ac_path_FGREP" --version 2>&1` in |
||
8974 | *GNU*) |
||
8975 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
||
8976 | *) |
||
8977 | ac_count=0 |
||
8978 | $as_echo_n 0123456789 >"conftest.in" |
||
8979 | while : |
||
8980 | do |
||
8981 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
8982 | mv "conftest.tmp" "conftest.in" |
||
8983 | cp "conftest.in" "conftest.nl" |
||
8984 | $as_echo 'FGREP' >> "conftest.nl" |
||
8985 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
8986 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
8987 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
8988 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
||
8989 | # Best one so far, save it but keep looking for a better one |
||
8990 | ac_cv_path_FGREP="$ac_path_FGREP" |
||
8991 | ac_path_FGREP_max=$ac_count |
||
8992 | fi |
||
8993 | # 10*(2^10) chars as input seems more than enough |
||
8994 | test $ac_count -gt 10 && break |
||
8995 | done |
||
8996 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
8997 | esac |
||
8998 | |||
8999 | $ac_path_FGREP_found && break 3 |
||
9000 | done |
||
9001 | done |
||
9002 | done |
||
9003 | IFS=$as_save_IFS |
||
9004 | if test -z "$ac_cv_path_FGREP"; then |
||
9005 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
9006 | fi |
||
9007 | else |
||
9008 | ac_cv_path_FGREP=$FGREP |
||
9009 | fi |
||
9010 | |||
9011 | fi |
||
9012 | fi |
||
9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
||
9014 | $as_echo "$ac_cv_path_FGREP" >&6; } |
||
9015 | FGREP="$ac_cv_path_FGREP" |
||
9016 | |||
9017 | |||
9018 | test -z "$GREP" && GREP=grep |
||
9019 | |||
9020 | |||
9021 | |||
9022 | |||
9023 | |||
9024 | |||
9025 | |||
9026 | |||
9027 | |||
9028 | |||
9029 | |||
9030 | |||
9031 | |||
9032 | |||
9033 | |||
9034 | |||
9035 | |||
9036 | |||
9037 | |||
9038 | # Check whether --with-gnu-ld was given. |
||
9039 | if test "${with_gnu_ld+set}" = set; then : |
||
9040 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
||
9041 | else |
||
9042 | with_gnu_ld=no |
||
9043 | fi |
||
9044 | |||
9045 | ac_prog=ld |
||
9046 | if test yes = "$GCC"; then |
||
9047 | # Check if gcc -print-prog-name=ld gives a path. |
||
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
||
9049 | $as_echo_n "checking for ld used by $CC... " >&6; } |
||
9050 | case $host in |
||
9051 | *-*-mingw*) |
||
9052 | # gcc leaves a trailing carriage return, which upsets mingw |
||
9053 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
9054 | *) |
||
9055 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
9056 | esac |
||
9057 | case $ac_prog in |
||
9058 | # Accept absolute paths. |
||
9059 | [\\/]* | ?:[\\/]*) |
||
9060 | re_direlt='/[^/][^/]*/\.\./' |
||
9061 | # Canonicalize the pathname of ld |
||
9062 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
||
9063 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
||
9064 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
||
9065 | done |
||
9066 | test -z "$LD" && LD=$ac_prog |
||
9067 | ;; |
||
9068 | "") |
||
9069 | # If it fails, then pretend we aren't using GCC. |
||
9070 | ac_prog=ld |
||
9071 | ;; |
||
9072 | *) |
||
9073 | # If it is relative, then search for the first ld in PATH. |
||
9074 | with_gnu_ld=unknown |
||
9075 | ;; |
||
9076 | esac |
||
9077 | elif test yes = "$with_gnu_ld"; then |
||
9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
||
9079 | $as_echo_n "checking for GNU ld... " >&6; } |
||
9080 | else |
||
9081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
||
9082 | $as_echo_n "checking for non-GNU ld... " >&6; } |
||
9083 | fi |
||
9084 | if ${lt_cv_path_LD+:} false; then : |
||
9085 | $as_echo_n "(cached) " >&6 |
||
9086 | else |
||
9087 | if test -z "$LD"; then |
||
9088 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
9089 | for ac_dir in $PATH; do |
||
9090 | IFS=$lt_save_ifs |
||
9091 | test -z "$ac_dir" && ac_dir=. |
||
9092 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
9093 | lt_cv_path_LD=$ac_dir/$ac_prog |
||
9094 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
9095 | # but apparently some variants of GNU ld only accept -v. |
||
9096 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
9097 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
||
9098 | *GNU* | *'with BFD'*) |
||
9099 | test no != "$with_gnu_ld" && break |
||
9100 | ;; |
||
9101 | *) |
||
9102 | test yes != "$with_gnu_ld" && break |
||
9103 | ;; |
||
9104 | esac |
||
9105 | fi |
||
9106 | done |
||
9107 | IFS=$lt_save_ifs |
||
9108 | else |
||
9109 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
||
9110 | fi |
||
9111 | fi |
||
9112 | |||
9113 | LD=$lt_cv_path_LD |
||
9114 | if test -n "$LD"; then |
||
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
||
9116 | $as_echo "$LD" >&6; } |
||
9117 | else |
||
9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
9119 | $as_echo "no" >&6; } |
||
9120 | fi |
||
9121 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
||
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
||
9123 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
||
9124 | if ${lt_cv_prog_gnu_ld+:} false; then : |
||
9125 | $as_echo_n "(cached) " >&6 |
||
9126 | else |
||
9127 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
9128 | case `$LD -v 2>&1 </dev/null` in |
||
9129 | *GNU* | *'with BFD'*) |
||
9130 | lt_cv_prog_gnu_ld=yes |
||
9131 | ;; |
||
9132 | *) |
||
9133 | lt_cv_prog_gnu_ld=no |
||
9134 | ;; |
||
9135 | esac |
||
9136 | fi |
||
9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
||
9138 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
||
9139 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
9140 | |||
9141 | |||
9142 | |||
9143 | |||
9144 | |||
9145 | |||
9146 | |||
9147 | |||
9148 | |||
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
||
9150 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
||
9151 | if ${lt_cv_path_NM+:} false; then : |
||
9152 | $as_echo_n "(cached) " >&6 |
||
9153 | else |
||
9154 | if test -n "$NM"; then |
||
9155 | # Let the user override the test. |
||
9156 | lt_cv_path_NM=$NM |
||
9157 | else |
||
9158 | lt_nm_to_check=${ac_tool_prefix}nm |
||
9159 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
||
9160 | lt_nm_to_check="$lt_nm_to_check nm" |
||
9161 | fi |
||
9162 | for lt_tmp_nm in $lt_nm_to_check; do |
||
9163 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
9164 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
||
9165 | IFS=$lt_save_ifs |
||
9166 | test -z "$ac_dir" && ac_dir=. |
||
9167 | tmp_nm=$ac_dir/$lt_tmp_nm |
||
9168 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
||
9169 | # Check to see if the nm accepts a BSD-compat flag. |
||
9170 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
||
9171 | # nm: unknown option "B" ignored |
||
9172 | # Tru64's nm complains that /dev/null is an invalid object file |
||
9173 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
||
9174 | case $build_os in |
||
9175 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
||
9176 | *) lt_bad_file=/dev/null ;; |
||
9177 | esac |
||
9178 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
||
9179 | *$lt_bad_file* | *'Invalid file or object type'*) |
||
9180 | lt_cv_path_NM="$tmp_nm -B" |
||
9181 | break 2 |
||
9182 | ;; |
||
9183 | *) |
||
9184 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
||
9185 | */dev/null*) |
||
9186 | lt_cv_path_NM="$tmp_nm -p" |
||
9187 | break 2 |
||
9188 | ;; |
||
9189 | *) |
||
9190 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
||
9191 | continue # so that we can try to find one that supports BSD flags |
||
9192 | ;; |
||
9193 | esac |
||
9194 | ;; |
||
9195 | esac |
||
9196 | fi |
||
9197 | done |
||
9198 | IFS=$lt_save_ifs |
||
9199 | done |
||
9200 | : ${lt_cv_path_NM=no} |
||
9201 | fi |
||
9202 | fi |
||
9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
||
9204 | $as_echo "$lt_cv_path_NM" >&6; } |
||
9205 | if test no != "$lt_cv_path_NM"; then |
||
9206 | NM=$lt_cv_path_NM |
||
9207 | else |
||
9208 | # Didn't find any BSD compatible name lister, look for dumpbin. |
||
9209 | if test -n "$DUMPBIN"; then : |
||
9210 | # Let the user override the test. |
||
9211 | else |
||
9212 | if test -n "$ac_tool_prefix"; then |
||
9213 | for ac_prog in dumpbin "link -dump" |
||
9214 | do |
||
9215 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
9216 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
9218 | $as_echo_n "checking for $ac_word... " >&6; } |
||
9219 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
||
9220 | $as_echo_n "(cached) " >&6 |
||
9221 | else |
||
9222 | if test -n "$DUMPBIN"; then |
||
9223 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
||
9224 | else |
||
9225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
9226 | for as_dir in $PATH |
||
9227 | do |
||
9228 | IFS=$as_save_IFS |
||
9229 | test -z "$as_dir" && as_dir=. |
||
9230 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
9231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
9232 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
||
9233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
9234 | break 2 |
||
9235 | fi |
||
9236 | done |
||
9237 | done |
||
9238 | IFS=$as_save_IFS |
||
9239 | |||
9240 | fi |
||
9241 | fi |
||
9242 | DUMPBIN=$ac_cv_prog_DUMPBIN |
||
9243 | if test -n "$DUMPBIN"; then |
||
9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
||
9245 | $as_echo "$DUMPBIN" >&6; } |
||
9246 | else |
||
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
9248 | $as_echo "no" >&6; } |
||
9249 | fi |
||
9250 | |||
9251 | |||
9252 | test -n "$DUMPBIN" && break |
||
9253 | done |
||
9254 | fi |
||
9255 | if test -z "$DUMPBIN"; then |
||
9256 | ac_ct_DUMPBIN=$DUMPBIN |
||
9257 | for ac_prog in dumpbin "link -dump" |
||
9258 | do |
||
9259 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
9260 | set dummy $ac_prog; ac_word=$2 |
||
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
9262 | $as_echo_n "checking for $ac_word... " >&6; } |
||
9263 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
||
9264 | $as_echo_n "(cached) " >&6 |
||
9265 | else |
||
9266 | if test -n "$ac_ct_DUMPBIN"; then |
||
9267 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
||
9268 | else |
||
9269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
9270 | for as_dir in $PATH |
||
9271 | do |
||
9272 | IFS=$as_save_IFS |
||
9273 | test -z "$as_dir" && as_dir=. |
||
9274 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
9275 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
9276 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
||
9277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
9278 | break 2 |
||
9279 | fi |
||
9280 | done |
||
9281 | done |
||
9282 | IFS=$as_save_IFS |
||
9283 | |||
9284 | fi |
||
9285 | fi |
||
9286 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
||
9287 | if test -n "$ac_ct_DUMPBIN"; then |
||
9288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
||
9289 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
||
9290 | else |
||
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
9292 | $as_echo "no" >&6; } |
||
9293 | fi |
||
9294 | |||
9295 | |||
9296 | test -n "$ac_ct_DUMPBIN" && break |
||
9297 | done |
||
9298 | |||
9299 | if test "x$ac_ct_DUMPBIN" = x; then |
||
9300 | DUMPBIN=":" |
||
9301 | else |
||
9302 | case $cross_compiling:$ac_tool_warned in |
||
9303 | yes:) |
||
9304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
9305 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
9306 | ac_tool_warned=yes ;; |
||
9307 | esac |
||
9308 | DUMPBIN=$ac_ct_DUMPBIN |
||
9309 | fi |
||
9310 | fi |
||
9311 | |||
9312 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
||
9313 | *COFF*) |
||
9314 | DUMPBIN="$DUMPBIN -symbols -headers" |
||
9315 | ;; |
||
9316 | *) |
||
9317 | DUMPBIN=: |
||
9318 | ;; |
||
9319 | esac |
||
9320 | fi |
||
9321 | |||
9322 | if test : != "$DUMPBIN"; then |
||
9323 | NM=$DUMPBIN |
||
9324 | fi |
||
9325 | fi |
||
9326 | test -z "$NM" && NM=nm |
||
9327 | |||
9328 | |||
9329 | |||
9330 | |||
9331 | |||
9332 | |||
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
||
9334 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
||
9335 | if ${lt_cv_nm_interface+:} false; then : |
||
9336 | $as_echo_n "(cached) " >&6 |
||
9337 | else |
||
9338 | lt_cv_nm_interface="BSD nm" |
||
9339 | echo "int some_variable = 0;" > conftest.$ac_ext |
||
9340 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
||
9341 | (eval "$ac_compile" 2>conftest.err) |
||
9342 | cat conftest.err >&5 |
||
9343 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
||
9344 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
||
9345 | cat conftest.err >&5 |
||
9346 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
||
9347 | cat conftest.out >&5 |
||
9348 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
||
9349 | lt_cv_nm_interface="MS dumpbin" |
||
9350 | fi |
||
9351 | rm -f conftest* |
||
9352 | fi |
||
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
||
9354 | $as_echo "$lt_cv_nm_interface" >&6; } |
||
9355 | |||
9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
||
9357 | $as_echo_n "checking whether ln -s works... " >&6; } |
||
9358 | LN_S=$as_ln_s |
||
9359 | if test "$LN_S" = "ln -s"; then |
||
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
9361 | $as_echo "yes" >&6; } |
||
9362 | else |
||
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
||
9364 | $as_echo "no, using $LN_S" >&6; } |
||
9365 | fi |
||
9366 | |||
9367 | # find the maximum length of command line arguments |
||
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
||
9369 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
||
9370 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
||
9371 | $as_echo_n "(cached) " >&6 |
||
9372 | else |
||
9373 | i=0 |
||
9374 | teststring=ABCD |
||
9375 | |||
9376 | case $build_os in |
||
9377 | msdosdjgpp*) |
||
9378 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
||
9379 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
||
9380 | # during glob expansion). Even if it were fixed, the result of this |
||
9381 | # check would be larger than it should be. |
||
9382 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
||
9383 | ;; |
||
9384 | |||
9385 | gnu*) |
||
9386 | # Under GNU Hurd, this test is not required because there is |
||
9387 | # no limit to the length of command line arguments. |
||
9388 | # Libtool will interpret -1 as no limit whatsoever |
||
9389 | lt_cv_sys_max_cmd_len=-1; |
||
9390 | ;; |
||
9391 | |||
9392 | cygwin* | mingw* | cegcc*) |
||
9393 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
||
9394 | # about 5 minutes as the teststring grows exponentially. |
||
9395 | # Worse, since 9x/ME are not pre-emptively multitasking, |
||
9396 | # you end up with a "frozen" computer, even though with patience |
||
9397 | # the test eventually succeeds (with a max line length of 256k). |
||
9398 | # Instead, let's just punt: use the minimum linelength reported by |
||
9399 | # all of the supported platforms: 8192 (on NT/2K/XP). |
||
9400 | lt_cv_sys_max_cmd_len=8192; |
||
9401 | ;; |
||
9402 | |||
9403 | mint*) |
||
9404 | # On MiNT this can take a long time and run out of memory. |
||
9405 | lt_cv_sys_max_cmd_len=8192; |
||
9406 | ;; |
||
9407 | |||
9408 | amigaos*) |
||
9409 | # On AmigaOS with pdksh, this test takes hours, literally. |
||
9410 | # So we just punt and use a minimum line length of 8192. |
||
9411 | lt_cv_sys_max_cmd_len=8192; |
||
9412 | ;; |
||
9413 | |||
9414 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
||
9415 | # This has been around since 386BSD, at least. Likely further. |
||
9416 | if test -x /sbin/sysctl; then |
||
9417 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
||
9418 | elif test -x /usr/sbin/sysctl; then |
||
9419 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
||
9420 | else |
||
9421 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
||
9422 | fi |
||
9423 | # And add a safety zone |
||
9424 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
9425 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
9426 | ;; |
||
9427 | |||
9428 | interix*) |
||
9429 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
||
9430 | lt_cv_sys_max_cmd_len=196608 |
||
9431 | ;; |
||
9432 | |||
9433 | os2*) |
||
9434 | # The test takes a long time on OS/2. |
||
9435 | lt_cv_sys_max_cmd_len=8192 |
||
9436 | ;; |
||
9437 | |||
9438 | osf*) |
||
9439 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
||
9440 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
||
9441 | # nice to cause kernel panics so lets avoid the loop below. |
||
9442 | # First set a reasonable default. |
||
9443 | lt_cv_sys_max_cmd_len=16384 |
||
9444 | # |
||
9445 | if test -x /sbin/sysconfig; then |
||
9446 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
||
9447 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
||
9448 | esac |
||
9449 | fi |
||
9450 | ;; |
||
9451 | sco3.2v5*) |
||
9452 | lt_cv_sys_max_cmd_len=102400 |
||
9453 | ;; |
||
9454 | sysv5* | sco5v6* | sysv4.2uw2*) |
||
9455 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
||
9456 | if test -n "$kargmax"; then |
||
9457 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
||
9458 | else |
||
9459 | lt_cv_sys_max_cmd_len=32768 |
||
9460 | fi |
||
9461 | ;; |
||
9462 | *) |
||
9463 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
||
9464 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
||
9465 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
||
9466 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
||
9467 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
||
9468 | else |
||
9469 | # Make teststring a little bigger before we do anything with it. |
||
9470 | # a 1K string should be a reasonable start. |
||
9471 | for i in 1 2 3 4 5 6 7 8; do |
||
9472 | teststring=$teststring$teststring |
||
9473 | done |
||
9474 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
||
9475 | # If test is not a shell built-in, we'll probably end up computing a |
||
9476 | # maximum length that is only half of the actual maximum length, but |
||
9477 | # we can't tell. |
||
9478 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
||
9479 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
||
9480 | test 17 != "$i" # 1/2 MB should be enough |
||
9481 | do |
||
9482 | i=`expr $i + 1` |
||
9483 | teststring=$teststring$teststring |
||
9484 | done |
||
9485 | # Only check the string length outside the loop. |
||
9486 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
||
9487 | teststring= |
||
9488 | # Add a significant safety factor because C++ compilers can tack on |
||
9489 | # massive amounts of additional arguments before passing them to the |
||
9490 | # linker. It appears as though 1/2 is a usable value. |
||
9491 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
||
9492 | fi |
||
9493 | ;; |
||
9494 | esac |
||
9495 | |||
9496 | fi |
||
9497 | |||
9498 | if test -n "$lt_cv_sys_max_cmd_len"; then |
||
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
||
9500 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
||
9501 | else |
||
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
||
9503 | $as_echo "none" >&6; } |
||
9504 | fi |
||
9505 | max_cmd_len=$lt_cv_sys_max_cmd_len |
||
9506 | |||
9507 | |||
9508 | |||
9509 | |||
9510 | |||
9511 | |||
9512 | : ${CP="cp -f"} |
||
9513 | : ${MV="mv -f"} |
||
9514 | : ${RM="rm -f"} |
||
9515 | |||
9516 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
9517 | lt_unset=unset |
||
9518 | else |
||
9519 | lt_unset=false |
||
9520 | fi |
||
9521 | |||
9522 | |||
9523 | |||
9524 | |||
9525 | |||
9526 | # test EBCDIC or ASCII |
||
9527 | case `echo X|tr X '\101'` in |
||
9528 | A) # ASCII based system |
||
9529 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
||
9530 | lt_SP2NL='tr \040 \012' |
||
9531 | lt_NL2SP='tr \015\012 \040\040' |
||
9532 | ;; |
||
9533 | *) # EBCDIC based system |
||
9534 | lt_SP2NL='tr \100 \n' |
||
9535 | lt_NL2SP='tr \r\n \100\100' |
||
9536 | ;; |
||
9537 | esac |
||
9538 | |||
9539 | |||
9540 | |||
9541 | |||
9542 | |||
9543 | |||
9544 | |||
9545 | |||
9546 | |||
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
||
9548 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
||
9549 | if ${lt_cv_to_host_file_cmd+:} false; then : |
||
9550 | $as_echo_n "(cached) " >&6 |
||
9551 | else |
||
9552 | case $host in |
||
9553 | *-*-mingw* ) |
||
9554 | case $build in |
||
9555 | *-*-mingw* ) # actually msys |
||
9556 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
||
9557 | ;; |
||
9558 | *-*-cygwin* ) |
||
9559 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
||
9560 | ;; |
||
9561 | * ) # otherwise, assume *nix |
||
9562 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
||
9563 | ;; |
||
9564 | esac |
||
9565 | ;; |
||
9566 | *-*-cygwin* ) |
||
9567 | case $build in |
||
9568 | *-*-mingw* ) # actually msys |
||
9569 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
||
9570 | ;; |
||
9571 | *-*-cygwin* ) |
||
9572 | lt_cv_to_host_file_cmd=func_convert_file_noop |
||
9573 | ;; |
||
9574 | * ) # otherwise, assume *nix |
||
9575 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
||
9576 | ;; |
||
9577 | esac |
||
9578 | ;; |
||
9579 | * ) # unhandled hosts (and "normal" native builds) |
||
9580 | lt_cv_to_host_file_cmd=func_convert_file_noop |
||
9581 | ;; |
||
9582 | esac |
||
9583 | |||
9584 | fi |
||
9585 | |||
9586 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
||
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
||
9588 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
||
9589 | |||
9590 | |||
9591 | |||
9592 | |||
9593 | |||
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
||
9595 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
||
9596 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
||
9597 | $as_echo_n "(cached) " >&6 |
||
9598 | else |
||
9599 | #assume ordinary cross tools, or native build. |
||
9600 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
||
9601 | case $host in |
||
9602 | *-*-mingw* ) |
||
9603 | case $build in |
||
9604 | *-*-mingw* ) # actually msys |
||
9605 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
||
9606 | ;; |
||
9607 | esac |
||
9608 | ;; |
||
9609 | esac |
||
9610 | |||
9611 | fi |
||
9612 | |||
9613 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
||
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
||
9615 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
||
9616 | |||
9617 | |||
9618 | |||
9619 | |||
9620 | |||
9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
||
9622 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
||
9623 | if ${lt_cv_ld_reload_flag+:} false; then : |
||
9624 | $as_echo_n "(cached) " >&6 |
||
9625 | else |
||
9626 | lt_cv_ld_reload_flag='-r' |
||
9627 | fi |
||
9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
||
9629 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
||
9630 | reload_flag=$lt_cv_ld_reload_flag |
||
9631 | case $reload_flag in |
||
9632 | "" | " "*) ;; |
||
9633 | *) reload_flag=" $reload_flag" ;; |
||
9634 | esac |
||
9635 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
9636 | case $host_os in |
||
9637 | cygwin* | mingw* | pw32* | cegcc*) |
||
9638 | if test yes != "$GCC"; then |
||
9639 | reload_cmds=false |
||
9640 | fi |
||
9641 | ;; |
||
9642 | darwin*) |
||
9643 | if test yes = "$GCC"; then |
||
9644 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
||
9645 | else |
||
9646 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
||
9647 | fi |
||
9648 | ;; |
||
9649 | esac |
||
9650 | |||
9651 | |||
9652 | |||
9653 | |||
9654 | |||
9655 | |||
9656 | |||
9657 | |||
9658 | |||
9659 | if test -n "$ac_tool_prefix"; then |
||
9660 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
||
9661 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
||
9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
9663 | $as_echo_n "checking for $ac_word... " >&6; } |
||
9664 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
||
9665 | $as_echo_n "(cached) " >&6 |
||
9666 | else |
||
9667 | if test -n "$OBJDUMP"; then |
||
9668 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
||
9669 | else |
||
9670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
9671 | for as_dir in $PATH |
||
9672 | do |
||
9673 | IFS=$as_save_IFS |
||
9674 | test -z "$as_dir" && as_dir=. |
||
9675 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
9676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
9677 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
||
9678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
9679 | break 2 |
||
9680 | fi |
||
9681 | done |
||
9682 | done |
||
9683 | IFS=$as_save_IFS |
||
9684 | |||
9685 | fi |
||
9686 | fi |
||
9687 | OBJDUMP=$ac_cv_prog_OBJDUMP |
||
9688 | if test -n "$OBJDUMP"; then |
||
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
||
9690 | $as_echo "$OBJDUMP" >&6; } |
||
9691 | else |
||
9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
9693 | $as_echo "no" >&6; } |
||
9694 | fi |
||
9695 | |||
9696 | |||
9697 | fi |
||
9698 | if test -z "$ac_cv_prog_OBJDUMP"; then |
||
9699 | ac_ct_OBJDUMP=$OBJDUMP |
||
9700 | # Extract the first word of "objdump", so it can be a program name with args. |
||
9701 | set dummy objdump; ac_word=$2 |
||
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
9703 | $as_echo_n "checking for $ac_word... " >&6; } |
||
9704 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
||
9705 | $as_echo_n "(cached) " >&6 |
||
9706 | else |
||
9707 | if test -n "$ac_ct_OBJDUMP"; then |
||
9708 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
||
9709 | else |
||
9710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
9711 | for as_dir in $PATH |
||
9712 | do |
||
9713 | IFS=$as_save_IFS |
||
9714 | test -z "$as_dir" && as_dir=. |
||
9715 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
9716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
9717 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
||
9718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
9719 | break 2 |
||
9720 | fi |
||
9721 | done |
||
9722 | done |
||
9723 | IFS=$as_save_IFS |
||
9724 | |||
9725 | fi |
||
9726 | fi |
||
9727 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
||
9728 | if test -n "$ac_ct_OBJDUMP"; then |
||
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
||
9730 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
||
9731 | else |
||
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
9733 | $as_echo "no" >&6; } |
||
9734 | fi |
||
9735 | |||
9736 | if test "x$ac_ct_OBJDUMP" = x; then |
||
9737 | OBJDUMP="false" |
||
9738 | else |
||
9739 | case $cross_compiling:$ac_tool_warned in |
||
9740 | yes:) |
||
9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
9742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
9743 | ac_tool_warned=yes ;; |
||
9744 | esac |
||
9745 | OBJDUMP=$ac_ct_OBJDUMP |
||
9746 | fi |
||
9747 | else |
||
9748 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
||
9749 | fi |
||
9750 | |||
9751 | test -z "$OBJDUMP" && OBJDUMP=objdump |
||
9752 | |||
9753 | |||
9754 | |||
9755 | |||
9756 | |||
9757 | |||
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
||
9759 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
||
9760 | if ${lt_cv_deplibs_check_method+:} false; then : |
||
9761 | $as_echo_n "(cached) " >&6 |
||
9762 | else |
||
9763 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
||
9764 | lt_cv_file_magic_test_file= |
||
9765 | lt_cv_deplibs_check_method='unknown' |
||
9766 | # Need to set the preceding variable on all platforms that support |
||
9767 | # interlibrary dependencies. |
||
9768 | # 'none' -- dependencies not supported. |
||
9769 | # 'unknown' -- same as none, but documents that we really don't know. |
||
9770 | # 'pass_all' -- all dependencies passed with no checks. |
||
9771 | # 'test_compile' -- check by making test program. |
||
9772 | # 'file_magic [[regex]]' -- check by looking for files in library path |
||
9773 | # that responds to the $file_magic_cmd with a given extended regex. |
||
9774 | # If you have 'file' or equivalent on your system and you're not sure |
||
9775 | # whether 'pass_all' will *always* work, you probably want this one. |
||
9776 | |||
9777 | case $host_os in |
||
9778 | aix[4-9]*) |
||
9779 | lt_cv_deplibs_check_method=pass_all |
||
9780 | ;; |
||
9781 | |||
9782 | beos*) |
||
9783 | lt_cv_deplibs_check_method=pass_all |
||
9784 | ;; |
||
9785 | |||
9786 | bsdi[45]*) |
||
9787 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
||
9788 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
||
9789 | lt_cv_file_magic_test_file=/shlib/libc.so |
||
9790 | ;; |
||
9791 | |||
9792 | cygwin*) |
||
9793 | # func_win32_libid is a shell function defined in ltmain.sh |
||
9794 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
9795 | lt_cv_file_magic_cmd='func_win32_libid' |
||
9796 | ;; |
||
9797 | |||
9798 | mingw* | pw32*) |
||
9799 | # Base MSYS/MinGW do not provide the 'file' command needed by |
||
9800 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
||
9801 | # unless we find 'file', for example because we are cross-compiling. |
||
9802 | if ( file / ) >/dev/null 2>&1; then |
||
9803 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
||
9804 | lt_cv_file_magic_cmd='func_win32_libid' |
||
9805 | else |
||
9806 | # Keep this pattern in sync with the one in func_win32_libid. |
||
9807 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
||
9808 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
9809 | fi |
||
9810 | ;; |
||
9811 | |||
9812 | cegcc*) |
||
9813 | # use the weaker test based on 'objdump'. See mingw*. |
||
9814 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
||
9815 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
||
9816 | ;; |
||
9817 | |||
9818 | darwin* | rhapsody*) |
||
9819 | lt_cv_deplibs_check_method=pass_all |
||
9820 | ;; |
||
9821 | |||
9822 | freebsd* | dragonfly*) |
||
9823 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
||
9824 | case $host_cpu in |
||
9825 | i*86 ) |
||
9826 | # Not sure whether the presence of OpenBSD here was a mistake. |
||
9827 | # Let's accept both of them until this is cleared up. |
||
9828 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
||
9829 | lt_cv_file_magic_cmd=/usr/bin/file |
||
9830 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
||
9831 | ;; |
||
9832 | esac |
||
9833 | else |
||
9834 | lt_cv_deplibs_check_method=pass_all |
||
9835 | fi |
||
9836 | ;; |
||
9837 | |||
9838 | haiku*) |
||
9839 | lt_cv_deplibs_check_method=pass_all |
||
9840 | ;; |
||
9841 | |||
9842 | hpux10.20* | hpux11*) |
||
9843 | lt_cv_file_magic_cmd=/usr/bin/file |
||
9844 | case $host_cpu in |
||
9845 | ia64*) |
||
9846 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
||
9847 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
||
9848 | ;; |
||
9849 | hppa*64*) |
||
9850 | 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]' |
||
9851 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
||
9852 | ;; |
||
9853 | *) |
||
9854 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
||
9855 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
||
9856 | ;; |
||
9857 | esac |
||
9858 | ;; |
||
9859 | |||
9860 | interix[3-9]*) |
||
9861 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
||
9862 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
||
9863 | ;; |
||
9864 | |||
9865 | irix5* | irix6* | nonstopux*) |
||
9866 | case $LD in |
||
9867 | *-32|*"-32 ") libmagic=32-bit;; |
||
9868 | *-n32|*"-n32 ") libmagic=N32;; |
||
9869 | *-64|*"-64 ") libmagic=64-bit;; |
||
9870 | *) libmagic=never-match;; |
||
9871 | esac |
||
9872 | lt_cv_deplibs_check_method=pass_all |
||
9873 | ;; |
||
9874 | |||
9875 | # This must be glibc/ELF. |
||
9876 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
9877 | lt_cv_deplibs_check_method=pass_all |
||
9878 | ;; |
||
9879 | |||
9880 | netbsd* | netbsdelf*-gnu) |
||
9881 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
||
9882 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
9883 | else |
||
9884 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
||
9885 | fi |
||
9886 | ;; |
||
9887 | |||
9888 | newos6*) |
||
9889 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
||
9890 | lt_cv_file_magic_cmd=/usr/bin/file |
||
9891 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
||
9892 | ;; |
||
9893 | |||
9894 | *nto* | *qnx*) |
||
9895 | lt_cv_deplibs_check_method=pass_all |
||
9896 | ;; |
||
9897 | |||
9898 | openbsd* | bitrig*) |
||
9899 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
9900 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
||
9901 | else |
||
9902 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
||
9903 | fi |
||
9904 | ;; |
||
9905 | |||
9906 | osf3* | osf4* | osf5*) |
||
9907 | lt_cv_deplibs_check_method=pass_all |
||
9908 | ;; |
||
9909 | |||
9910 | rdos*) |
||
9911 | lt_cv_deplibs_check_method=pass_all |
||
9912 | ;; |
||
9913 | |||
9914 | solaris*) |
||
9915 | lt_cv_deplibs_check_method=pass_all |
||
9916 | ;; |
||
9917 | |||
9918 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
9919 | lt_cv_deplibs_check_method=pass_all |
||
9920 | ;; |
||
9921 | |||
9922 | sysv4 | sysv4.3*) |
||
9923 | case $host_vendor in |
||
9924 | motorola) |
||
9925 | 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]' |
||
9926 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
||
9927 | ;; |
||
9928 | ncr) |
||
9929 | lt_cv_deplibs_check_method=pass_all |
||
9930 | ;; |
||
9931 | sequent) |
||
9932 | lt_cv_file_magic_cmd='/bin/file' |
||
9933 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
||
9934 | ;; |
||
9935 | sni) |
||
9936 | lt_cv_file_magic_cmd='/bin/file' |
||
9937 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
||
9938 | lt_cv_file_magic_test_file=/lib/libc.so |
||
9939 | ;; |
||
9940 | siemens) |
||
9941 | lt_cv_deplibs_check_method=pass_all |
||
9942 | ;; |
||
9943 | pc) |
||
9944 | lt_cv_deplibs_check_method=pass_all |
||
9945 | ;; |
||
9946 | esac |
||
9947 | ;; |
||
9948 | |||
9949 | tpf*) |
||
9950 | lt_cv_deplibs_check_method=pass_all |
||
9951 | ;; |
||
9952 | os2*) |
||
9953 | lt_cv_deplibs_check_method=pass_all |
||
9954 | ;; |
||
9955 | esac |
||
9956 | |||
9957 | fi |
||
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
||
9959 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
||
9960 | |||
9961 | file_magic_glob= |
||
9962 | want_nocaseglob=no |
||
9963 | if test "$build" = "$host"; then |
||
9964 | case $host_os in |
||
9965 | mingw* | pw32*) |
||
9966 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
||
9967 | want_nocaseglob=yes |
||
9968 | else |
||
9969 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
||
9970 | fi |
||
9971 | ;; |
||
9972 | esac |
||
9973 | fi |
||
9974 | |||
9975 | file_magic_cmd=$lt_cv_file_magic_cmd |
||
9976 | deplibs_check_method=$lt_cv_deplibs_check_method |
||
9977 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
||
9978 | |||
9979 | |||
9980 | |||
9981 | |||
9982 | |||
9983 | |||
9984 | |||
9985 | |||
9986 | |||
9987 | |||
9988 | |||
9989 | |||
9990 | |||
9991 | |||
9992 | |||
9993 | |||
9994 | |||
9995 | |||
9996 | |||
9997 | |||
9998 | |||
9999 | |||
10000 | if test -n "$ac_tool_prefix"; then |
||
10001 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
||
10002 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
||
10003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10004 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10005 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
||
10006 | $as_echo_n "(cached) " >&6 |
||
10007 | else |
||
10008 | if test -n "$DLLTOOL"; then |
||
10009 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
||
10010 | else |
||
10011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10012 | for as_dir in $PATH |
||
10013 | do |
||
10014 | IFS=$as_save_IFS |
||
10015 | test -z "$as_dir" && as_dir=. |
||
10016 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10018 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
||
10019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10020 | break 2 |
||
10021 | fi |
||
10022 | done |
||
10023 | done |
||
10024 | IFS=$as_save_IFS |
||
10025 | |||
10026 | fi |
||
10027 | fi |
||
10028 | DLLTOOL=$ac_cv_prog_DLLTOOL |
||
10029 | if test -n "$DLLTOOL"; then |
||
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
||
10031 | $as_echo "$DLLTOOL" >&6; } |
||
10032 | else |
||
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10034 | $as_echo "no" >&6; } |
||
10035 | fi |
||
10036 | |||
10037 | |||
10038 | fi |
||
10039 | if test -z "$ac_cv_prog_DLLTOOL"; then |
||
10040 | ac_ct_DLLTOOL=$DLLTOOL |
||
10041 | # Extract the first word of "dlltool", so it can be a program name with args. |
||
10042 | set dummy dlltool; ac_word=$2 |
||
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10044 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10045 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
||
10046 | $as_echo_n "(cached) " >&6 |
||
10047 | else |
||
10048 | if test -n "$ac_ct_DLLTOOL"; then |
||
10049 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
||
10050 | else |
||
10051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10052 | for as_dir in $PATH |
||
10053 | do |
||
10054 | IFS=$as_save_IFS |
||
10055 | test -z "$as_dir" && as_dir=. |
||
10056 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10058 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
||
10059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10060 | break 2 |
||
10061 | fi |
||
10062 | done |
||
10063 | done |
||
10064 | IFS=$as_save_IFS |
||
10065 | |||
10066 | fi |
||
10067 | fi |
||
10068 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
||
10069 | if test -n "$ac_ct_DLLTOOL"; then |
||
10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
||
10071 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
||
10072 | else |
||
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10074 | $as_echo "no" >&6; } |
||
10075 | fi |
||
10076 | |||
10077 | if test "x$ac_ct_DLLTOOL" = x; then |
||
10078 | DLLTOOL="false" |
||
10079 | else |
||
10080 | case $cross_compiling:$ac_tool_warned in |
||
10081 | yes:) |
||
10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
10083 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
10084 | ac_tool_warned=yes ;; |
||
10085 | esac |
||
10086 | DLLTOOL=$ac_ct_DLLTOOL |
||
10087 | fi |
||
10088 | else |
||
10089 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
||
10090 | fi |
||
10091 | |||
10092 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
||
10093 | |||
10094 | |||
10095 | |||
10096 | |||
10097 | |||
10098 | |||
10099 | |||
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
||
10101 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
||
10102 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
||
10103 | $as_echo_n "(cached) " >&6 |
||
10104 | else |
||
10105 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
||
10106 | |||
10107 | case $host_os in |
||
10108 | cygwin* | mingw* | pw32* | cegcc*) |
||
10109 | # two different shell functions defined in ltmain.sh; |
||
10110 | # decide which one to use based on capabilities of $DLLTOOL |
||
10111 | case `$DLLTOOL --help 2>&1` in |
||
10112 | *--identify-strict*) |
||
10113 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
||
10114 | ;; |
||
10115 | *) |
||
10116 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
||
10117 | ;; |
||
10118 | esac |
||
10119 | ;; |
||
10120 | *) |
||
10121 | # fallback: assume linklib IS sharedlib |
||
10122 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
||
10123 | ;; |
||
10124 | esac |
||
10125 | |||
10126 | fi |
||
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
||
10128 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
||
10129 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
||
10130 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
||
10131 | |||
10132 | |||
10133 | |||
10134 | |||
10135 | |||
10136 | |||
10137 | |||
10138 | if test -n "$ac_tool_prefix"; then |
||
10139 | for ac_prog in ar |
||
10140 | do |
||
10141 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
10142 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
10143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10144 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10145 | if ${ac_cv_prog_AR+:} false; then : |
||
10146 | $as_echo_n "(cached) " >&6 |
||
10147 | else |
||
10148 | if test -n "$AR"; then |
||
10149 | ac_cv_prog_AR="$AR" # Let the user override the test. |
||
10150 | else |
||
10151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10152 | for as_dir in $PATH |
||
10153 | do |
||
10154 | IFS=$as_save_IFS |
||
10155 | test -z "$as_dir" && as_dir=. |
||
10156 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10158 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
||
10159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10160 | break 2 |
||
10161 | fi |
||
10162 | done |
||
10163 | done |
||
10164 | IFS=$as_save_IFS |
||
10165 | |||
10166 | fi |
||
10167 | fi |
||
10168 | AR=$ac_cv_prog_AR |
||
10169 | if test -n "$AR"; then |
||
10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
||
10171 | $as_echo "$AR" >&6; } |
||
10172 | else |
||
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10174 | $as_echo "no" >&6; } |
||
10175 | fi |
||
10176 | |||
10177 | |||
10178 | test -n "$AR" && break |
||
10179 | done |
||
10180 | fi |
||
10181 | if test -z "$AR"; then |
||
10182 | ac_ct_AR=$AR |
||
10183 | for ac_prog in ar |
||
10184 | do |
||
10185 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
10186 | set dummy $ac_prog; ac_word=$2 |
||
10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10188 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10189 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
||
10190 | $as_echo_n "(cached) " >&6 |
||
10191 | else |
||
10192 | if test -n "$ac_ct_AR"; then |
||
10193 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
||
10194 | else |
||
10195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10196 | for as_dir in $PATH |
||
10197 | do |
||
10198 | IFS=$as_save_IFS |
||
10199 | test -z "$as_dir" && as_dir=. |
||
10200 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10202 | ac_cv_prog_ac_ct_AR="$ac_prog" |
||
10203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10204 | break 2 |
||
10205 | fi |
||
10206 | done |
||
10207 | done |
||
10208 | IFS=$as_save_IFS |
||
10209 | |||
10210 | fi |
||
10211 | fi |
||
10212 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
||
10213 | if test -n "$ac_ct_AR"; then |
||
10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
||
10215 | $as_echo "$ac_ct_AR" >&6; } |
||
10216 | else |
||
10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10218 | $as_echo "no" >&6; } |
||
10219 | fi |
||
10220 | |||
10221 | |||
10222 | test -n "$ac_ct_AR" && break |
||
10223 | done |
||
10224 | |||
10225 | if test "x$ac_ct_AR" = x; then |
||
10226 | AR="false" |
||
10227 | else |
||
10228 | case $cross_compiling:$ac_tool_warned in |
||
10229 | yes:) |
||
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
10231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
10232 | ac_tool_warned=yes ;; |
||
10233 | esac |
||
10234 | AR=$ac_ct_AR |
||
10235 | fi |
||
10236 | fi |
||
10237 | |||
10238 | : ${AR=ar} |
||
10239 | : ${AR_FLAGS=cru} |
||
10240 | |||
10241 | |||
10242 | |||
10243 | |||
10244 | |||
10245 | |||
10246 | |||
10247 | |||
10248 | |||
10249 | |||
10250 | |||
10251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
||
10252 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
||
10253 | if ${lt_cv_ar_at_file+:} false; then : |
||
10254 | $as_echo_n "(cached) " >&6 |
||
10255 | else |
||
10256 | lt_cv_ar_at_file=no |
||
10257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
10258 | /* end confdefs.h. */ |
||
10259 | |||
10260 | int |
||
10261 | main () |
||
10262 | { |
||
10263 | |||
10264 | ; |
||
10265 | return 0; |
||
10266 | } |
||
10267 | _ACEOF |
||
10268 | if ac_fn_c_try_compile "$LINENO"; then : |
||
10269 | echo conftest.$ac_objext > conftest.lst |
||
10270 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
||
10271 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
||
10272 | (eval $lt_ar_try) 2>&5 |
||
10273 | ac_status=$? |
||
10274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10275 | test $ac_status = 0; } |
||
10276 | if test 0 -eq "$ac_status"; then |
||
10277 | # Ensure the archiver fails upon bogus file names. |
||
10278 | rm -f conftest.$ac_objext libconftest.a |
||
10279 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
||
10280 | (eval $lt_ar_try) 2>&5 |
||
10281 | ac_status=$? |
||
10282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10283 | test $ac_status = 0; } |
||
10284 | if test 0 -ne "$ac_status"; then |
||
10285 | lt_cv_ar_at_file=@ |
||
10286 | fi |
||
10287 | fi |
||
10288 | rm -f conftest.* libconftest.a |
||
10289 | |||
10290 | fi |
||
10291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
10292 | |||
10293 | fi |
||
10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
||
10295 | $as_echo "$lt_cv_ar_at_file" >&6; } |
||
10296 | |||
10297 | if test no = "$lt_cv_ar_at_file"; then |
||
10298 | archiver_list_spec= |
||
10299 | else |
||
10300 | archiver_list_spec=$lt_cv_ar_at_file |
||
10301 | fi |
||
10302 | |||
10303 | |||
10304 | |||
10305 | |||
10306 | |||
10307 | |||
10308 | |||
10309 | if test -n "$ac_tool_prefix"; then |
||
10310 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
||
10311 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
||
10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10313 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10314 | if ${ac_cv_prog_STRIP+:} false; then : |
||
10315 | $as_echo_n "(cached) " >&6 |
||
10316 | else |
||
10317 | if test -n "$STRIP"; then |
||
10318 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
10319 | else |
||
10320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10321 | for as_dir in $PATH |
||
10322 | do |
||
10323 | IFS=$as_save_IFS |
||
10324 | test -z "$as_dir" && as_dir=. |
||
10325 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10327 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
||
10328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10329 | break 2 |
||
10330 | fi |
||
10331 | done |
||
10332 | done |
||
10333 | IFS=$as_save_IFS |
||
10334 | |||
10335 | fi |
||
10336 | fi |
||
10337 | STRIP=$ac_cv_prog_STRIP |
||
10338 | if test -n "$STRIP"; then |
||
10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
||
10340 | $as_echo "$STRIP" >&6; } |
||
10341 | else |
||
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10343 | $as_echo "no" >&6; } |
||
10344 | fi |
||
10345 | |||
10346 | |||
10347 | fi |
||
10348 | if test -z "$ac_cv_prog_STRIP"; then |
||
10349 | ac_ct_STRIP=$STRIP |
||
10350 | # Extract the first word of "strip", so it can be a program name with args. |
||
10351 | set dummy strip; ac_word=$2 |
||
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10353 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10354 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
||
10355 | $as_echo_n "(cached) " >&6 |
||
10356 | else |
||
10357 | if test -n "$ac_ct_STRIP"; then |
||
10358 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
||
10359 | else |
||
10360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10361 | for as_dir in $PATH |
||
10362 | do |
||
10363 | IFS=$as_save_IFS |
||
10364 | test -z "$as_dir" && as_dir=. |
||
10365 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10367 | ac_cv_prog_ac_ct_STRIP="strip" |
||
10368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10369 | break 2 |
||
10370 | fi |
||
10371 | done |
||
10372 | done |
||
10373 | IFS=$as_save_IFS |
||
10374 | |||
10375 | fi |
||
10376 | fi |
||
10377 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
||
10378 | if test -n "$ac_ct_STRIP"; then |
||
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
||
10380 | $as_echo "$ac_ct_STRIP" >&6; } |
||
10381 | else |
||
10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10383 | $as_echo "no" >&6; } |
||
10384 | fi |
||
10385 | |||
10386 | if test "x$ac_ct_STRIP" = x; then |
||
10387 | STRIP=":" |
||
10388 | else |
||
10389 | case $cross_compiling:$ac_tool_warned in |
||
10390 | yes:) |
||
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
10392 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
10393 | ac_tool_warned=yes ;; |
||
10394 | esac |
||
10395 | STRIP=$ac_ct_STRIP |
||
10396 | fi |
||
10397 | else |
||
10398 | STRIP="$ac_cv_prog_STRIP" |
||
10399 | fi |
||
10400 | |||
10401 | test -z "$STRIP" && STRIP=: |
||
10402 | |||
10403 | |||
10404 | |||
10405 | |||
10406 | |||
10407 | |||
10408 | if test -n "$ac_tool_prefix"; then |
||
10409 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
10410 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10412 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10413 | if ${ac_cv_prog_RANLIB+:} false; then : |
||
10414 | $as_echo_n "(cached) " >&6 |
||
10415 | else |
||
10416 | if test -n "$RANLIB"; then |
||
10417 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
10418 | else |
||
10419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10420 | for as_dir in $PATH |
||
10421 | do |
||
10422 | IFS=$as_save_IFS |
||
10423 | test -z "$as_dir" && as_dir=. |
||
10424 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10426 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
10427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10428 | break 2 |
||
10429 | fi |
||
10430 | done |
||
10431 | done |
||
10432 | IFS=$as_save_IFS |
||
10433 | |||
10434 | fi |
||
10435 | fi |
||
10436 | RANLIB=$ac_cv_prog_RANLIB |
||
10437 | if test -n "$RANLIB"; then |
||
10438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
||
10439 | $as_echo "$RANLIB" >&6; } |
||
10440 | else |
||
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10442 | $as_echo "no" >&6; } |
||
10443 | fi |
||
10444 | |||
10445 | |||
10446 | fi |
||
10447 | if test -z "$ac_cv_prog_RANLIB"; then |
||
10448 | ac_ct_RANLIB=$RANLIB |
||
10449 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
10450 | set dummy ranlib; ac_word=$2 |
||
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
10452 | $as_echo_n "checking for $ac_word... " >&6; } |
||
10453 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
||
10454 | $as_echo_n "(cached) " >&6 |
||
10455 | else |
||
10456 | if test -n "$ac_ct_RANLIB"; then |
||
10457 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
10458 | else |
||
10459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10460 | for as_dir in $PATH |
||
10461 | do |
||
10462 | IFS=$as_save_IFS |
||
10463 | test -z "$as_dir" && as_dir=. |
||
10464 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
10466 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
10467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
10468 | break 2 |
||
10469 | fi |
||
10470 | done |
||
10471 | done |
||
10472 | IFS=$as_save_IFS |
||
10473 | |||
10474 | fi |
||
10475 | fi |
||
10476 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
10477 | if test -n "$ac_ct_RANLIB"; then |
||
10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
||
10479 | $as_echo "$ac_ct_RANLIB" >&6; } |
||
10480 | else |
||
10481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
10482 | $as_echo "no" >&6; } |
||
10483 | fi |
||
10484 | |||
10485 | if test "x$ac_ct_RANLIB" = x; then |
||
10486 | RANLIB=":" |
||
10487 | else |
||
10488 | case $cross_compiling:$ac_tool_warned in |
||
10489 | yes:) |
||
10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
10491 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
10492 | ac_tool_warned=yes ;; |
||
10493 | esac |
||
10494 | RANLIB=$ac_ct_RANLIB |
||
10495 | fi |
||
10496 | else |
||
10497 | RANLIB="$ac_cv_prog_RANLIB" |
||
10498 | fi |
||
10499 | |||
10500 | test -z "$RANLIB" && RANLIB=: |
||
10501 | |||
10502 | |||
10503 | |||
10504 | |||
10505 | |||
10506 | |||
10507 | # Determine commands to create old-style static archives. |
||
10508 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
||
10509 | old_postinstall_cmds='chmod 644 $oldlib' |
||
10510 | old_postuninstall_cmds= |
||
10511 | |||
10512 | if test -n "$RANLIB"; then |
||
10513 | case $host_os in |
||
10514 | bitrig* | openbsd*) |
||
10515 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
||
10516 | ;; |
||
10517 | *) |
||
10518 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
||
10519 | ;; |
||
10520 | esac |
||
10521 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
||
10522 | fi |
||
10523 | |||
10524 | case $host_os in |
||
10525 | darwin*) |
||
10526 | lock_old_archive_extraction=yes ;; |
||
10527 | *) |
||
10528 | lock_old_archive_extraction=no ;; |
||
10529 | esac |
||
10530 | |||
10531 | |||
10532 | |||
10533 | |||
10534 | |||
10535 | |||
10536 | |||
10537 | |||
10538 | |||
10539 | |||
10540 | |||
10541 | |||
10542 | |||
10543 | |||
10544 | |||
10545 | |||
10546 | |||
10547 | |||
10548 | |||
10549 | |||
10550 | |||
10551 | |||
10552 | |||
10553 | |||
10554 | |||
10555 | |||
10556 | |||
10557 | |||
10558 | |||
10559 | |||
10560 | |||
10561 | |||
10562 | |||
10563 | |||
10564 | |||
10565 | |||
10566 | |||
10567 | |||
10568 | |||
10569 | # If no C compiler was specified, use CC. |
||
10570 | LTCC=${LTCC-"$CC"} |
||
10571 | |||
10572 | # If no C compiler flags were specified, use CFLAGS. |
||
10573 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
10574 | |||
10575 | # Allow CC to be a program name with arguments. |
||
10576 | compiler=$CC |
||
10577 | |||
10578 | |||
10579 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
||
10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
||
10581 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
||
10582 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
||
10583 | $as_echo_n "(cached) " >&6 |
||
10584 | else |
||
10585 | |||
10586 | # These are sane defaults that work on at least a few old systems. |
||
10587 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
||
10588 | |||
10589 | # Character class describing NM global symbol codes. |
||
10590 | symcode='[BCDEGRST]' |
||
10591 | |||
10592 | # Regexp to match symbols that can be accessed directly from C. |
||
10593 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
||
10594 | |||
10595 | # Define system-specific variables. |
||
10596 | case $host_os in |
||
10597 | aix*) |
||
10598 | symcode='[BCDT]' |
||
10599 | ;; |
||
10600 | cygwin* | mingw* | pw32* | cegcc*) |
||
10601 | symcode='[ABCDGISTW]' |
||
10602 | ;; |
||
10603 | hpux*) |
||
10604 | if test ia64 = "$host_cpu"; then |
||
10605 | symcode='[ABCDEGRST]' |
||
10606 | fi |
||
10607 | ;; |
||
10608 | irix* | nonstopux*) |
||
10609 | symcode='[BCDEGRST]' |
||
10610 | ;; |
||
10611 | osf*) |
||
10612 | symcode='[BCDEGQRST]' |
||
10613 | ;; |
||
10614 | solaris*) |
||
10615 | symcode='[BDRT]' |
||
10616 | ;; |
||
10617 | sco3.2v5*) |
||
10618 | symcode='[DT]' |
||
10619 | ;; |
||
10620 | sysv4.2uw2*) |
||
10621 | symcode='[DT]' |
||
10622 | ;; |
||
10623 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
||
10624 | symcode='[ABDT]' |
||
10625 | ;; |
||
10626 | sysv4) |
||
10627 | symcode='[DFNSTU]' |
||
10628 | ;; |
||
10629 | esac |
||
10630 | |||
10631 | # If we're using GNU nm, then use its standard symbol codes. |
||
10632 | case `$NM -V 2>&1` in |
||
10633 | *GNU* | *'with BFD'*) |
||
10634 | symcode='[ABCDGIRSTW]' ;; |
||
10635 | esac |
||
10636 | |||
10637 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
10638 | # Gets list of data symbols to import. |
||
10639 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
||
10640 | # Adjust the below global symbol transforms to fixup imported variables. |
||
10641 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
||
10642 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
||
10643 | lt_c_name_lib_hook="\ |
||
10644 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
||
10645 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
||
10646 | else |
||
10647 | # Disable hooks by default. |
||
10648 | lt_cv_sys_global_symbol_to_import= |
||
10649 | lt_cdecl_hook= |
||
10650 | lt_c_name_hook= |
||
10651 | lt_c_name_lib_hook= |
||
10652 | fi |
||
10653 | |||
10654 | # Transform an extracted symbol line into a proper C declaration. |
||
10655 | # Some systems (esp. on ia64) link data and code symbols differently, |
||
10656 | # so use this general approach. |
||
10657 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
||
10658 | $lt_cdecl_hook\ |
||
10659 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
||
10660 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
||
10661 | |||
10662 | # Transform an extracted symbol line into symbol name and symbol address |
||
10663 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
||
10664 | $lt_c_name_hook\ |
||
10665 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
||
10666 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
||
10667 | |||
10668 | # Transform an extracted symbol line into symbol name with lib prefix and |
||
10669 | # symbol address. |
||
10670 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
||
10671 | $lt_c_name_lib_hook\ |
||
10672 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
||
10673 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
||
10674 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
||
10675 | |||
10676 | # Handle CRLF in mingw tool chain |
||
10677 | opt_cr= |
||
10678 | case $build_os in |
||
10679 | mingw*) |
||
10680 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
||
10681 | ;; |
||
10682 | esac |
||
10683 | |||
10684 | # Try without a prefix underscore, then with it. |
||
10685 | for ac_symprfx in "" "_"; do |
||
10686 | |||
10687 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
||
10688 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
||
10689 | |||
10690 | # Write the raw and C identifiers. |
||
10691 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
10692 | # Fake it for dumpbin and say T for any non-static function, |
||
10693 | # D for any global variable and I for any imported variable. |
||
10694 | # Also find C++ and __fastcall symbols from MSVC++, |
||
10695 | # which start with @ or ?. |
||
10696 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
||
10697 | " {last_section=section; section=\$ 3};"\ |
||
10698 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
||
10699 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
||
10700 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
||
10701 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
||
10702 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
||
10703 | " \$ 0!~/External *\|/{next};"\ |
||
10704 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
||
10705 | " {if(hide[section]) next};"\ |
||
10706 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
||
10707 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
||
10708 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
||
10709 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
||
10710 | " ' prfx=^$ac_symprfx" |
||
10711 | else |
||
10712 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
||
10713 | fi |
||
10714 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
||
10715 | |||
10716 | # Check to see that the pipe works correctly. |
||
10717 | pipe_works=no |
||
10718 | |||
10719 | rm -f conftest* |
||
10720 | cat > conftest.$ac_ext <<_LT_EOF |
||
10721 | #ifdef __cplusplus |
||
10722 | extern "C" { |
||
10723 | #endif |
||
10724 | char nm_test_var; |
||
10725 | void nm_test_func(void); |
||
10726 | void nm_test_func(void){} |
||
10727 | #ifdef __cplusplus |
||
10728 | } |
||
10729 | #endif |
||
10730 | int main(){nm_test_var='a';nm_test_func();return(0);} |
||
10731 | _LT_EOF |
||
10732 | |||
10733 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
10734 | (eval $ac_compile) 2>&5 |
||
10735 | ac_status=$? |
||
10736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10737 | test $ac_status = 0; }; then |
||
10738 | # Now try to grab the symbols. |
||
10739 | nlist=conftest.nm |
||
10740 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
||
10741 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
||
10742 | ac_status=$? |
||
10743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10744 | test $ac_status = 0; } && test -s "$nlist"; then |
||
10745 | # Try sorting and uniquifying the output. |
||
10746 | if sort "$nlist" | uniq > "$nlist"T; then |
||
10747 | mv -f "$nlist"T "$nlist" |
||
10748 | else |
||
10749 | rm -f "$nlist"T |
||
10750 | fi |
||
10751 | |||
10752 | # Make sure that we snagged all the symbols we need. |
||
10753 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
||
10754 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
||
10755 | cat <<_LT_EOF > conftest.$ac_ext |
||
10756 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
||
10757 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
||
10758 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
||
10759 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
||
10760 | # define LT_DLSYM_CONST |
||
10761 | #elif defined __osf__ |
||
10762 | /* This system does not cope well with relocations in const data. */ |
||
10763 | # define LT_DLSYM_CONST |
||
10764 | #else |
||
10765 | # define LT_DLSYM_CONST const |
||
10766 | #endif |
||
10767 | |||
10768 | #ifdef __cplusplus |
||
10769 | extern "C" { |
||
10770 | #endif |
||
10771 | |||
10772 | _LT_EOF |
||
10773 | # Now generate the symbol file. |
||
10774 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
||
10775 | |||
10776 | cat <<_LT_EOF >> conftest.$ac_ext |
||
10777 | |||
10778 | /* The mapping between symbol names and symbols. */ |
||
10779 | LT_DLSYM_CONST struct { |
||
10780 | const char *name; |
||
10781 | void *address; |
||
10782 | } |
||
10783 | lt__PROGRAM__LTX_preloaded_symbols[] = |
||
10784 | { |
||
10785 | { "@PROGRAM@", (void *) 0 }, |
||
10786 | _LT_EOF |
||
10787 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
||
10788 | cat <<\_LT_EOF >> conftest.$ac_ext |
||
10789 | {0, (void *) 0} |
||
10790 | }; |
||
10791 | |||
10792 | /* This works around a problem in FreeBSD linker */ |
||
10793 | #ifdef FREEBSD_WORKAROUND |
||
10794 | static const void *lt_preloaded_setup() { |
||
10795 | return lt__PROGRAM__LTX_preloaded_symbols; |
||
10796 | } |
||
10797 | #endif |
||
10798 | |||
10799 | #ifdef __cplusplus |
||
10800 | } |
||
10801 | #endif |
||
10802 | _LT_EOF |
||
10803 | # Now try linking the two files. |
||
10804 | mv conftest.$ac_objext conftstm.$ac_objext |
||
10805 | lt_globsym_save_LIBS=$LIBS |
||
10806 | lt_globsym_save_CFLAGS=$CFLAGS |
||
10807 | LIBS=conftstm.$ac_objext |
||
10808 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
||
10809 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
||
10810 | (eval $ac_link) 2>&5 |
||
10811 | ac_status=$? |
||
10812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
10813 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
||
10814 | pipe_works=yes |
||
10815 | fi |
||
10816 | LIBS=$lt_globsym_save_LIBS |
||
10817 | CFLAGS=$lt_globsym_save_CFLAGS |
||
10818 | else |
||
10819 | echo "cannot find nm_test_func in $nlist" >&5 |
||
10820 | fi |
||
10821 | else |
||
10822 | echo "cannot find nm_test_var in $nlist" >&5 |
||
10823 | fi |
||
10824 | else |
||
10825 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
||
10826 | fi |
||
10827 | else |
||
10828 | echo "$progname: failed program was:" >&5 |
||
10829 | cat conftest.$ac_ext >&5 |
||
10830 | fi |
||
10831 | rm -rf conftest* conftst* |
||
10832 | |||
10833 | # Do not use the global_symbol_pipe unless it works. |
||
10834 | if test yes = "$pipe_works"; then |
||
10835 | break |
||
10836 | else |
||
10837 | lt_cv_sys_global_symbol_pipe= |
||
10838 | fi |
||
10839 | done |
||
10840 | |||
10841 | fi |
||
10842 | |||
10843 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
||
10844 | lt_cv_sys_global_symbol_to_cdecl= |
||
10845 | fi |
||
10846 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
||
10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
||
10848 | $as_echo "failed" >&6; } |
||
10849 | else |
||
10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
||
10851 | $as_echo "ok" >&6; } |
||
10852 | fi |
||
10853 | |||
10854 | # Response file support. |
||
10855 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
||
10856 | nm_file_list_spec='@' |
||
10857 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
||
10858 | nm_file_list_spec='@' |
||
10859 | fi |
||
10860 | |||
10861 | |||
10862 | |||
10863 | |||
10864 | |||
10865 | |||
10866 | |||
10867 | |||
10868 | |||
10869 | |||
10870 | |||
10871 | |||
10872 | |||
10873 | |||
10874 | |||
10875 | |||
10876 | |||
10877 | |||
10878 | |||
10879 | |||
10880 | |||
10881 | |||
10882 | |||
10883 | |||
10884 | |||
10885 | |||
10886 | |||
10887 | |||
10888 | |||
10889 | |||
10890 | |||
10891 | |||
10892 | |||
10893 | |||
10894 | |||
10895 | |||
10896 | |||
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
||
10898 | $as_echo_n "checking for sysroot... " >&6; } |
||
10899 | |||
10900 | # Check whether --with-sysroot was given. |
||
10901 | if test "${with_sysroot+set}" = set; then : |
||
10902 | withval=$with_sysroot; |
||
10903 | else |
||
10904 | with_sysroot=no |
||
10905 | fi |
||
10906 | |||
10907 | |||
10908 | lt_sysroot= |
||
10909 | case $with_sysroot in #( |
||
10910 | yes) |
||
10911 | if test yes = "$GCC"; then |
||
10912 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
||
10913 | fi |
||
10914 | ;; #( |
||
10915 | /*) |
||
10916 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
||
10917 | ;; #( |
||
10918 | no|'') |
||
10919 | ;; #( |
||
10920 | *) |
||
10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
||
10922 | $as_echo "$with_sysroot" >&6; } |
||
10923 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
||
10924 | ;; |
||
10925 | esac |
||
10926 | |||
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
||
10928 | $as_echo "${lt_sysroot:-no}" >&6; } |
||
10929 | |||
10930 | |||
10931 | |||
10932 | |||
10933 | |||
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
||
10935 | $as_echo_n "checking for a working dd... " >&6; } |
||
10936 | if ${ac_cv_path_lt_DD+:} false; then : |
||
10937 | $as_echo_n "(cached) " >&6 |
||
10938 | else |
||
10939 | printf 0123456789abcdef0123456789abcdef >conftest.i |
||
10940 | cat conftest.i conftest.i >conftest2.i |
||
10941 | : ${lt_DD:=$DD} |
||
10942 | if test -z "$lt_DD"; then |
||
10943 | ac_path_lt_DD_found=false |
||
10944 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
10945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
10946 | for as_dir in $PATH |
||
10947 | do |
||
10948 | IFS=$as_save_IFS |
||
10949 | test -z "$as_dir" && as_dir=. |
||
10950 | for ac_prog in dd; do |
||
10951 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
10952 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
||
10953 | as_fn_executable_p "$ac_path_lt_DD" || continue |
||
10954 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
||
10955 | cmp -s conftest.i conftest.out \ |
||
10956 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
||
10957 | fi |
||
10958 | $ac_path_lt_DD_found && break 3 |
||
10959 | done |
||
10960 | done |
||
10961 | done |
||
10962 | IFS=$as_save_IFS |
||
10963 | if test -z "$ac_cv_path_lt_DD"; then |
||
10964 | : |
||
10965 | fi |
||
10966 | else |
||
10967 | ac_cv_path_lt_DD=$lt_DD |
||
10968 | fi |
||
10969 | |||
10970 | rm -f conftest.i conftest2.i conftest.out |
||
10971 | fi |
||
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
||
10973 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
||
10974 | |||
10975 | |||
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
||
10977 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
||
10978 | if ${lt_cv_truncate_bin+:} false; then : |
||
10979 | $as_echo_n "(cached) " >&6 |
||
10980 | else |
||
10981 | printf 0123456789abcdef0123456789abcdef >conftest.i |
||
10982 | cat conftest.i conftest.i >conftest2.i |
||
10983 | lt_cv_truncate_bin= |
||
10984 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
||
10985 | cmp -s conftest.i conftest.out \ |
||
10986 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
||
10987 | fi |
||
10988 | rm -f conftest.i conftest2.i conftest.out |
||
10989 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
||
10990 | fi |
||
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
||
10992 | $as_echo "$lt_cv_truncate_bin" >&6; } |
||
10993 | |||
10994 | |||
10995 | |||
10996 | |||
10997 | |||
10998 | |||
10999 | |||
11000 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
||
11001 | func_cc_basename () |
||
11002 | { |
||
11003 | for cc_temp in $*""; do |
||
11004 | case $cc_temp in |
||
11005 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
11006 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
11007 | \-*) ;; |
||
11008 | *) break;; |
||
11009 | esac |
||
11010 | done |
||
11011 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
||
11012 | } |
||
11013 | |||
11014 | # Check whether --enable-libtool-lock was given. |
||
11015 | if test "${enable_libtool_lock+set}" = set; then : |
||
11016 | enableval=$enable_libtool_lock; |
||
11017 | fi |
||
11018 | |||
11019 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
||
11020 | |||
11021 | # Some flags need to be propagated to the compiler or linker for good |
||
11022 | # libtool support. |
||
11023 | case $host in |
||
11024 | ia64-*-hpux*) |
||
11025 | # Find out what ABI is being produced by ac_compile, and set mode |
||
11026 | # options accordingly. |
||
11027 | echo 'int i;' > conftest.$ac_ext |
||
11028 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
11029 | (eval $ac_compile) 2>&5 |
||
11030 | ac_status=$? |
||
11031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11032 | test $ac_status = 0; }; then |
||
11033 | case `/usr/bin/file conftest.$ac_objext` in |
||
11034 | *ELF-32*) |
||
11035 | HPUX_IA64_MODE=32 |
||
11036 | ;; |
||
11037 | *ELF-64*) |
||
11038 | HPUX_IA64_MODE=64 |
||
11039 | ;; |
||
11040 | esac |
||
11041 | fi |
||
11042 | rm -rf conftest* |
||
11043 | ;; |
||
11044 | *-*-irix6*) |
||
11045 | # Find out what ABI is being produced by ac_compile, and set linker |
||
11046 | # options accordingly. |
||
11047 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
||
11048 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
11049 | (eval $ac_compile) 2>&5 |
||
11050 | ac_status=$? |
||
11051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11052 | test $ac_status = 0; }; then |
||
11053 | if test yes = "$lt_cv_prog_gnu_ld"; then |
||
11054 | case `/usr/bin/file conftest.$ac_objext` in |
||
11055 | *32-bit*) |
||
11056 | LD="${LD-ld} -melf32bsmip" |
||
11057 | ;; |
||
11058 | *N32*) |
||
11059 | LD="${LD-ld} -melf32bmipn32" |
||
11060 | ;; |
||
11061 | *64-bit*) |
||
11062 | LD="${LD-ld} -melf64bmip" |
||
11063 | ;; |
||
11064 | esac |
||
11065 | else |
||
11066 | case `/usr/bin/file conftest.$ac_objext` in |
||
11067 | *32-bit*) |
||
11068 | LD="${LD-ld} -32" |
||
11069 | ;; |
||
11070 | *N32*) |
||
11071 | LD="${LD-ld} -n32" |
||
11072 | ;; |
||
11073 | *64-bit*) |
||
11074 | LD="${LD-ld} -64" |
||
11075 | ;; |
||
11076 | esac |
||
11077 | fi |
||
11078 | fi |
||
11079 | rm -rf conftest* |
||
11080 | ;; |
||
11081 | |||
11082 | mips64*-*linux*) |
||
11083 | # Find out what ABI is being produced by ac_compile, and set linker |
||
11084 | # options accordingly. |
||
11085 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
||
11086 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
11087 | (eval $ac_compile) 2>&5 |
||
11088 | ac_status=$? |
||
11089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11090 | test $ac_status = 0; }; then |
||
11091 | emul=elf |
||
11092 | case `/usr/bin/file conftest.$ac_objext` in |
||
11093 | *32-bit*) |
||
11094 | emul="${emul}32" |
||
11095 | ;; |
||
11096 | *64-bit*) |
||
11097 | emul="${emul}64" |
||
11098 | ;; |
||
11099 | esac |
||
11100 | case `/usr/bin/file conftest.$ac_objext` in |
||
11101 | *MSB*) |
||
11102 | emul="${emul}btsmip" |
||
11103 | ;; |
||
11104 | *LSB*) |
||
11105 | emul="${emul}ltsmip" |
||
11106 | ;; |
||
11107 | esac |
||
11108 | case `/usr/bin/file conftest.$ac_objext` in |
||
11109 | *N32*) |
||
11110 | emul="${emul}n32" |
||
11111 | ;; |
||
11112 | esac |
||
11113 | LD="${LD-ld} -m $emul" |
||
11114 | fi |
||
11115 | rm -rf conftest* |
||
11116 | ;; |
||
11117 | |||
11118 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
||
11119 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
||
11120 | # Find out what ABI is being produced by ac_compile, and set linker |
||
11121 | # options accordingly. Note that the listed cases only cover the |
||
11122 | # situations where additional linker options are needed (such as when |
||
11123 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
||
11124 | # vice versa); the common cases where no linker options are needed do |
||
11125 | # not appear in the list. |
||
11126 | echo 'int i;' > conftest.$ac_ext |
||
11127 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
11128 | (eval $ac_compile) 2>&5 |
||
11129 | ac_status=$? |
||
11130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11131 | test $ac_status = 0; }; then |
||
11132 | case `/usr/bin/file conftest.o` in |
||
11133 | *32-bit*) |
||
11134 | case $host in |
||
11135 | x86_64-*kfreebsd*-gnu) |
||
11136 | LD="${LD-ld} -m elf_i386_fbsd" |
||
11137 | ;; |
||
11138 | x86_64-*linux*) |
||
11139 | case `/usr/bin/file conftest.o` in |
||
11140 | *x86-64*) |
||
11141 | LD="${LD-ld} -m elf32_x86_64" |
||
11142 | ;; |
||
11143 | *) |
||
11144 | LD="${LD-ld} -m elf_i386" |
||
11145 | ;; |
||
11146 | esac |
||
11147 | ;; |
||
11148 | powerpc64le-*linux*) |
||
11149 | LD="${LD-ld} -m elf32lppclinux" |
||
11150 | ;; |
||
11151 | powerpc64-*linux*) |
||
11152 | LD="${LD-ld} -m elf32ppclinux" |
||
11153 | ;; |
||
11154 | s390x-*linux*) |
||
11155 | LD="${LD-ld} -m elf_s390" |
||
11156 | ;; |
||
11157 | sparc64-*linux*) |
||
11158 | LD="${LD-ld} -m elf32_sparc" |
||
11159 | ;; |
||
11160 | esac |
||
11161 | ;; |
||
11162 | *64-bit*) |
||
11163 | case $host in |
||
11164 | x86_64-*kfreebsd*-gnu) |
||
11165 | LD="${LD-ld} -m elf_x86_64_fbsd" |
||
11166 | ;; |
||
11167 | x86_64-*linux*) |
||
11168 | LD="${LD-ld} -m elf_x86_64" |
||
11169 | ;; |
||
11170 | powerpcle-*linux*) |
||
11171 | LD="${LD-ld} -m elf64lppc" |
||
11172 | ;; |
||
11173 | powerpc-*linux*) |
||
11174 | LD="${LD-ld} -m elf64ppc" |
||
11175 | ;; |
||
11176 | s390*-*linux*|s390*-*tpf*) |
||
11177 | LD="${LD-ld} -m elf64_s390" |
||
11178 | ;; |
||
11179 | sparc*-*linux*) |
||
11180 | LD="${LD-ld} -m elf64_sparc" |
||
11181 | ;; |
||
11182 | esac |
||
11183 | ;; |
||
11184 | esac |
||
11185 | fi |
||
11186 | rm -rf conftest* |
||
11187 | ;; |
||
11188 | |||
11189 | *-*-sco3.2v5*) |
||
11190 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
||
11191 | SAVE_CFLAGS=$CFLAGS |
||
11192 | CFLAGS="$CFLAGS -belf" |
||
11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
||
11194 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
||
11195 | if ${lt_cv_cc_needs_belf+:} false; then : |
||
11196 | $as_echo_n "(cached) " >&6 |
||
11197 | else |
||
11198 | ac_ext=c |
||
11199 | ac_cpp='$CPP $CPPFLAGS' |
||
11200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
11201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
11202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
11203 | |||
11204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11205 | /* end confdefs.h. */ |
||
11206 | |||
11207 | int |
||
11208 | main () |
||
11209 | { |
||
11210 | |||
11211 | ; |
||
11212 | return 0; |
||
11213 | } |
||
11214 | _ACEOF |
||
11215 | if ac_fn_c_try_link "$LINENO"; then : |
||
11216 | lt_cv_cc_needs_belf=yes |
||
11217 | else |
||
11218 | lt_cv_cc_needs_belf=no |
||
11219 | fi |
||
11220 | rm -f core conftest.err conftest.$ac_objext \ |
||
11221 | conftest$ac_exeext conftest.$ac_ext |
||
11222 | ac_ext=c |
||
11223 | ac_cpp='$CPP $CPPFLAGS' |
||
11224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
11225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
11226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
11227 | |||
11228 | fi |
||
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
||
11230 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
||
11231 | if test yes != "$lt_cv_cc_needs_belf"; then |
||
11232 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
||
11233 | CFLAGS=$SAVE_CFLAGS |
||
11234 | fi |
||
11235 | ;; |
||
11236 | *-*solaris*) |
||
11237 | # Find out what ABI is being produced by ac_compile, and set linker |
||
11238 | # options accordingly. |
||
11239 | echo 'int i;' > conftest.$ac_ext |
||
11240 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
11241 | (eval $ac_compile) 2>&5 |
||
11242 | ac_status=$? |
||
11243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
11244 | test $ac_status = 0; }; then |
||
11245 | case `/usr/bin/file conftest.o` in |
||
11246 | *64-bit*) |
||
11247 | case $lt_cv_prog_gnu_ld in |
||
11248 | yes*) |
||
11249 | case $host in |
||
11250 | i?86-*-solaris*|x86_64-*-solaris*) |
||
11251 | LD="${LD-ld} -m elf_x86_64" |
||
11252 | ;; |
||
11253 | sparc*-*-solaris*) |
||
11254 | LD="${LD-ld} -m elf64_sparc" |
||
11255 | ;; |
||
11256 | esac |
||
11257 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
||
11258 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
||
11259 | LD=${LD-ld}_sol2 |
||
11260 | fi |
||
11261 | ;; |
||
11262 | *) |
||
11263 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
||
11264 | LD="${LD-ld} -64" |
||
11265 | fi |
||
11266 | ;; |
||
11267 | esac |
||
11268 | ;; |
||
11269 | esac |
||
11270 | fi |
||
11271 | rm -rf conftest* |
||
11272 | ;; |
||
11273 | esac |
||
11274 | |||
11275 | need_locks=$enable_libtool_lock |
||
11276 | |||
11277 | if test -n "$ac_tool_prefix"; then |
||
11278 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
||
11279 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
||
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11281 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11282 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
||
11283 | $as_echo_n "(cached) " >&6 |
||
11284 | else |
||
11285 | if test -n "$MANIFEST_TOOL"; then |
||
11286 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
||
11287 | else |
||
11288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11289 | for as_dir in $PATH |
||
11290 | do |
||
11291 | IFS=$as_save_IFS |
||
11292 | test -z "$as_dir" && as_dir=. |
||
11293 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11295 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
||
11296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11297 | break 2 |
||
11298 | fi |
||
11299 | done |
||
11300 | done |
||
11301 | IFS=$as_save_IFS |
||
11302 | |||
11303 | fi |
||
11304 | fi |
||
11305 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
||
11306 | if test -n "$MANIFEST_TOOL"; then |
||
11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
||
11308 | $as_echo "$MANIFEST_TOOL" >&6; } |
||
11309 | else |
||
11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11311 | $as_echo "no" >&6; } |
||
11312 | fi |
||
11313 | |||
11314 | |||
11315 | fi |
||
11316 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
||
11317 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
||
11318 | # Extract the first word of "mt", so it can be a program name with args. |
||
11319 | set dummy mt; ac_word=$2 |
||
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11321 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11322 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
||
11323 | $as_echo_n "(cached) " >&6 |
||
11324 | else |
||
11325 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
||
11326 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
||
11327 | else |
||
11328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11329 | for as_dir in $PATH |
||
11330 | do |
||
11331 | IFS=$as_save_IFS |
||
11332 | test -z "$as_dir" && as_dir=. |
||
11333 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11335 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
||
11336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11337 | break 2 |
||
11338 | fi |
||
11339 | done |
||
11340 | done |
||
11341 | IFS=$as_save_IFS |
||
11342 | |||
11343 | fi |
||
11344 | fi |
||
11345 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
||
11346 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
||
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
||
11348 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
||
11349 | else |
||
11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11351 | $as_echo "no" >&6; } |
||
11352 | fi |
||
11353 | |||
11354 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
||
11355 | MANIFEST_TOOL=":" |
||
11356 | else |
||
11357 | case $cross_compiling:$ac_tool_warned in |
||
11358 | yes:) |
||
11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
11360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
11361 | ac_tool_warned=yes ;; |
||
11362 | esac |
||
11363 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
||
11364 | fi |
||
11365 | else |
||
11366 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
||
11367 | fi |
||
11368 | |||
11369 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
||
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
||
11371 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
||
11372 | if ${lt_cv_path_mainfest_tool+:} false; then : |
||
11373 | $as_echo_n "(cached) " >&6 |
||
11374 | else |
||
11375 | lt_cv_path_mainfest_tool=no |
||
11376 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
||
11377 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
||
11378 | cat conftest.err >&5 |
||
11379 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
||
11380 | lt_cv_path_mainfest_tool=yes |
||
11381 | fi |
||
11382 | rm -f conftest* |
||
11383 | fi |
||
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
||
11385 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
||
11386 | if test yes != "$lt_cv_path_mainfest_tool"; then |
||
11387 | MANIFEST_TOOL=: |
||
11388 | fi |
||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | |||
11394 | |||
11395 | case $host_os in |
||
11396 | rhapsody* | darwin*) |
||
11397 | if test -n "$ac_tool_prefix"; then |
||
11398 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
||
11399 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
||
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11401 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11402 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
||
11403 | $as_echo_n "(cached) " >&6 |
||
11404 | else |
||
11405 | if test -n "$DSYMUTIL"; then |
||
11406 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
||
11407 | else |
||
11408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11409 | for as_dir in $PATH |
||
11410 | do |
||
11411 | IFS=$as_save_IFS |
||
11412 | test -z "$as_dir" && as_dir=. |
||
11413 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11415 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
||
11416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11417 | break 2 |
||
11418 | fi |
||
11419 | done |
||
11420 | done |
||
11421 | IFS=$as_save_IFS |
||
11422 | |||
11423 | fi |
||
11424 | fi |
||
11425 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
||
11426 | if test -n "$DSYMUTIL"; then |
||
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
||
11428 | $as_echo "$DSYMUTIL" >&6; } |
||
11429 | else |
||
11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11431 | $as_echo "no" >&6; } |
||
11432 | fi |
||
11433 | |||
11434 | |||
11435 | fi |
||
11436 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
||
11437 | ac_ct_DSYMUTIL=$DSYMUTIL |
||
11438 | # Extract the first word of "dsymutil", so it can be a program name with args. |
||
11439 | set dummy dsymutil; ac_word=$2 |
||
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11441 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11442 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
||
11443 | $as_echo_n "(cached) " >&6 |
||
11444 | else |
||
11445 | if test -n "$ac_ct_DSYMUTIL"; then |
||
11446 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
||
11447 | else |
||
11448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11449 | for as_dir in $PATH |
||
11450 | do |
||
11451 | IFS=$as_save_IFS |
||
11452 | test -z "$as_dir" && as_dir=. |
||
11453 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11455 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
||
11456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11457 | break 2 |
||
11458 | fi |
||
11459 | done |
||
11460 | done |
||
11461 | IFS=$as_save_IFS |
||
11462 | |||
11463 | fi |
||
11464 | fi |
||
11465 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
||
11466 | if test -n "$ac_ct_DSYMUTIL"; then |
||
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
||
11468 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
||
11469 | else |
||
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11471 | $as_echo "no" >&6; } |
||
11472 | fi |
||
11473 | |||
11474 | if test "x$ac_ct_DSYMUTIL" = x; then |
||
11475 | DSYMUTIL=":" |
||
11476 | else |
||
11477 | case $cross_compiling:$ac_tool_warned in |
||
11478 | yes:) |
||
11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
11480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
11481 | ac_tool_warned=yes ;; |
||
11482 | esac |
||
11483 | DSYMUTIL=$ac_ct_DSYMUTIL |
||
11484 | fi |
||
11485 | else |
||
11486 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
||
11487 | fi |
||
11488 | |||
11489 | if test -n "$ac_tool_prefix"; then |
||
11490 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
||
11491 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
||
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11493 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11494 | if ${ac_cv_prog_NMEDIT+:} false; then : |
||
11495 | $as_echo_n "(cached) " >&6 |
||
11496 | else |
||
11497 | if test -n "$NMEDIT"; then |
||
11498 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
||
11499 | else |
||
11500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11501 | for as_dir in $PATH |
||
11502 | do |
||
11503 | IFS=$as_save_IFS |
||
11504 | test -z "$as_dir" && as_dir=. |
||
11505 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11507 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
||
11508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11509 | break 2 |
||
11510 | fi |
||
11511 | done |
||
11512 | done |
||
11513 | IFS=$as_save_IFS |
||
11514 | |||
11515 | fi |
||
11516 | fi |
||
11517 | NMEDIT=$ac_cv_prog_NMEDIT |
||
11518 | if test -n "$NMEDIT"; then |
||
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
||
11520 | $as_echo "$NMEDIT" >&6; } |
||
11521 | else |
||
11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11523 | $as_echo "no" >&6; } |
||
11524 | fi |
||
11525 | |||
11526 | |||
11527 | fi |
||
11528 | if test -z "$ac_cv_prog_NMEDIT"; then |
||
11529 | ac_ct_NMEDIT=$NMEDIT |
||
11530 | # Extract the first word of "nmedit", so it can be a program name with args. |
||
11531 | set dummy nmedit; ac_word=$2 |
||
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11533 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11534 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
||
11535 | $as_echo_n "(cached) " >&6 |
||
11536 | else |
||
11537 | if test -n "$ac_ct_NMEDIT"; then |
||
11538 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
||
11539 | else |
||
11540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11541 | for as_dir in $PATH |
||
11542 | do |
||
11543 | IFS=$as_save_IFS |
||
11544 | test -z "$as_dir" && as_dir=. |
||
11545 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11547 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
||
11548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11549 | break 2 |
||
11550 | fi |
||
11551 | done |
||
11552 | done |
||
11553 | IFS=$as_save_IFS |
||
11554 | |||
11555 | fi |
||
11556 | fi |
||
11557 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
||
11558 | if test -n "$ac_ct_NMEDIT"; then |
||
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
||
11560 | $as_echo "$ac_ct_NMEDIT" >&6; } |
||
11561 | else |
||
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11563 | $as_echo "no" >&6; } |
||
11564 | fi |
||
11565 | |||
11566 | if test "x$ac_ct_NMEDIT" = x; then |
||
11567 | NMEDIT=":" |
||
11568 | else |
||
11569 | case $cross_compiling:$ac_tool_warned in |
||
11570 | yes:) |
||
11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
11572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
11573 | ac_tool_warned=yes ;; |
||
11574 | esac |
||
11575 | NMEDIT=$ac_ct_NMEDIT |
||
11576 | fi |
||
11577 | else |
||
11578 | NMEDIT="$ac_cv_prog_NMEDIT" |
||
11579 | fi |
||
11580 | |||
11581 | if test -n "$ac_tool_prefix"; then |
||
11582 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
||
11583 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
||
11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11585 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11586 | if ${ac_cv_prog_LIPO+:} false; then : |
||
11587 | $as_echo_n "(cached) " >&6 |
||
11588 | else |
||
11589 | if test -n "$LIPO"; then |
||
11590 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
||
11591 | else |
||
11592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11593 | for as_dir in $PATH |
||
11594 | do |
||
11595 | IFS=$as_save_IFS |
||
11596 | test -z "$as_dir" && as_dir=. |
||
11597 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11599 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
||
11600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11601 | break 2 |
||
11602 | fi |
||
11603 | done |
||
11604 | done |
||
11605 | IFS=$as_save_IFS |
||
11606 | |||
11607 | fi |
||
11608 | fi |
||
11609 | LIPO=$ac_cv_prog_LIPO |
||
11610 | if test -n "$LIPO"; then |
||
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
||
11612 | $as_echo "$LIPO" >&6; } |
||
11613 | else |
||
11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11615 | $as_echo "no" >&6; } |
||
11616 | fi |
||
11617 | |||
11618 | |||
11619 | fi |
||
11620 | if test -z "$ac_cv_prog_LIPO"; then |
||
11621 | ac_ct_LIPO=$LIPO |
||
11622 | # Extract the first word of "lipo", so it can be a program name with args. |
||
11623 | set dummy lipo; ac_word=$2 |
||
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11625 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11626 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
||
11627 | $as_echo_n "(cached) " >&6 |
||
11628 | else |
||
11629 | if test -n "$ac_ct_LIPO"; then |
||
11630 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
||
11631 | else |
||
11632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11633 | for as_dir in $PATH |
||
11634 | do |
||
11635 | IFS=$as_save_IFS |
||
11636 | test -z "$as_dir" && as_dir=. |
||
11637 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11639 | ac_cv_prog_ac_ct_LIPO="lipo" |
||
11640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11641 | break 2 |
||
11642 | fi |
||
11643 | done |
||
11644 | done |
||
11645 | IFS=$as_save_IFS |
||
11646 | |||
11647 | fi |
||
11648 | fi |
||
11649 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
||
11650 | if test -n "$ac_ct_LIPO"; then |
||
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
||
11652 | $as_echo "$ac_ct_LIPO" >&6; } |
||
11653 | else |
||
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11655 | $as_echo "no" >&6; } |
||
11656 | fi |
||
11657 | |||
11658 | if test "x$ac_ct_LIPO" = x; then |
||
11659 | LIPO=":" |
||
11660 | else |
||
11661 | case $cross_compiling:$ac_tool_warned in |
||
11662 | yes:) |
||
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
11664 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
11665 | ac_tool_warned=yes ;; |
||
11666 | esac |
||
11667 | LIPO=$ac_ct_LIPO |
||
11668 | fi |
||
11669 | else |
||
11670 | LIPO="$ac_cv_prog_LIPO" |
||
11671 | fi |
||
11672 | |||
11673 | if test -n "$ac_tool_prefix"; then |
||
11674 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
||
11675 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
||
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11677 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11678 | if ${ac_cv_prog_OTOOL+:} false; then : |
||
11679 | $as_echo_n "(cached) " >&6 |
||
11680 | else |
||
11681 | if test -n "$OTOOL"; then |
||
11682 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
||
11683 | else |
||
11684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11685 | for as_dir in $PATH |
||
11686 | do |
||
11687 | IFS=$as_save_IFS |
||
11688 | test -z "$as_dir" && as_dir=. |
||
11689 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11691 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
||
11692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11693 | break 2 |
||
11694 | fi |
||
11695 | done |
||
11696 | done |
||
11697 | IFS=$as_save_IFS |
||
11698 | |||
11699 | fi |
||
11700 | fi |
||
11701 | OTOOL=$ac_cv_prog_OTOOL |
||
11702 | if test -n "$OTOOL"; then |
||
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
||
11704 | $as_echo "$OTOOL" >&6; } |
||
11705 | else |
||
11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11707 | $as_echo "no" >&6; } |
||
11708 | fi |
||
11709 | |||
11710 | |||
11711 | fi |
||
11712 | if test -z "$ac_cv_prog_OTOOL"; then |
||
11713 | ac_ct_OTOOL=$OTOOL |
||
11714 | # Extract the first word of "otool", so it can be a program name with args. |
||
11715 | set dummy otool; ac_word=$2 |
||
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11717 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11718 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
||
11719 | $as_echo_n "(cached) " >&6 |
||
11720 | else |
||
11721 | if test -n "$ac_ct_OTOOL"; then |
||
11722 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
||
11723 | else |
||
11724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11725 | for as_dir in $PATH |
||
11726 | do |
||
11727 | IFS=$as_save_IFS |
||
11728 | test -z "$as_dir" && as_dir=. |
||
11729 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11731 | ac_cv_prog_ac_ct_OTOOL="otool" |
||
11732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11733 | break 2 |
||
11734 | fi |
||
11735 | done |
||
11736 | done |
||
11737 | IFS=$as_save_IFS |
||
11738 | |||
11739 | fi |
||
11740 | fi |
||
11741 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
||
11742 | if test -n "$ac_ct_OTOOL"; then |
||
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
||
11744 | $as_echo "$ac_ct_OTOOL" >&6; } |
||
11745 | else |
||
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11747 | $as_echo "no" >&6; } |
||
11748 | fi |
||
11749 | |||
11750 | if test "x$ac_ct_OTOOL" = x; then |
||
11751 | OTOOL=":" |
||
11752 | else |
||
11753 | case $cross_compiling:$ac_tool_warned in |
||
11754 | yes:) |
||
11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
11756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
11757 | ac_tool_warned=yes ;; |
||
11758 | esac |
||
11759 | OTOOL=$ac_ct_OTOOL |
||
11760 | fi |
||
11761 | else |
||
11762 | OTOOL="$ac_cv_prog_OTOOL" |
||
11763 | fi |
||
11764 | |||
11765 | if test -n "$ac_tool_prefix"; then |
||
11766 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
||
11767 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
||
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11769 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11770 | if ${ac_cv_prog_OTOOL64+:} false; then : |
||
11771 | $as_echo_n "(cached) " >&6 |
||
11772 | else |
||
11773 | if test -n "$OTOOL64"; then |
||
11774 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
||
11775 | else |
||
11776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11777 | for as_dir in $PATH |
||
11778 | do |
||
11779 | IFS=$as_save_IFS |
||
11780 | test -z "$as_dir" && as_dir=. |
||
11781 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11783 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
||
11784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11785 | break 2 |
||
11786 | fi |
||
11787 | done |
||
11788 | done |
||
11789 | IFS=$as_save_IFS |
||
11790 | |||
11791 | fi |
||
11792 | fi |
||
11793 | OTOOL64=$ac_cv_prog_OTOOL64 |
||
11794 | if test -n "$OTOOL64"; then |
||
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
||
11796 | $as_echo "$OTOOL64" >&6; } |
||
11797 | else |
||
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11799 | $as_echo "no" >&6; } |
||
11800 | fi |
||
11801 | |||
11802 | |||
11803 | fi |
||
11804 | if test -z "$ac_cv_prog_OTOOL64"; then |
||
11805 | ac_ct_OTOOL64=$OTOOL64 |
||
11806 | # Extract the first word of "otool64", so it can be a program name with args. |
||
11807 | set dummy otool64; ac_word=$2 |
||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
11809 | $as_echo_n "checking for $ac_word... " >&6; } |
||
11810 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
||
11811 | $as_echo_n "(cached) " >&6 |
||
11812 | else |
||
11813 | if test -n "$ac_ct_OTOOL64"; then |
||
11814 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
||
11815 | else |
||
11816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
11817 | for as_dir in $PATH |
||
11818 | do |
||
11819 | IFS=$as_save_IFS |
||
11820 | test -z "$as_dir" && as_dir=. |
||
11821 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
11822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
11823 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
||
11824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
11825 | break 2 |
||
11826 | fi |
||
11827 | done |
||
11828 | done |
||
11829 | IFS=$as_save_IFS |
||
11830 | |||
11831 | fi |
||
11832 | fi |
||
11833 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
||
11834 | if test -n "$ac_ct_OTOOL64"; then |
||
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
||
11836 | $as_echo "$ac_ct_OTOOL64" >&6; } |
||
11837 | else |
||
11838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
11839 | $as_echo "no" >&6; } |
||
11840 | fi |
||
11841 | |||
11842 | if test "x$ac_ct_OTOOL64" = x; then |
||
11843 | OTOOL64=":" |
||
11844 | else |
||
11845 | case $cross_compiling:$ac_tool_warned in |
||
11846 | yes:) |
||
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
11848 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
11849 | ac_tool_warned=yes ;; |
||
11850 | esac |
||
11851 | OTOOL64=$ac_ct_OTOOL64 |
||
11852 | fi |
||
11853 | else |
||
11854 | OTOOL64="$ac_cv_prog_OTOOL64" |
||
11855 | fi |
||
11856 | |||
11857 | |||
11858 | |||
11859 | |||
11860 | |||
11861 | |||
11862 | |||
11863 | |||
11864 | |||
11865 | |||
11866 | |||
11867 | |||
11868 | |||
11869 | |||
11870 | |||
11871 | |||
11872 | |||
11873 | |||
11874 | |||
11875 | |||
11876 | |||
11877 | |||
11878 | |||
11879 | |||
11880 | |||
11881 | |||
11882 | |||
11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
||
11884 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
||
11885 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
||
11886 | $as_echo_n "(cached) " >&6 |
||
11887 | else |
||
11888 | lt_cv_apple_cc_single_mod=no |
||
11889 | if test -z "$LT_MULTI_MODULE"; then |
||
11890 | # By default we will add the -single_module flag. You can override |
||
11891 | # by either setting the environment variable LT_MULTI_MODULE |
||
11892 | # non-empty at configure time, or by adding -multi_module to the |
||
11893 | # link flags. |
||
11894 | rm -rf libconftest.dylib* |
||
11895 | echo "int foo(void){return 1;}" > conftest.c |
||
11896 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
||
11897 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
||
11898 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
||
11899 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
||
11900 | _lt_result=$? |
||
11901 | # If there is a non-empty error log, and "single_module" |
||
11902 | # appears in it, assume the flag caused a linker warning |
||
11903 | if test -s conftest.err && $GREP single_module conftest.err; then |
||
11904 | cat conftest.err >&5 |
||
11905 | # Otherwise, if the output was created with a 0 exit code from |
||
11906 | # the compiler, it worked. |
||
11907 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
||
11908 | lt_cv_apple_cc_single_mod=yes |
||
11909 | else |
||
11910 | cat conftest.err >&5 |
||
11911 | fi |
||
11912 | rm -rf libconftest.dylib* |
||
11913 | rm -f conftest.* |
||
11914 | fi |
||
11915 | fi |
||
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
||
11917 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
||
11918 | |||
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
||
11920 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
||
11921 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
||
11922 | $as_echo_n "(cached) " >&6 |
||
11923 | else |
||
11924 | lt_cv_ld_exported_symbols_list=no |
||
11925 | save_LDFLAGS=$LDFLAGS |
||
11926 | echo "_main" > conftest.sym |
||
11927 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
||
11928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
11929 | /* end confdefs.h. */ |
||
11930 | |||
11931 | int |
||
11932 | main () |
||
11933 | { |
||
11934 | |||
11935 | ; |
||
11936 | return 0; |
||
11937 | } |
||
11938 | _ACEOF |
||
11939 | if ac_fn_c_try_link "$LINENO"; then : |
||
11940 | lt_cv_ld_exported_symbols_list=yes |
||
11941 | else |
||
11942 | lt_cv_ld_exported_symbols_list=no |
||
11943 | fi |
||
11944 | rm -f core conftest.err conftest.$ac_objext \ |
||
11945 | conftest$ac_exeext conftest.$ac_ext |
||
11946 | LDFLAGS=$save_LDFLAGS |
||
11947 | |||
11948 | fi |
||
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
||
11950 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
||
11951 | |||
11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
||
11953 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
||
11954 | if ${lt_cv_ld_force_load+:} false; then : |
||
11955 | $as_echo_n "(cached) " >&6 |
||
11956 | else |
||
11957 | lt_cv_ld_force_load=no |
||
11958 | cat > conftest.c << _LT_EOF |
||
11959 | int forced_loaded() { return 2;} |
||
11960 | _LT_EOF |
||
11961 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
||
11962 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
||
11963 | echo "$AR cru libconftest.a conftest.o" >&5 |
||
11964 | $AR cru libconftest.a conftest.o 2>&5 |
||
11965 | echo "$RANLIB libconftest.a" >&5 |
||
11966 | $RANLIB libconftest.a 2>&5 |
||
11967 | cat > conftest.c << _LT_EOF |
||
11968 | int main() { return 0;} |
||
11969 | _LT_EOF |
||
11970 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
||
11971 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
||
11972 | _lt_result=$? |
||
11973 | if test -s conftest.err && $GREP force_load conftest.err; then |
||
11974 | cat conftest.err >&5 |
||
11975 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
||
11976 | lt_cv_ld_force_load=yes |
||
11977 | else |
||
11978 | cat conftest.err >&5 |
||
11979 | fi |
||
11980 | rm -f conftest.err libconftest.a conftest conftest.c |
||
11981 | rm -rf conftest.dSYM |
||
11982 | |||
11983 | fi |
||
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
||
11985 | $as_echo "$lt_cv_ld_force_load" >&6; } |
||
11986 | case $host_os in |
||
11987 | rhapsody* | darwin1.[012]) |
||
11988 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
||
11989 | darwin1.*) |
||
11990 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
||
11991 | darwin*) # darwin 5.x on |
||
11992 | # if running on 10.5 or later, the deployment target defaults |
||
11993 | # to the OS version, if on x86, and 10.4, the deployment |
||
11994 | # target defaults to 10.4. Don't you love it? |
||
11995 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
||
11996 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
||
11997 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
||
11998 | 10.[012][,.]*) |
||
11999 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
||
12000 | 10.*) |
||
12001 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
||
12002 | esac |
||
12003 | ;; |
||
12004 | esac |
||
12005 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
||
12006 | _lt_dar_single_mod='$single_module' |
||
12007 | fi |
||
12008 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
||
12009 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
||
12010 | else |
||
12011 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
||
12012 | fi |
||
12013 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
||
12014 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
||
12015 | else |
||
12016 | _lt_dsymutil= |
||
12017 | fi |
||
12018 | ;; |
||
12019 | esac |
||
12020 | |||
12021 | # func_munge_path_list VARIABLE PATH |
||
12022 | # ----------------------------------- |
||
12023 | # VARIABLE is name of variable containing _space_ separated list of |
||
12024 | # directories to be munged by the contents of PATH, which is string |
||
12025 | # having a format: |
||
12026 | # "DIR[:DIR]:" |
||
12027 | # string "DIR[ DIR]" will be prepended to VARIABLE |
||
12028 | # ":DIR[:DIR]" |
||
12029 | # string "DIR[ DIR]" will be appended to VARIABLE |
||
12030 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
||
12031 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
||
12032 | # "DIRA[ DIRA]" will be appended to VARIABLE |
||
12033 | # "DIR[:DIR]" |
||
12034 | # VARIABLE will be replaced by "DIR[ DIR]" |
||
12035 | func_munge_path_list () |
||
12036 | { |
||
12037 | case x$2 in |
||
12038 | x) |
||
12039 | ;; |
||
12040 | *:) |
||
12041 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
||
12042 | ;; |
||
12043 | x:*) |
||
12044 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
||
12045 | ;; |
||
12046 | *::*) |
||
12047 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
||
12048 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
||
12049 | ;; |
||
12050 | *) |
||
12051 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
||
12052 | ;; |
||
12053 | esac |
||
12054 | } |
||
12055 | |||
12056 | for ac_header in dlfcn.h |
||
12057 | do : |
||
12058 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
||
12059 | " |
||
12060 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
||
12061 | cat >>confdefs.h <<_ACEOF |
||
12062 | #define HAVE_DLFCN_H 1 |
||
12063 | _ACEOF |
||
12064 | |||
12065 | fi |
||
12066 | |||
12067 | done |
||
12068 | |||
12069 | |||
12070 | |||
12071 | func_stripname_cnf () |
||
12072 | { |
||
12073 | case $2 in |
||
12074 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
||
12075 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
||
12076 | esac |
||
12077 | } # func_stripname_cnf |
||
12078 | |||
12079 | |||
12080 | |||
12081 | |||
12082 | |||
12083 | # Set options |
||
12084 | # Check whether --enable-static was given. |
||
12085 | if test "${enable_static+set}" = set; then : |
||
12086 | enableval=$enable_static; p=${PACKAGE-default} |
||
12087 | case $enableval in |
||
12088 | yes) enable_static=yes ;; |
||
12089 | no) enable_static=no ;; |
||
12090 | *) |
||
12091 | enable_static=no |
||
12092 | # Look at the argument we got. We use all the common list separators. |
||
12093 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
12094 | for pkg in $enableval; do |
||
12095 | IFS=$lt_save_ifs |
||
12096 | if test "X$pkg" = "X$p"; then |
||
12097 | enable_static=yes |
||
12098 | fi |
||
12099 | done |
||
12100 | IFS=$lt_save_ifs |
||
12101 | ;; |
||
12102 | esac |
||
12103 | else |
||
12104 | enable_static=no |
||
12105 | fi |
||
12106 | |||
12107 | |||
12108 | |||
12109 | |||
12110 | |||
12111 | |||
12112 | |||
12113 | enable_win32_dll=yes |
||
12114 | |||
12115 | case $host in |
||
12116 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
||
12117 | if test -n "$ac_tool_prefix"; then |
||
12118 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
||
12119 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
||
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12121 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12122 | if ${ac_cv_prog_AS+:} false; then : |
||
12123 | $as_echo_n "(cached) " >&6 |
||
12124 | else |
||
12125 | if test -n "$AS"; then |
||
12126 | ac_cv_prog_AS="$AS" # Let the user override the test. |
||
12127 | else |
||
12128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12129 | for as_dir in $PATH |
||
12130 | do |
||
12131 | IFS=$as_save_IFS |
||
12132 | test -z "$as_dir" && as_dir=. |
||
12133 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12135 | ac_cv_prog_AS="${ac_tool_prefix}as" |
||
12136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12137 | break 2 |
||
12138 | fi |
||
12139 | done |
||
12140 | done |
||
12141 | IFS=$as_save_IFS |
||
12142 | |||
12143 | fi |
||
12144 | fi |
||
12145 | AS=$ac_cv_prog_AS |
||
12146 | if test -n "$AS"; then |
||
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
||
12148 | $as_echo "$AS" >&6; } |
||
12149 | else |
||
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12151 | $as_echo "no" >&6; } |
||
12152 | fi |
||
12153 | |||
12154 | |||
12155 | fi |
||
12156 | if test -z "$ac_cv_prog_AS"; then |
||
12157 | ac_ct_AS=$AS |
||
12158 | # Extract the first word of "as", so it can be a program name with args. |
||
12159 | set dummy as; ac_word=$2 |
||
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12161 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12162 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
||
12163 | $as_echo_n "(cached) " >&6 |
||
12164 | else |
||
12165 | if test -n "$ac_ct_AS"; then |
||
12166 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
||
12167 | else |
||
12168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12169 | for as_dir in $PATH |
||
12170 | do |
||
12171 | IFS=$as_save_IFS |
||
12172 | test -z "$as_dir" && as_dir=. |
||
12173 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12175 | ac_cv_prog_ac_ct_AS="as" |
||
12176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12177 | break 2 |
||
12178 | fi |
||
12179 | done |
||
12180 | done |
||
12181 | IFS=$as_save_IFS |
||
12182 | |||
12183 | fi |
||
12184 | fi |
||
12185 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
||
12186 | if test -n "$ac_ct_AS"; then |
||
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
||
12188 | $as_echo "$ac_ct_AS" >&6; } |
||
12189 | else |
||
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12191 | $as_echo "no" >&6; } |
||
12192 | fi |
||
12193 | |||
12194 | if test "x$ac_ct_AS" = x; then |
||
12195 | AS="false" |
||
12196 | else |
||
12197 | case $cross_compiling:$ac_tool_warned in |
||
12198 | yes:) |
||
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
12200 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
12201 | ac_tool_warned=yes ;; |
||
12202 | esac |
||
12203 | AS=$ac_ct_AS |
||
12204 | fi |
||
12205 | else |
||
12206 | AS="$ac_cv_prog_AS" |
||
12207 | fi |
||
12208 | |||
12209 | if test -n "$ac_tool_prefix"; then |
||
12210 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
||
12211 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
||
12212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12213 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12214 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
||
12215 | $as_echo_n "(cached) " >&6 |
||
12216 | else |
||
12217 | if test -n "$DLLTOOL"; then |
||
12218 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
||
12219 | else |
||
12220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12221 | for as_dir in $PATH |
||
12222 | do |
||
12223 | IFS=$as_save_IFS |
||
12224 | test -z "$as_dir" && as_dir=. |
||
12225 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12227 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
||
12228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12229 | break 2 |
||
12230 | fi |
||
12231 | done |
||
12232 | done |
||
12233 | IFS=$as_save_IFS |
||
12234 | |||
12235 | fi |
||
12236 | fi |
||
12237 | DLLTOOL=$ac_cv_prog_DLLTOOL |
||
12238 | if test -n "$DLLTOOL"; then |
||
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
||
12240 | $as_echo "$DLLTOOL" >&6; } |
||
12241 | else |
||
12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12243 | $as_echo "no" >&6; } |
||
12244 | fi |
||
12245 | |||
12246 | |||
12247 | fi |
||
12248 | if test -z "$ac_cv_prog_DLLTOOL"; then |
||
12249 | ac_ct_DLLTOOL=$DLLTOOL |
||
12250 | # Extract the first word of "dlltool", so it can be a program name with args. |
||
12251 | set dummy dlltool; ac_word=$2 |
||
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12253 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12254 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
||
12255 | $as_echo_n "(cached) " >&6 |
||
12256 | else |
||
12257 | if test -n "$ac_ct_DLLTOOL"; then |
||
12258 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
||
12259 | else |
||
12260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12261 | for as_dir in $PATH |
||
12262 | do |
||
12263 | IFS=$as_save_IFS |
||
12264 | test -z "$as_dir" && as_dir=. |
||
12265 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12267 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
||
12268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12269 | break 2 |
||
12270 | fi |
||
12271 | done |
||
12272 | done |
||
12273 | IFS=$as_save_IFS |
||
12274 | |||
12275 | fi |
||
12276 | fi |
||
12277 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
||
12278 | if test -n "$ac_ct_DLLTOOL"; then |
||
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
||
12280 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
||
12281 | else |
||
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12283 | $as_echo "no" >&6; } |
||
12284 | fi |
||
12285 | |||
12286 | if test "x$ac_ct_DLLTOOL" = x; then |
||
12287 | DLLTOOL="false" |
||
12288 | else |
||
12289 | case $cross_compiling:$ac_tool_warned in |
||
12290 | yes:) |
||
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
12292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
12293 | ac_tool_warned=yes ;; |
||
12294 | esac |
||
12295 | DLLTOOL=$ac_ct_DLLTOOL |
||
12296 | fi |
||
12297 | else |
||
12298 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
||
12299 | fi |
||
12300 | |||
12301 | if test -n "$ac_tool_prefix"; then |
||
12302 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
||
12303 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
||
12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12305 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12306 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
||
12307 | $as_echo_n "(cached) " >&6 |
||
12308 | else |
||
12309 | if test -n "$OBJDUMP"; then |
||
12310 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
||
12311 | else |
||
12312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12313 | for as_dir in $PATH |
||
12314 | do |
||
12315 | IFS=$as_save_IFS |
||
12316 | test -z "$as_dir" && as_dir=. |
||
12317 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12319 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
||
12320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12321 | break 2 |
||
12322 | fi |
||
12323 | done |
||
12324 | done |
||
12325 | IFS=$as_save_IFS |
||
12326 | |||
12327 | fi |
||
12328 | fi |
||
12329 | OBJDUMP=$ac_cv_prog_OBJDUMP |
||
12330 | if test -n "$OBJDUMP"; then |
||
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
||
12332 | $as_echo "$OBJDUMP" >&6; } |
||
12333 | else |
||
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12335 | $as_echo "no" >&6; } |
||
12336 | fi |
||
12337 | |||
12338 | |||
12339 | fi |
||
12340 | if test -z "$ac_cv_prog_OBJDUMP"; then |
||
12341 | ac_ct_OBJDUMP=$OBJDUMP |
||
12342 | # Extract the first word of "objdump", so it can be a program name with args. |
||
12343 | set dummy objdump; ac_word=$2 |
||
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
12345 | $as_echo_n "checking for $ac_word... " >&6; } |
||
12346 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
||
12347 | $as_echo_n "(cached) " >&6 |
||
12348 | else |
||
12349 | if test -n "$ac_ct_OBJDUMP"; then |
||
12350 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
||
12351 | else |
||
12352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
12353 | for as_dir in $PATH |
||
12354 | do |
||
12355 | IFS=$as_save_IFS |
||
12356 | test -z "$as_dir" && as_dir=. |
||
12357 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
12358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
12359 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
||
12360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
12361 | break 2 |
||
12362 | fi |
||
12363 | done |
||
12364 | done |
||
12365 | IFS=$as_save_IFS |
||
12366 | |||
12367 | fi |
||
12368 | fi |
||
12369 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
||
12370 | if test -n "$ac_ct_OBJDUMP"; then |
||
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
||
12372 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
||
12373 | else |
||
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12375 | $as_echo "no" >&6; } |
||
12376 | fi |
||
12377 | |||
12378 | if test "x$ac_ct_OBJDUMP" = x; then |
||
12379 | OBJDUMP="false" |
||
12380 | else |
||
12381 | case $cross_compiling:$ac_tool_warned in |
||
12382 | yes:) |
||
12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
12384 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
12385 | ac_tool_warned=yes ;; |
||
12386 | esac |
||
12387 | OBJDUMP=$ac_ct_OBJDUMP |
||
12388 | fi |
||
12389 | else |
||
12390 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
||
12391 | fi |
||
12392 | |||
12393 | ;; |
||
12394 | esac |
||
12395 | |||
12396 | test -z "$AS" && AS=as |
||
12397 | |||
12398 | |||
12399 | |||
12400 | |||
12401 | |||
12402 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
||
12403 | |||
12404 | |||
12405 | |||
12406 | |||
12407 | |||
12408 | test -z "$OBJDUMP" && OBJDUMP=objdump |
||
12409 | |||
12410 | |||
12411 | |||
12412 | |||
12413 | |||
12414 | |||
12415 | |||
12416 | enable_dlopen=no |
||
12417 | |||
12418 | |||
12419 | |||
12420 | # Check whether --enable-shared was given. |
||
12421 | if test "${enable_shared+set}" = set; then : |
||
12422 | enableval=$enable_shared; p=${PACKAGE-default} |
||
12423 | case $enableval in |
||
12424 | yes) enable_shared=yes ;; |
||
12425 | no) enable_shared=no ;; |
||
12426 | *) |
||
12427 | enable_shared=no |
||
12428 | # Look at the argument we got. We use all the common list separators. |
||
12429 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
12430 | for pkg in $enableval; do |
||
12431 | IFS=$lt_save_ifs |
||
12432 | if test "X$pkg" = "X$p"; then |
||
12433 | enable_shared=yes |
||
12434 | fi |
||
12435 | done |
||
12436 | IFS=$lt_save_ifs |
||
12437 | ;; |
||
12438 | esac |
||
12439 | else |
||
12440 | enable_shared=yes |
||
12441 | fi |
||
12442 | |||
12443 | |||
12444 | |||
12445 | |||
12446 | |||
12447 | |||
12448 | |||
12449 | |||
12450 | |||
12451 | |||
12452 | |||
12453 | # Check whether --with-pic was given. |
||
12454 | if test "${with_pic+set}" = set; then : |
||
12455 | withval=$with_pic; lt_p=${PACKAGE-default} |
||
12456 | case $withval in |
||
12457 | yes|no) pic_mode=$withval ;; |
||
12458 | *) |
||
12459 | pic_mode=default |
||
12460 | # Look at the argument we got. We use all the common list separators. |
||
12461 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
12462 | for lt_pkg in $withval; do |
||
12463 | IFS=$lt_save_ifs |
||
12464 | if test "X$lt_pkg" = "X$lt_p"; then |
||
12465 | pic_mode=yes |
||
12466 | fi |
||
12467 | done |
||
12468 | IFS=$lt_save_ifs |
||
12469 | ;; |
||
12470 | esac |
||
12471 | else |
||
12472 | pic_mode=default |
||
12473 | fi |
||
12474 | |||
12475 | |||
12476 | |||
12477 | |||
12478 | |||
12479 | |||
12480 | |||
12481 | |||
12482 | # Check whether --enable-fast-install was given. |
||
12483 | if test "${enable_fast_install+set}" = set; then : |
||
12484 | enableval=$enable_fast_install; p=${PACKAGE-default} |
||
12485 | case $enableval in |
||
12486 | yes) enable_fast_install=yes ;; |
||
12487 | no) enable_fast_install=no ;; |
||
12488 | *) |
||
12489 | enable_fast_install=no |
||
12490 | # Look at the argument we got. We use all the common list separators. |
||
12491 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
||
12492 | for pkg in $enableval; do |
||
12493 | IFS=$lt_save_ifs |
||
12494 | if test "X$pkg" = "X$p"; then |
||
12495 | enable_fast_install=yes |
||
12496 | fi |
||
12497 | done |
||
12498 | IFS=$lt_save_ifs |
||
12499 | ;; |
||
12500 | esac |
||
12501 | else |
||
12502 | enable_fast_install=yes |
||
12503 | fi |
||
12504 | |||
12505 | |||
12506 | |||
12507 | |||
12508 | |||
12509 | |||
12510 | |||
12511 | |||
12512 | shared_archive_member_spec= |
||
12513 | case $host,$enable_shared in |
||
12514 | power*-*-aix[5-9]*,yes) |
||
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
||
12516 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
||
12517 | |||
12518 | # Check whether --with-aix-soname was given. |
||
12519 | if test "${with_aix_soname+set}" = set; then : |
||
12520 | withval=$with_aix_soname; case $withval in |
||
12521 | aix|svr4|both) |
||
12522 | ;; |
||
12523 | *) |
||
12524 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
||
12525 | ;; |
||
12526 | esac |
||
12527 | lt_cv_with_aix_soname=$with_aix_soname |
||
12528 | else |
||
12529 | if ${lt_cv_with_aix_soname+:} false; then : |
||
12530 | $as_echo_n "(cached) " >&6 |
||
12531 | else |
||
12532 | lt_cv_with_aix_soname=aix |
||
12533 | fi |
||
12534 | |||
12535 | with_aix_soname=$lt_cv_with_aix_soname |
||
12536 | fi |
||
12537 | |||
12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
||
12539 | $as_echo "$with_aix_soname" >&6; } |
||
12540 | if test aix != "$with_aix_soname"; then |
||
12541 | # For the AIX way of multilib, we name the shared archive member |
||
12542 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
||
12543 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
||
12544 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
||
12545 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
||
12546 | if test 64 = "${OBJECT_MODE-32}"; then |
||
12547 | shared_archive_member_spec=shr_64 |
||
12548 | else |
||
12549 | shared_archive_member_spec=shr |
||
12550 | fi |
||
12551 | fi |
||
12552 | ;; |
||
12553 | *) |
||
12554 | with_aix_soname=aix |
||
12555 | ;; |
||
12556 | esac |
||
12557 | |||
12558 | |||
12559 | |||
12560 | |||
12561 | |||
12562 | |||
12563 | |||
12564 | |||
12565 | |||
12566 | |||
12567 | # This can be used to rebuild libtool when needed |
||
12568 | LIBTOOL_DEPS=$ltmain |
||
12569 | |||
12570 | # Always use our own libtool. |
||
12571 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
||
12572 | |||
12573 | |||
12574 | |||
12575 | |||
12576 | |||
12577 | |||
12578 | |||
12579 | |||
12580 | |||
12581 | |||
12582 | |||
12583 | |||
12584 | |||
12585 | |||
12586 | |||
12587 | |||
12588 | |||
12589 | |||
12590 | |||
12591 | |||
12592 | |||
12593 | |||
12594 | |||
12595 | |||
12596 | |||
12597 | |||
12598 | |||
12599 | |||
12600 | |||
12601 | |||
12602 | test -z "$LN_S" && LN_S="ln -s" |
||
12603 | |||
12604 | |||
12605 | |||
12606 | |||
12607 | |||
12608 | |||
12609 | |||
12610 | |||
12611 | |||
12612 | |||
12613 | |||
12614 | |||
12615 | |||
12616 | |||
12617 | if test -n "${ZSH_VERSION+set}"; then |
||
12618 | setopt NO_GLOB_SUBST |
||
12619 | fi |
||
12620 | |||
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
||
12622 | $as_echo_n "checking for objdir... " >&6; } |
||
12623 | if ${lt_cv_objdir+:} false; then : |
||
12624 | $as_echo_n "(cached) " >&6 |
||
12625 | else |
||
12626 | rm -f .libs 2>/dev/null |
||
12627 | mkdir .libs 2>/dev/null |
||
12628 | if test -d .libs; then |
||
12629 | lt_cv_objdir=.libs |
||
12630 | else |
||
12631 | # MS-DOS does not allow filenames that begin with a dot. |
||
12632 | lt_cv_objdir=_libs |
||
12633 | fi |
||
12634 | rmdir .libs 2>/dev/null |
||
12635 | fi |
||
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
||
12637 | $as_echo "$lt_cv_objdir" >&6; } |
||
12638 | objdir=$lt_cv_objdir |
||
12639 | |||
12640 | |||
12641 | |||
12642 | |||
12643 | |||
12644 | cat >>confdefs.h <<_ACEOF |
||
12645 | #define LT_OBJDIR "$lt_cv_objdir/" |
||
12646 | _ACEOF |
||
12647 | |||
12648 | |||
12649 | |||
12650 | |||
12651 | case $host_os in |
||
12652 | aix3*) |
||
12653 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
12654 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
12655 | # vanish in a puff of smoke. |
||
12656 | if test set != "${COLLECT_NAMES+set}"; then |
||
12657 | COLLECT_NAMES= |
||
12658 | export COLLECT_NAMES |
||
12659 | fi |
||
12660 | ;; |
||
12661 | esac |
||
12662 | |||
12663 | # Global variables: |
||
12664 | ofile=libtool |
||
12665 | can_build_shared=yes |
||
12666 | |||
12667 | # All known linkers require a '.a' archive for static linking (except MSVC, |
||
12668 | # which needs '.lib'). |
||
12669 | libext=a |
||
12670 | |||
12671 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
12672 | |||
12673 | old_CC=$CC |
||
12674 | old_CFLAGS=$CFLAGS |
||
12675 | |||
12676 | # Set sane defaults for various variables |
||
12677 | test -z "$CC" && CC=cc |
||
12678 | test -z "$LTCC" && LTCC=$CC |
||
12679 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
||
12680 | test -z "$LD" && LD=ld |
||
12681 | test -z "$ac_objext" && ac_objext=o |
||
12682 | |||
12683 | func_cc_basename $compiler |
||
12684 | cc_basename=$func_cc_basename_result |
||
12685 | |||
12686 | |||
12687 | # Only perform the check for file, if the check method requires it |
||
12688 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
||
12689 | case $deplibs_check_method in |
||
12690 | file_magic*) |
||
12691 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
||
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
||
12693 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
||
12694 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
||
12695 | $as_echo_n "(cached) " >&6 |
||
12696 | else |
||
12697 | case $MAGIC_CMD in |
||
12698 | [\\/*] | ?:[\\/]*) |
||
12699 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
||
12700 | ;; |
||
12701 | *) |
||
12702 | lt_save_MAGIC_CMD=$MAGIC_CMD |
||
12703 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
12704 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
12705 | for ac_dir in $ac_dummy; do |
||
12706 | IFS=$lt_save_ifs |
||
12707 | test -z "$ac_dir" && ac_dir=. |
||
12708 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
||
12709 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
||
12710 | if test -n "$file_magic_test_file"; then |
||
12711 | case $deplibs_check_method in |
||
12712 | "file_magic "*) |
||
12713 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
12714 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
12715 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
12716 | $EGREP "$file_magic_regex" > /dev/null; then |
||
12717 | : |
||
12718 | else |
||
12719 | cat <<_LT_EOF 1>&2 |
||
12720 | |||
12721 | *** Warning: the command libtool uses to detect shared libraries, |
||
12722 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
12723 | *** The result is that libtool may fail to recognize shared libraries |
||
12724 | *** as such. This will affect the creation of libtool libraries that |
||
12725 | *** depend on shared libraries, but programs linked with such libtool |
||
12726 | *** libraries will work regardless of this problem. Nevertheless, you |
||
12727 | *** may want to report the problem to your system manager and/or to |
||
12728 | *** bug-libtool@gnu.org |
||
12729 | |||
12730 | _LT_EOF |
||
12731 | fi ;; |
||
12732 | esac |
||
12733 | fi |
||
12734 | break |
||
12735 | fi |
||
12736 | done |
||
12737 | IFS=$lt_save_ifs |
||
12738 | MAGIC_CMD=$lt_save_MAGIC_CMD |
||
12739 | ;; |
||
12740 | esac |
||
12741 | fi |
||
12742 | |||
12743 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
12744 | if test -n "$MAGIC_CMD"; then |
||
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
||
12746 | $as_echo "$MAGIC_CMD" >&6; } |
||
12747 | else |
||
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12749 | $as_echo "no" >&6; } |
||
12750 | fi |
||
12751 | |||
12752 | |||
12753 | |||
12754 | |||
12755 | |||
12756 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
||
12757 | if test -n "$ac_tool_prefix"; then |
||
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
||
12759 | $as_echo_n "checking for file... " >&6; } |
||
12760 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
||
12761 | $as_echo_n "(cached) " >&6 |
||
12762 | else |
||
12763 | case $MAGIC_CMD in |
||
12764 | [\\/*] | ?:[\\/]*) |
||
12765 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
||
12766 | ;; |
||
12767 | *) |
||
12768 | lt_save_MAGIC_CMD=$MAGIC_CMD |
||
12769 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
12770 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
||
12771 | for ac_dir in $ac_dummy; do |
||
12772 | IFS=$lt_save_ifs |
||
12773 | test -z "$ac_dir" && ac_dir=. |
||
12774 | if test -f "$ac_dir/file"; then |
||
12775 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
||
12776 | if test -n "$file_magic_test_file"; then |
||
12777 | case $deplibs_check_method in |
||
12778 | "file_magic "*) |
||
12779 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
||
12780 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
12781 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
||
12782 | $EGREP "$file_magic_regex" > /dev/null; then |
||
12783 | : |
||
12784 | else |
||
12785 | cat <<_LT_EOF 1>&2 |
||
12786 | |||
12787 | *** Warning: the command libtool uses to detect shared libraries, |
||
12788 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
||
12789 | *** The result is that libtool may fail to recognize shared libraries |
||
12790 | *** as such. This will affect the creation of libtool libraries that |
||
12791 | *** depend on shared libraries, but programs linked with such libtool |
||
12792 | *** libraries will work regardless of this problem. Nevertheless, you |
||
12793 | *** may want to report the problem to your system manager and/or to |
||
12794 | *** bug-libtool@gnu.org |
||
12795 | |||
12796 | _LT_EOF |
||
12797 | fi ;; |
||
12798 | esac |
||
12799 | fi |
||
12800 | break |
||
12801 | fi |
||
12802 | done |
||
12803 | IFS=$lt_save_ifs |
||
12804 | MAGIC_CMD=$lt_save_MAGIC_CMD |
||
12805 | ;; |
||
12806 | esac |
||
12807 | fi |
||
12808 | |||
12809 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
||
12810 | if test -n "$MAGIC_CMD"; then |
||
12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
||
12812 | $as_echo "$MAGIC_CMD" >&6; } |
||
12813 | else |
||
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
12815 | $as_echo "no" >&6; } |
||
12816 | fi |
||
12817 | |||
12818 | |||
12819 | else |
||
12820 | MAGIC_CMD=: |
||
12821 | fi |
||
12822 | fi |
||
12823 | |||
12824 | fi |
||
12825 | ;; |
||
12826 | esac |
||
12827 | |||
12828 | # Use C for the default configuration in the libtool script |
||
12829 | |||
12830 | lt_save_CC=$CC |
||
12831 | ac_ext=c |
||
12832 | ac_cpp='$CPP $CPPFLAGS' |
||
12833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
12834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
12835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
12836 | |||
12837 | |||
12838 | # Source file extension for C test sources. |
||
12839 | ac_ext=c |
||
12840 | |||
12841 | # Object file extension for compiled C test sources. |
||
12842 | objext=o |
||
12843 | objext=$objext |
||
12844 | |||
12845 | # Code to be used in simple compile tests |
||
12846 | lt_simple_compile_test_code="int some_variable = 0;" |
||
12847 | |||
12848 | # Code to be used in simple link tests |
||
12849 | lt_simple_link_test_code='int main(){return(0);}' |
||
12850 | |||
12851 | |||
12852 | |||
12853 | |||
12854 | |||
12855 | |||
12856 | |||
12857 | # If no C compiler was specified, use CC. |
||
12858 | LTCC=${LTCC-"$CC"} |
||
12859 | |||
12860 | # If no C compiler flags were specified, use CFLAGS. |
||
12861 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
12862 | |||
12863 | # Allow CC to be a program name with arguments. |
||
12864 | compiler=$CC |
||
12865 | |||
12866 | # Save the default compiler, since it gets overwritten when the other |
||
12867 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
||
12868 | compiler_DEFAULT=$CC |
||
12869 | |||
12870 | # save warnings/boilerplate of simple test code |
||
12871 | ac_outfile=conftest.$ac_objext |
||
12872 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
12873 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
12874 | _lt_compiler_boilerplate=`cat conftest.err` |
||
12875 | $RM conftest* |
||
12876 | |||
12877 | ac_outfile=conftest.$ac_objext |
||
12878 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
12879 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
12880 | _lt_linker_boilerplate=`cat conftest.err` |
||
12881 | $RM -r conftest* |
||
12882 | |||
12883 | |||
12884 | ## CAVEAT EMPTOR: |
||
12885 | ## There is no encapsulation within the following macros, do not change |
||
12886 | ## the running order or otherwise move them around unless you know exactly |
||
12887 | ## what you are doing... |
||
12888 | if test -n "$compiler"; then |
||
12889 | |||
12890 | lt_prog_compiler_no_builtin_flag= |
||
12891 | |||
12892 | if test yes = "$GCC"; then |
||
12893 | case $cc_basename in |
||
12894 | nvcc*) |
||
12895 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
||
12896 | *) |
||
12897 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
||
12898 | esac |
||
12899 | |||
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
||
12901 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
||
12902 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
||
12903 | $as_echo_n "(cached) " >&6 |
||
12904 | else |
||
12905 | lt_cv_prog_compiler_rtti_exceptions=no |
||
12906 | ac_outfile=conftest.$ac_objext |
||
12907 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
12908 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
||
12909 | # Insert the option either (1) after the last *FLAGS variable, or |
||
12910 | # (2) before a word containing "conftest.", or (3) at the end. |
||
12911 | # Note that $ac_compile itself does not contain backslashes and begins |
||
12912 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
12913 | # The option is referenced via a variable to avoid confusing sed. |
||
12914 | lt_compile=`echo "$ac_compile" | $SED \ |
||
12915 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
12916 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
12917 | -e 's:$: $lt_compiler_flag:'` |
||
12918 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
12919 | (eval "$lt_compile" 2>conftest.err) |
||
12920 | ac_status=$? |
||
12921 | cat conftest.err >&5 |
||
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
12923 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
12924 | # The compiler can only warn and ignore the option if not recognized |
||
12925 | # So say no if there are warnings other than the usual output. |
||
12926 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
||
12927 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
12928 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
12929 | lt_cv_prog_compiler_rtti_exceptions=yes |
||
12930 | fi |
||
12931 | fi |
||
12932 | $RM conftest* |
||
12933 | |||
12934 | fi |
||
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
||
12936 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
||
12937 | |||
12938 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
||
12939 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
||
12940 | else |
||
12941 | : |
||
12942 | fi |
||
12943 | |||
12944 | fi |
||
12945 | |||
12946 | |||
12947 | |||
12948 | |||
12949 | |||
12950 | |||
12951 | lt_prog_compiler_wl= |
||
12952 | lt_prog_compiler_pic= |
||
12953 | lt_prog_compiler_static= |
||
12954 | |||
12955 | |||
12956 | if test yes = "$GCC"; then |
||
12957 | lt_prog_compiler_wl='-Wl,' |
||
12958 | lt_prog_compiler_static='-static' |
||
12959 | |||
12960 | case $host_os in |
||
12961 | aix*) |
||
12962 | # All AIX code is PIC. |
||
12963 | if test ia64 = "$host_cpu"; then |
||
12964 | # AIX 5 now supports IA64 processor |
||
12965 | lt_prog_compiler_static='-Bstatic' |
||
12966 | fi |
||
12967 | lt_prog_compiler_pic='-fPIC' |
||
12968 | ;; |
||
12969 | |||
12970 | amigaos*) |
||
12971 | case $host_cpu in |
||
12972 | powerpc) |
||
12973 | # see comment about AmigaOS4 .so support |
||
12974 | lt_prog_compiler_pic='-fPIC' |
||
12975 | ;; |
||
12976 | m68k) |
||
12977 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
12978 | # adding the '-m68020' flag to GCC prevents building anything better, |
||
12979 | # like '-m68040'. |
||
12980 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
||
12981 | ;; |
||
12982 | esac |
||
12983 | ;; |
||
12984 | |||
12985 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
12986 | # PIC is the default for these OSes. |
||
12987 | ;; |
||
12988 | |||
12989 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
||
12990 | # This hack is so that the source file can tell whether it is being |
||
12991 | # built for inclusion in a dll (and should export symbols for example). |
||
12992 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
12993 | # (--disable-auto-import) libraries |
||
12994 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
12995 | case $host_os in |
||
12996 | os2*) |
||
12997 | lt_prog_compiler_static='$wl-static' |
||
12998 | ;; |
||
12999 | esac |
||
13000 | ;; |
||
13001 | |||
13002 | darwin* | rhapsody*) |
||
13003 | # PIC is the default on this platform |
||
13004 | # Common symbols not allowed in MH_DYLIB files |
||
13005 | lt_prog_compiler_pic='-fno-common' |
||
13006 | ;; |
||
13007 | |||
13008 | haiku*) |
||
13009 | # PIC is the default for Haiku. |
||
13010 | # The "-static" flag exists, but is broken. |
||
13011 | lt_prog_compiler_static= |
||
13012 | ;; |
||
13013 | |||
13014 | hpux*) |
||
13015 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
||
13016 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
||
13017 | # sets the default TLS model and affects inlining. |
||
13018 | case $host_cpu in |
||
13019 | hppa*64*) |
||
13020 | # +Z the default |
||
13021 | ;; |
||
13022 | *) |
||
13023 | lt_prog_compiler_pic='-fPIC' |
||
13024 | ;; |
||
13025 | esac |
||
13026 | ;; |
||
13027 | |||
13028 | interix[3-9]*) |
||
13029 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
13030 | # Instead, we relocate shared libraries at runtime. |
||
13031 | ;; |
||
13032 | |||
13033 | msdosdjgpp*) |
||
13034 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
||
13035 | # on systems that don't support them. |
||
13036 | lt_prog_compiler_can_build_shared=no |
||
13037 | enable_shared=no |
||
13038 | ;; |
||
13039 | |||
13040 | *nto* | *qnx*) |
||
13041 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
13042 | # it will coredump. |
||
13043 | lt_prog_compiler_pic='-fPIC -shared' |
||
13044 | ;; |
||
13045 | |||
13046 | sysv4*MP*) |
||
13047 | if test -d /usr/nec; then |
||
13048 | lt_prog_compiler_pic=-Kconform_pic |
||
13049 | fi |
||
13050 | ;; |
||
13051 | |||
13052 | *) |
||
13053 | lt_prog_compiler_pic='-fPIC' |
||
13054 | ;; |
||
13055 | esac |
||
13056 | |||
13057 | case $cc_basename in |
||
13058 | nvcc*) # Cuda Compiler Driver 2.2 |
||
13059 | lt_prog_compiler_wl='-Xlinker ' |
||
13060 | if test -n "$lt_prog_compiler_pic"; then |
||
13061 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
||
13062 | fi |
||
13063 | ;; |
||
13064 | esac |
||
13065 | else |
||
13066 | # PORTME Check for flag to pass linker flags through the system compiler. |
||
13067 | case $host_os in |
||
13068 | aix*) |
||
13069 | lt_prog_compiler_wl='-Wl,' |
||
13070 | if test ia64 = "$host_cpu"; then |
||
13071 | # AIX 5 now supports IA64 processor |
||
13072 | lt_prog_compiler_static='-Bstatic' |
||
13073 | else |
||
13074 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
||
13075 | fi |
||
13076 | ;; |
||
13077 | |||
13078 | darwin* | rhapsody*) |
||
13079 | # PIC is the default on this platform |
||
13080 | # Common symbols not allowed in MH_DYLIB files |
||
13081 | lt_prog_compiler_pic='-fno-common' |
||
13082 | case $cc_basename in |
||
13083 | nagfor*) |
||
13084 | # NAG Fortran compiler |
||
13085 | lt_prog_compiler_wl='-Wl,-Wl,,' |
||
13086 | lt_prog_compiler_pic='-PIC' |
||
13087 | lt_prog_compiler_static='-Bstatic' |
||
13088 | ;; |
||
13089 | esac |
||
13090 | ;; |
||
13091 | |||
13092 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
||
13093 | # This hack is so that the source file can tell whether it is being |
||
13094 | # built for inclusion in a dll (and should export symbols for example). |
||
13095 | lt_prog_compiler_pic='-DDLL_EXPORT' |
||
13096 | case $host_os in |
||
13097 | os2*) |
||
13098 | lt_prog_compiler_static='$wl-static' |
||
13099 | ;; |
||
13100 | esac |
||
13101 | ;; |
||
13102 | |||
13103 | hpux9* | hpux10* | hpux11*) |
||
13104 | lt_prog_compiler_wl='-Wl,' |
||
13105 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
||
13106 | # not for PA HP-UX. |
||
13107 | case $host_cpu in |
||
13108 | hppa*64*|ia64*) |
||
13109 | # +Z the default |
||
13110 | ;; |
||
13111 | *) |
||
13112 | lt_prog_compiler_pic='+Z' |
||
13113 | ;; |
||
13114 | esac |
||
13115 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
||
13116 | lt_prog_compiler_static='$wl-a ${wl}archive' |
||
13117 | ;; |
||
13118 | |||
13119 | irix5* | irix6* | nonstopux*) |
||
13120 | lt_prog_compiler_wl='-Wl,' |
||
13121 | # PIC (with -KPIC) is the default. |
||
13122 | lt_prog_compiler_static='-non_shared' |
||
13123 | ;; |
||
13124 | |||
13125 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
13126 | case $cc_basename in |
||
13127 | # old Intel for x86_64, which still supported -KPIC. |
||
13128 | ecc*) |
||
13129 | lt_prog_compiler_wl='-Wl,' |
||
13130 | lt_prog_compiler_pic='-KPIC' |
||
13131 | lt_prog_compiler_static='-static' |
||
13132 | ;; |
||
13133 | # icc used to be incompatible with GCC. |
||
13134 | # ICC 10 doesn't accept -KPIC any more. |
||
13135 | icc* | ifort*) |
||
13136 | lt_prog_compiler_wl='-Wl,' |
||
13137 | lt_prog_compiler_pic='-fPIC' |
||
13138 | lt_prog_compiler_static='-static' |
||
13139 | ;; |
||
13140 | # Lahey Fortran 8.1. |
||
13141 | lf95*) |
||
13142 | lt_prog_compiler_wl='-Wl,' |
||
13143 | lt_prog_compiler_pic='--shared' |
||
13144 | lt_prog_compiler_static='--static' |
||
13145 | ;; |
||
13146 | nagfor*) |
||
13147 | # NAG Fortran compiler |
||
13148 | lt_prog_compiler_wl='-Wl,-Wl,,' |
||
13149 | lt_prog_compiler_pic='-PIC' |
||
13150 | lt_prog_compiler_static='-Bstatic' |
||
13151 | ;; |
||
13152 | tcc*) |
||
13153 | # Fabrice Bellard et al's Tiny C Compiler |
||
13154 | lt_prog_compiler_wl='-Wl,' |
||
13155 | lt_prog_compiler_pic='-fPIC' |
||
13156 | lt_prog_compiler_static='-static' |
||
13157 | ;; |
||
13158 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
||
13159 | # Portland Group compilers (*not* the Pentium gcc compiler, |
||
13160 | # which looks to be a dead project) |
||
13161 | lt_prog_compiler_wl='-Wl,' |
||
13162 | lt_prog_compiler_pic='-fpic' |
||
13163 | lt_prog_compiler_static='-Bstatic' |
||
13164 | ;; |
||
13165 | ccc*) |
||
13166 | lt_prog_compiler_wl='-Wl,' |
||
13167 | # All Alpha code is PIC. |
||
13168 | lt_prog_compiler_static='-non_shared' |
||
13169 | ;; |
||
13170 | xl* | bgxl* | bgf* | mpixl*) |
||
13171 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
||
13172 | lt_prog_compiler_wl='-Wl,' |
||
13173 | lt_prog_compiler_pic='-qpic' |
||
13174 | lt_prog_compiler_static='-qstaticlink' |
||
13175 | ;; |
||
13176 | *) |
||
13177 | case `$CC -V 2>&1 | sed 5q` in |
||
13178 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
||
13179 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
||
13180 | lt_prog_compiler_pic='-KPIC' |
||
13181 | lt_prog_compiler_static='-Bstatic' |
||
13182 | lt_prog_compiler_wl='' |
||
13183 | ;; |
||
13184 | *Sun\ F* | *Sun*Fortran*) |
||
13185 | lt_prog_compiler_pic='-KPIC' |
||
13186 | lt_prog_compiler_static='-Bstatic' |
||
13187 | lt_prog_compiler_wl='-Qoption ld ' |
||
13188 | ;; |
||
13189 | *Sun\ C*) |
||
13190 | # Sun C 5.9 |
||
13191 | lt_prog_compiler_pic='-KPIC' |
||
13192 | lt_prog_compiler_static='-Bstatic' |
||
13193 | lt_prog_compiler_wl='-Wl,' |
||
13194 | ;; |
||
13195 | *Intel*\ [CF]*Compiler*) |
||
13196 | lt_prog_compiler_wl='-Wl,' |
||
13197 | lt_prog_compiler_pic='-fPIC' |
||
13198 | lt_prog_compiler_static='-static' |
||
13199 | ;; |
||
13200 | *Portland\ Group*) |
||
13201 | lt_prog_compiler_wl='-Wl,' |
||
13202 | lt_prog_compiler_pic='-fpic' |
||
13203 | lt_prog_compiler_static='-Bstatic' |
||
13204 | ;; |
||
13205 | esac |
||
13206 | ;; |
||
13207 | esac |
||
13208 | ;; |
||
13209 | |||
13210 | newsos6) |
||
13211 | lt_prog_compiler_pic='-KPIC' |
||
13212 | lt_prog_compiler_static='-Bstatic' |
||
13213 | ;; |
||
13214 | |||
13215 | *nto* | *qnx*) |
||
13216 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
13217 | # it will coredump. |
||
13218 | lt_prog_compiler_pic='-fPIC -shared' |
||
13219 | ;; |
||
13220 | |||
13221 | osf3* | osf4* | osf5*) |
||
13222 | lt_prog_compiler_wl='-Wl,' |
||
13223 | # All OSF/1 code is PIC. |
||
13224 | lt_prog_compiler_static='-non_shared' |
||
13225 | ;; |
||
13226 | |||
13227 | rdos*) |
||
13228 | lt_prog_compiler_static='-non_shared' |
||
13229 | ;; |
||
13230 | |||
13231 | solaris*) |
||
13232 | lt_prog_compiler_pic='-KPIC' |
||
13233 | lt_prog_compiler_static='-Bstatic' |
||
13234 | case $cc_basename in |
||
13235 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
||
13236 | lt_prog_compiler_wl='-Qoption ld ';; |
||
13237 | *) |
||
13238 | lt_prog_compiler_wl='-Wl,';; |
||
13239 | esac |
||
13240 | ;; |
||
13241 | |||
13242 | sunos4*) |
||
13243 | lt_prog_compiler_wl='-Qoption ld ' |
||
13244 | lt_prog_compiler_pic='-PIC' |
||
13245 | lt_prog_compiler_static='-Bstatic' |
||
13246 | ;; |
||
13247 | |||
13248 | sysv4 | sysv4.2uw2* | sysv4.3*) |
||
13249 | lt_prog_compiler_wl='-Wl,' |
||
13250 | lt_prog_compiler_pic='-KPIC' |
||
13251 | lt_prog_compiler_static='-Bstatic' |
||
13252 | ;; |
||
13253 | |||
13254 | sysv4*MP*) |
||
13255 | if test -d /usr/nec; then |
||
13256 | lt_prog_compiler_pic='-Kconform_pic' |
||
13257 | lt_prog_compiler_static='-Bstatic' |
||
13258 | fi |
||
13259 | ;; |
||
13260 | |||
13261 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
13262 | lt_prog_compiler_wl='-Wl,' |
||
13263 | lt_prog_compiler_pic='-KPIC' |
||
13264 | lt_prog_compiler_static='-Bstatic' |
||
13265 | ;; |
||
13266 | |||
13267 | unicos*) |
||
13268 | lt_prog_compiler_wl='-Wl,' |
||
13269 | lt_prog_compiler_can_build_shared=no |
||
13270 | ;; |
||
13271 | |||
13272 | uts4*) |
||
13273 | lt_prog_compiler_pic='-pic' |
||
13274 | lt_prog_compiler_static='-Bstatic' |
||
13275 | ;; |
||
13276 | |||
13277 | *) |
||
13278 | lt_prog_compiler_can_build_shared=no |
||
13279 | ;; |
||
13280 | esac |
||
13281 | fi |
||
13282 | |||
13283 | case $host_os in |
||
13284 | # For platforms that do not support PIC, -DPIC is meaningless: |
||
13285 | *djgpp*) |
||
13286 | lt_prog_compiler_pic= |
||
13287 | ;; |
||
13288 | *) |
||
13289 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
||
13290 | ;; |
||
13291 | esac |
||
13292 | |||
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
||
13294 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
||
13295 | if ${lt_cv_prog_compiler_pic+:} false; then : |
||
13296 | $as_echo_n "(cached) " >&6 |
||
13297 | else |
||
13298 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
||
13299 | fi |
||
13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
||
13301 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
||
13302 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
||
13303 | |||
13304 | # |
||
13305 | # Check to make sure the PIC flag actually works. |
||
13306 | # |
||
13307 | if test -n "$lt_prog_compiler_pic"; then |
||
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
||
13309 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
||
13310 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
||
13311 | $as_echo_n "(cached) " >&6 |
||
13312 | else |
||
13313 | lt_cv_prog_compiler_pic_works=no |
||
13314 | ac_outfile=conftest.$ac_objext |
||
13315 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
13316 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
||
13317 | # Insert the option either (1) after the last *FLAGS variable, or |
||
13318 | # (2) before a word containing "conftest.", or (3) at the end. |
||
13319 | # Note that $ac_compile itself does not contain backslashes and begins |
||
13320 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
13321 | # The option is referenced via a variable to avoid confusing sed. |
||
13322 | lt_compile=`echo "$ac_compile" | $SED \ |
||
13323 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
13324 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
13325 | -e 's:$: $lt_compiler_flag:'` |
||
13326 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
13327 | (eval "$lt_compile" 2>conftest.err) |
||
13328 | ac_status=$? |
||
13329 | cat conftest.err >&5 |
||
13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13331 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
13332 | # The compiler can only warn and ignore the option if not recognized |
||
13333 | # So say no if there are warnings other than the usual output. |
||
13334 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
||
13335 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
13336 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
13337 | lt_cv_prog_compiler_pic_works=yes |
||
13338 | fi |
||
13339 | fi |
||
13340 | $RM conftest* |
||
13341 | |||
13342 | fi |
||
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
||
13344 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
||
13345 | |||
13346 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
||
13347 | case $lt_prog_compiler_pic in |
||
13348 | "" | " "*) ;; |
||
13349 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
||
13350 | esac |
||
13351 | else |
||
13352 | lt_prog_compiler_pic= |
||
13353 | lt_prog_compiler_can_build_shared=no |
||
13354 | fi |
||
13355 | |||
13356 | fi |
||
13357 | |||
13358 | |||
13359 | |||
13360 | |||
13361 | |||
13362 | |||
13363 | |||
13364 | |||
13365 | |||
13366 | |||
13367 | |||
13368 | # |
||
13369 | # Check to make sure the static flag actually works. |
||
13370 | # |
||
13371 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
||
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
13373 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
||
13374 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
||
13375 | $as_echo_n "(cached) " >&6 |
||
13376 | else |
||
13377 | lt_cv_prog_compiler_static_works=no |
||
13378 | save_LDFLAGS=$LDFLAGS |
||
13379 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
13380 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
13381 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
13382 | # The linker can only warn and ignore the option if not recognized |
||
13383 | # So say no if there are warnings |
||
13384 | if test -s conftest.err; then |
||
13385 | # Append any errors to the config.log. |
||
13386 | cat conftest.err 1>&5 |
||
13387 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
||
13388 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
13389 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
13390 | lt_cv_prog_compiler_static_works=yes |
||
13391 | fi |
||
13392 | else |
||
13393 | lt_cv_prog_compiler_static_works=yes |
||
13394 | fi |
||
13395 | fi |
||
13396 | $RM -r conftest* |
||
13397 | LDFLAGS=$save_LDFLAGS |
||
13398 | |||
13399 | fi |
||
13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
||
13401 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
||
13402 | |||
13403 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
||
13404 | : |
||
13405 | else |
||
13406 | lt_prog_compiler_static= |
||
13407 | fi |
||
13408 | |||
13409 | |||
13410 | |||
13411 | |||
13412 | |||
13413 | |||
13414 | |||
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
13416 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
13417 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
||
13418 | $as_echo_n "(cached) " >&6 |
||
13419 | else |
||
13420 | lt_cv_prog_compiler_c_o=no |
||
13421 | $RM -r conftest 2>/dev/null |
||
13422 | mkdir conftest |
||
13423 | cd conftest |
||
13424 | mkdir out |
||
13425 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
13426 | |||
13427 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
13428 | # Insert the option either (1) after the last *FLAGS variable, or |
||
13429 | # (2) before a word containing "conftest.", or (3) at the end. |
||
13430 | # Note that $ac_compile itself does not contain backslashes and begins |
||
13431 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
13432 | lt_compile=`echo "$ac_compile" | $SED \ |
||
13433 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
13434 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
13435 | -e 's:$: $lt_compiler_flag:'` |
||
13436 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
13437 | (eval "$lt_compile" 2>out/conftest.err) |
||
13438 | ac_status=$? |
||
13439 | cat out/conftest.err >&5 |
||
13440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13441 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
13442 | then |
||
13443 | # The compiler can only warn and ignore the option if not recognized |
||
13444 | # So say no if there are warnings |
||
13445 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
13446 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
13447 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
13448 | lt_cv_prog_compiler_c_o=yes |
||
13449 | fi |
||
13450 | fi |
||
13451 | chmod u+w . 2>&5 |
||
13452 | $RM conftest* |
||
13453 | # SGI C++ compiler will create directory out/ii_files/ for |
||
13454 | # template instantiation |
||
13455 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
13456 | $RM out/* && rmdir out |
||
13457 | cd .. |
||
13458 | $RM -r conftest |
||
13459 | $RM conftest* |
||
13460 | |||
13461 | fi |
||
13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
||
13463 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
||
13464 | |||
13465 | |||
13466 | |||
13467 | |||
13468 | |||
13469 | |||
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
13471 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
13472 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
||
13473 | $as_echo_n "(cached) " >&6 |
||
13474 | else |
||
13475 | lt_cv_prog_compiler_c_o=no |
||
13476 | $RM -r conftest 2>/dev/null |
||
13477 | mkdir conftest |
||
13478 | cd conftest |
||
13479 | mkdir out |
||
13480 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
13481 | |||
13482 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
13483 | # Insert the option either (1) after the last *FLAGS variable, or |
||
13484 | # (2) before a word containing "conftest.", or (3) at the end. |
||
13485 | # Note that $ac_compile itself does not contain backslashes and begins |
||
13486 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
13487 | lt_compile=`echo "$ac_compile" | $SED \ |
||
13488 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
13489 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
13490 | -e 's:$: $lt_compiler_flag:'` |
||
13491 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
13492 | (eval "$lt_compile" 2>out/conftest.err) |
||
13493 | ac_status=$? |
||
13494 | cat out/conftest.err >&5 |
||
13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
13496 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
13497 | then |
||
13498 | # The compiler can only warn and ignore the option if not recognized |
||
13499 | # So say no if there are warnings |
||
13500 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
13501 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
13502 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
13503 | lt_cv_prog_compiler_c_o=yes |
||
13504 | fi |
||
13505 | fi |
||
13506 | chmod u+w . 2>&5 |
||
13507 | $RM conftest* |
||
13508 | # SGI C++ compiler will create directory out/ii_files/ for |
||
13509 | # template instantiation |
||
13510 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
13511 | $RM out/* && rmdir out |
||
13512 | cd .. |
||
13513 | $RM -r conftest |
||
13514 | $RM conftest* |
||
13515 | |||
13516 | fi |
||
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
||
13518 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
||
13519 | |||
13520 | |||
13521 | |||
13522 | |||
13523 | hard_links=nottested |
||
13524 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
||
13525 | # do not overwrite the value of need_locks provided by the user |
||
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
||
13527 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
||
13528 | hard_links=yes |
||
13529 | $RM conftest* |
||
13530 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
13531 | touch conftest.a |
||
13532 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
13533 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
||
13535 | $as_echo "$hard_links" >&6; } |
||
13536 | if test no = "$hard_links"; then |
||
13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
||
13538 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
||
13539 | need_locks=warn |
||
13540 | fi |
||
13541 | else |
||
13542 | need_locks=no |
||
13543 | fi |
||
13544 | |||
13545 | |||
13546 | |||
13547 | |||
13548 | |||
13549 | |||
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
13551 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
13552 | |||
13553 | runpath_var= |
||
13554 | allow_undefined_flag= |
||
13555 | always_export_symbols=no |
||
13556 | archive_cmds= |
||
13557 | archive_expsym_cmds= |
||
13558 | compiler_needs_object=no |
||
13559 | enable_shared_with_static_runtimes=no |
||
13560 | export_dynamic_flag_spec= |
||
13561 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
13562 | hardcode_automatic=no |
||
13563 | hardcode_direct=no |
||
13564 | hardcode_direct_absolute=no |
||
13565 | hardcode_libdir_flag_spec= |
||
13566 | hardcode_libdir_separator= |
||
13567 | hardcode_minus_L=no |
||
13568 | hardcode_shlibpath_var=unsupported |
||
13569 | inherit_rpath=no |
||
13570 | link_all_deplibs=unknown |
||
13571 | module_cmds= |
||
13572 | module_expsym_cmds= |
||
13573 | old_archive_from_new_cmds= |
||
13574 | old_archive_from_expsyms_cmds= |
||
13575 | thread_safe_flag_spec= |
||
13576 | whole_archive_flag_spec= |
||
13577 | # include_expsyms should be a list of space-separated symbols to be *always* |
||
13578 | # included in the symbol list |
||
13579 | include_expsyms= |
||
13580 | # exclude_expsyms can be an extended regexp of symbols to exclude |
||
13581 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
||
13582 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
||
13583 | # as well as any symbol that contains 'd'. |
||
13584 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
||
13585 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
||
13586 | # platforms (ab)use it in PIC code, but their linkers get confused if |
||
13587 | # the symbol is explicitly referenced. Since portable code cannot |
||
13588 | # rely on this symbol name, it's probably fine to never include it in |
||
13589 | # preloaded symbol tables. |
||
13590 | # Exclude shared library initialization/finalization symbols. |
||
13591 | extract_expsyms_cmds= |
||
13592 | |||
13593 | case $host_os in |
||
13594 | cygwin* | mingw* | pw32* | cegcc*) |
||
13595 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
||
13596 | # When not using gcc, we currently assume that we are using |
||
13597 | # Microsoft Visual C++. |
||
13598 | if test yes != "$GCC"; then |
||
13599 | with_gnu_ld=no |
||
13600 | fi |
||
13601 | ;; |
||
13602 | interix*) |
||
13603 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
||
13604 | with_gnu_ld=yes |
||
13605 | ;; |
||
13606 | openbsd* | bitrig*) |
||
13607 | with_gnu_ld=no |
||
13608 | ;; |
||
13609 | linux* | k*bsd*-gnu | gnu*) |
||
13610 | link_all_deplibs=no |
||
13611 | ;; |
||
13612 | esac |
||
13613 | |||
13614 | ld_shlibs=yes |
||
13615 | |||
13616 | # On some targets, GNU ld is compatible enough with the native linker |
||
13617 | # that we're better off using the native interface for both. |
||
13618 | lt_use_gnu_ld_interface=no |
||
13619 | if test yes = "$with_gnu_ld"; then |
||
13620 | case $host_os in |
||
13621 | aix*) |
||
13622 | # The AIX port of GNU ld has always aspired to compatibility |
||
13623 | # with the native linker. However, as the warning in the GNU ld |
||
13624 | # block says, versions before 2.19.5* couldn't really create working |
||
13625 | # shared libraries, regardless of the interface used. |
||
13626 | case `$LD -v 2>&1` in |
||
13627 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
||
13628 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
||
13629 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
||
13630 | *) |
||
13631 | lt_use_gnu_ld_interface=yes |
||
13632 | ;; |
||
13633 | esac |
||
13634 | ;; |
||
13635 | *) |
||
13636 | lt_use_gnu_ld_interface=yes |
||
13637 | ;; |
||
13638 | esac |
||
13639 | fi |
||
13640 | |||
13641 | if test yes = "$lt_use_gnu_ld_interface"; then |
||
13642 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
13643 | wlarc='$wl' |
||
13644 | |||
13645 | # Set some defaults for GNU ld with shared library support. These |
||
13646 | # are reset later if shared libraries are not supported. Putting them |
||
13647 | # here allows them to be overridden if necessary. |
||
13648 | runpath_var=LD_RUN_PATH |
||
13649 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
13650 | export_dynamic_flag_spec='$wl--export-dynamic' |
||
13651 | # ancient GNU ld didn't support --whole-archive et. al. |
||
13652 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
||
13653 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
||
13654 | else |
||
13655 | whole_archive_flag_spec= |
||
13656 | fi |
||
13657 | supports_anon_versioning=no |
||
13658 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
||
13659 | *GNU\ gold*) supports_anon_versioning=yes ;; |
||
13660 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
||
13661 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
||
13662 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
||
13663 | *\ 2.11.*) ;; # other 2.11 versions |
||
13664 | *) supports_anon_versioning=yes ;; |
||
13665 | esac |
||
13666 | |||
13667 | # See if GNU ld supports shared libraries. |
||
13668 | case $host_os in |
||
13669 | aix[3-9]*) |
||
13670 | # On AIX/PPC, the GNU linker is very broken |
||
13671 | if test ia64 != "$host_cpu"; then |
||
13672 | ld_shlibs=no |
||
13673 | cat <<_LT_EOF 1>&2 |
||
13674 | |||
13675 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
||
13676 | *** to be unable to reliably create shared libraries on AIX. |
||
13677 | *** Therefore, libtool is disabling shared libraries support. If you |
||
13678 | *** really care for shared libraries, you may want to install binutils |
||
13679 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
||
13680 | *** You will then need to restart the configuration process. |
||
13681 | |||
13682 | _LT_EOF |
||
13683 | fi |
||
13684 | ;; |
||
13685 | |||
13686 | amigaos*) |
||
13687 | case $host_cpu in |
||
13688 | powerpc) |
||
13689 | # see comment about AmigaOS4 .so support |
||
13690 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13691 | archive_expsym_cmds='' |
||
13692 | ;; |
||
13693 | m68k) |
||
13694 | 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)' |
||
13695 | hardcode_libdir_flag_spec='-L$libdir' |
||
13696 | hardcode_minus_L=yes |
||
13697 | ;; |
||
13698 | esac |
||
13699 | ;; |
||
13700 | |||
13701 | beos*) |
||
13702 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
13703 | allow_undefined_flag=unsupported |
||
13704 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
13705 | # support --undefined. This deserves some investigation. FIXME |
||
13706 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13707 | else |
||
13708 | ld_shlibs=no |
||
13709 | fi |
||
13710 | ;; |
||
13711 | |||
13712 | cygwin* | mingw* | pw32* | cegcc*) |
||
13713 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
||
13714 | # as there is no search path for DLLs. |
||
13715 | hardcode_libdir_flag_spec='-L$libdir' |
||
13716 | export_dynamic_flag_spec='$wl--export-all-symbols' |
||
13717 | allow_undefined_flag=unsupported |
||
13718 | always_export_symbols=no |
||
13719 | enable_shared_with_static_runtimes=yes |
||
13720 | 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' |
||
13721 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
||
13722 | |||
13723 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
||
13724 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
13725 | # If the export-symbols file already is a .def file, use it as |
||
13726 | # is; otherwise, prepend EXPORTS... |
||
13727 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
13728 | cp $export_symbols $output_objdir/$soname.def; |
||
13729 | else |
||
13730 | echo EXPORTS > $output_objdir/$soname.def; |
||
13731 | cat $export_symbols >> $output_objdir/$soname.def; |
||
13732 | fi~ |
||
13733 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
13734 | else |
||
13735 | ld_shlibs=no |
||
13736 | fi |
||
13737 | ;; |
||
13738 | |||
13739 | haiku*) |
||
13740 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13741 | link_all_deplibs=yes |
||
13742 | ;; |
||
13743 | |||
13744 | os2*) |
||
13745 | hardcode_libdir_flag_spec='-L$libdir' |
||
13746 | hardcode_minus_L=yes |
||
13747 | allow_undefined_flag=unsupported |
||
13748 | shrext_cmds=.dll |
||
13749 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
13750 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
13751 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
13752 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
13753 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
||
13754 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
13755 | emximp -o $lib $output_objdir/$libname.def' |
||
13756 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
13757 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
13758 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
13759 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
13760 | prefix_cmds="$SED"~ |
||
13761 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
||
13762 | prefix_cmds="$prefix_cmds -e 1d"; |
||
13763 | fi~ |
||
13764 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
||
13765 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
||
13766 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
13767 | emximp -o $lib $output_objdir/$libname.def' |
||
13768 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
||
13769 | enable_shared_with_static_runtimes=yes |
||
13770 | ;; |
||
13771 | |||
13772 | interix[3-9]*) |
||
13773 | hardcode_direct=no |
||
13774 | hardcode_shlibpath_var=no |
||
13775 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
||
13776 | export_dynamic_flag_spec='$wl-E' |
||
13777 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
13778 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
13779 | # default) and relocated if they conflict, which is a slow very memory |
||
13780 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
13781 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
13782 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
13783 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
||
13784 | 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' |
||
13785 | ;; |
||
13786 | |||
13787 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
||
13788 | tmp_diet=no |
||
13789 | if test linux-dietlibc = "$host_os"; then |
||
13790 | case $cc_basename in |
||
13791 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
||
13792 | esac |
||
13793 | fi |
||
13794 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
||
13795 | && test no = "$tmp_diet" |
||
13796 | then |
||
13797 | tmp_addflag=' $pic_flag' |
||
13798 | tmp_sharedflag='-shared' |
||
13799 | case $cc_basename,$host_cpu in |
||
13800 | pgcc*) # Portland Group C compiler |
||
13801 | 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' |
||
13802 | tmp_addflag=' $pic_flag' |
||
13803 | ;; |
||
13804 | pgf77* | pgf90* | pgf95* | pgfortran*) |
||
13805 | # Portland Group f77 and f90 compilers |
||
13806 | 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' |
||
13807 | tmp_addflag=' $pic_flag -Mnomain' ;; |
||
13808 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
||
13809 | tmp_addflag=' -i_dynamic' ;; |
||
13810 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
||
13811 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
||
13812 | ifc* | ifort*) # Intel Fortran compiler |
||
13813 | tmp_addflag=' -nofor_main' ;; |
||
13814 | lf95*) # Lahey Fortran 8.1 |
||
13815 | whole_archive_flag_spec= |
||
13816 | tmp_sharedflag='--shared' ;; |
||
13817 | nagfor*) # NAGFOR 5.3 |
||
13818 | tmp_sharedflag='-Wl,-shared' ;; |
||
13819 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
||
13820 | tmp_sharedflag='-qmkshrobj' |
||
13821 | tmp_addflag= ;; |
||
13822 | nvcc*) # Cuda Compiler Driver 2.2 |
||
13823 | 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' |
||
13824 | compiler_needs_object=yes |
||
13825 | ;; |
||
13826 | esac |
||
13827 | case `$CC -V 2>&1 | sed 5q` in |
||
13828 | *Sun\ C*) # Sun C 5.9 |
||
13829 | 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' |
||
13830 | compiler_needs_object=yes |
||
13831 | tmp_sharedflag='-G' ;; |
||
13832 | *Sun\ F*) # Sun Fortran 8.3 |
||
13833 | tmp_sharedflag='-G' ;; |
||
13834 | esac |
||
13835 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13836 | |||
13837 | if test yes = "$supports_anon_versioning"; then |
||
13838 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
||
13839 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
13840 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
13841 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
||
13842 | fi |
||
13843 | |||
13844 | case $cc_basename in |
||
13845 | tcc*) |
||
13846 | export_dynamic_flag_spec='-rdynamic' |
||
13847 | ;; |
||
13848 | xlf* | bgf* | bgxlf* | mpixlf*) |
||
13849 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
||
13850 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
||
13851 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
13852 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
||
13853 | if test yes = "$supports_anon_versioning"; then |
||
13854 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
||
13855 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
13856 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
13857 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
||
13858 | fi |
||
13859 | ;; |
||
13860 | esac |
||
13861 | else |
||
13862 | ld_shlibs=no |
||
13863 | fi |
||
13864 | ;; |
||
13865 | |||
13866 | netbsd* | netbsdelf*-gnu) |
||
13867 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
13868 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
||
13869 | wlarc= |
||
13870 | else |
||
13871 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13872 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
13873 | fi |
||
13874 | ;; |
||
13875 | |||
13876 | solaris*) |
||
13877 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
||
13878 | ld_shlibs=no |
||
13879 | cat <<_LT_EOF 1>&2 |
||
13880 | |||
13881 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
||
13882 | *** create shared libraries on Solaris systems. Therefore, libtool |
||
13883 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
13884 | *** binutils to release 2.9.1 or newer. Another option is to modify |
||
13885 | *** your PATH or compiler configuration so that the native linker is |
||
13886 | *** used, and then restart. |
||
13887 | |||
13888 | _LT_EOF |
||
13889 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
13890 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13891 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
13892 | else |
||
13893 | ld_shlibs=no |
||
13894 | fi |
||
13895 | ;; |
||
13896 | |||
13897 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
||
13898 | case `$LD -v 2>&1` in |
||
13899 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
||
13900 | ld_shlibs=no |
||
13901 | cat <<_LT_EOF 1>&2 |
||
13902 | |||
13903 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
||
13904 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
||
13905 | *** is disabling shared libraries support. We urge you to upgrade GNU |
||
13906 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
||
13907 | *** your PATH or compiler configuration so that the native linker is |
||
13908 | *** used, and then restart. |
||
13909 | |||
13910 | _LT_EOF |
||
13911 | ;; |
||
13912 | *) |
||
13913 | # For security reasons, it is highly recommended that you always |
||
13914 | # use absolute paths for naming shared libraries, and exclude the |
||
13915 | # DT_RUNPATH tag from executables and libraries. But doing so |
||
13916 | # requires that you compile everything twice, which is a pain. |
||
13917 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
13918 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
13919 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13920 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
13921 | else |
||
13922 | ld_shlibs=no |
||
13923 | fi |
||
13924 | ;; |
||
13925 | esac |
||
13926 | ;; |
||
13927 | |||
13928 | sunos4*) |
||
13929 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
13930 | wlarc= |
||
13931 | hardcode_direct=yes |
||
13932 | hardcode_shlibpath_var=no |
||
13933 | ;; |
||
13934 | |||
13935 | *) |
||
13936 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
13937 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
13938 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
13939 | else |
||
13940 | ld_shlibs=no |
||
13941 | fi |
||
13942 | ;; |
||
13943 | esac |
||
13944 | |||
13945 | if test no = "$ld_shlibs"; then |
||
13946 | runpath_var= |
||
13947 | hardcode_libdir_flag_spec= |
||
13948 | export_dynamic_flag_spec= |
||
13949 | whole_archive_flag_spec= |
||
13950 | fi |
||
13951 | else |
||
13952 | # PORTME fill in a description of your system's linker (not GNU ld) |
||
13953 | case $host_os in |
||
13954 | aix3*) |
||
13955 | allow_undefined_flag=unsupported |
||
13956 | always_export_symbols=yes |
||
13957 | 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' |
||
13958 | # Note: this linker hardcodes the directories in LIBPATH if there |
||
13959 | # are no directories specified by -L. |
||
13960 | hardcode_minus_L=yes |
||
13961 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
||
13962 | # Neither direct hardcoding nor static linking is supported with a |
||
13963 | # broken collect2. |
||
13964 | hardcode_direct=unsupported |
||
13965 | fi |
||
13966 | ;; |
||
13967 | |||
13968 | aix[4-9]*) |
||
13969 | if test ia64 = "$host_cpu"; then |
||
13970 | # On IA64, the linker does run time linking by default, so we don't |
||
13971 | # have to do anything special. |
||
13972 | aix_use_runtimelinking=no |
||
13973 | exp_sym_flag='-Bexport' |
||
13974 | no_entry_flag= |
||
13975 | else |
||
13976 | # If we're using GNU nm, then we don't want the "-C" option. |
||
13977 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
||
13978 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
||
13979 | # weak defined symbols like other global defined symbols, whereas |
||
13980 | # GNU nm marks them as "W". |
||
13981 | # While the 'weak' keyword is ignored in the Export File, we need |
||
13982 | # it in the Import File for the 'aix-soname' feature, so we have |
||
13983 | # to replace the "-B" option with "-P" for AIX nm. |
||
13984 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
||
13985 | 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' |
||
13986 | else |
||
13987 | 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' |
||
13988 | fi |
||
13989 | aix_use_runtimelinking=no |
||
13990 | |||
13991 | # Test if we are trying to use run time linking or normal |
||
13992 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
13993 | # have runtime linking enabled, and use it for executables. |
||
13994 | # For shared libraries, we enable/disable runtime linking |
||
13995 | # depending on the kind of the shared library created - |
||
13996 | # when "with_aix_soname,aix_use_runtimelinking" is: |
||
13997 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
||
13998 | # "aix,yes" lib.so shared, rtl:yes, for executables |
||
13999 | # lib.a static archive |
||
14000 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
||
14001 | # lib.a(lib.so.V) shared, rtl:no, for executables |
||
14002 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
14003 | # lib.a(lib.so.V) shared, rtl:no |
||
14004 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
14005 | # lib.a static archive |
||
14006 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
||
14007 | for ld_flag in $LDFLAGS; do |
||
14008 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
||
14009 | aix_use_runtimelinking=yes |
||
14010 | break |
||
14011 | fi |
||
14012 | done |
||
14013 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
14014 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
||
14015 | # so we don't have lib.a shared libs to link our executables. |
||
14016 | # We have to force runtime linking in this case. |
||
14017 | aix_use_runtimelinking=yes |
||
14018 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
||
14019 | fi |
||
14020 | ;; |
||
14021 | esac |
||
14022 | |||
14023 | exp_sym_flag='-bexport' |
||
14024 | no_entry_flag='-bnoentry' |
||
14025 | fi |
||
14026 | |||
14027 | # When large executables or shared objects are built, AIX ld can |
||
14028 | # have problems creating the table of contents. If linking a library |
||
14029 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
14030 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
14031 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
14032 | |||
14033 | archive_cmds='' |
||
14034 | hardcode_direct=yes |
||
14035 | hardcode_direct_absolute=yes |
||
14036 | hardcode_libdir_separator=':' |
||
14037 | link_all_deplibs=yes |
||
14038 | file_list_spec='$wl-f,' |
||
14039 | case $with_aix_soname,$aix_use_runtimelinking in |
||
14040 | aix,*) ;; # traditional, no import file |
||
14041 | svr4,* | *,yes) # use import file |
||
14042 | # The Import File defines what to hardcode. |
||
14043 | hardcode_direct=no |
||
14044 | hardcode_direct_absolute=no |
||
14045 | ;; |
||
14046 | esac |
||
14047 | |||
14048 | if test yes = "$GCC"; then |
||
14049 | case $host_os in aix4.[012]|aix4.[012].*) |
||
14050 | # We only want to do this on AIX 4.2 and lower, the check |
||
14051 | # below for broken collect2 doesn't work under 4.3+ |
||
14052 | collect2name=`$CC -print-prog-name=collect2` |
||
14053 | if test -f "$collect2name" && |
||
14054 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
||
14055 | then |
||
14056 | # We have reworked collect2 |
||
14057 | : |
||
14058 | else |
||
14059 | # We have old collect2 |
||
14060 | hardcode_direct=unsupported |
||
14061 | # It fails to find uninstalled libraries when the uninstalled |
||
14062 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
14063 | # to unsupported forces relinking |
||
14064 | hardcode_minus_L=yes |
||
14065 | hardcode_libdir_flag_spec='-L$libdir' |
||
14066 | hardcode_libdir_separator= |
||
14067 | fi |
||
14068 | ;; |
||
14069 | esac |
||
14070 | shared_flag='-shared' |
||
14071 | if test yes = "$aix_use_runtimelinking"; then |
||
14072 | shared_flag="$shared_flag "'$wl-G' |
||
14073 | fi |
||
14074 | # Need to ensure runtime linking is disabled for the traditional |
||
14075 | # shared library, or the linker may eventually find shared libraries |
||
14076 | # /with/ Import File - we do not want to mix them. |
||
14077 | shared_flag_aix='-shared' |
||
14078 | shared_flag_svr4='-shared $wl-G' |
||
14079 | else |
||
14080 | # not using gcc |
||
14081 | if test ia64 = "$host_cpu"; then |
||
14082 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
14083 | # chokes on -Wl,-G. The following line is correct: |
||
14084 | shared_flag='-G' |
||
14085 | else |
||
14086 | if test yes = "$aix_use_runtimelinking"; then |
||
14087 | shared_flag='$wl-G' |
||
14088 | else |
||
14089 | shared_flag='$wl-bM:SRE' |
||
14090 | fi |
||
14091 | shared_flag_aix='$wl-bM:SRE' |
||
14092 | shared_flag_svr4='$wl-G' |
||
14093 | fi |
||
14094 | fi |
||
14095 | |||
14096 | export_dynamic_flag_spec='$wl-bexpall' |
||
14097 | # It seems that -bexpall does not export symbols beginning with |
||
14098 | # underscore (_), so it is better to generate a list of symbols to export. |
||
14099 | always_export_symbols=yes |
||
14100 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
14101 | # Warning - without using the other runtime loading flags (-brtl), |
||
14102 | # -berok will link without error, but may produce a broken library. |
||
14103 | allow_undefined_flag='-berok' |
||
14104 | # Determine the default libpath from the value encoded in an |
||
14105 | # empty executable. |
||
14106 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
14107 | aix_libpath=$lt_cv_aix_libpath |
||
14108 | else |
||
14109 | if ${lt_cv_aix_libpath_+:} false; then : |
||
14110 | $as_echo_n "(cached) " >&6 |
||
14111 | else |
||
14112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
14113 | /* end confdefs.h. */ |
||
14114 | |||
14115 | int |
||
14116 | main () |
||
14117 | { |
||
14118 | |||
14119 | ; |
||
14120 | return 0; |
||
14121 | } |
||
14122 | _ACEOF |
||
14123 | if ac_fn_c_try_link "$LINENO"; then : |
||
14124 | |||
14125 | lt_aix_libpath_sed=' |
||
14126 | /Import File Strings/,/^$/ { |
||
14127 | /^0/ { |
||
14128 | s/^0 *\([^ ]*\) *$/\1/ |
||
14129 | p |
||
14130 | } |
||
14131 | }' |
||
14132 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14133 | # Check for a 64-bit object if we didn't find anything. |
||
14134 | if test -z "$lt_cv_aix_libpath_"; then |
||
14135 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14136 | fi |
||
14137 | fi |
||
14138 | rm -f core conftest.err conftest.$ac_objext \ |
||
14139 | conftest$ac_exeext conftest.$ac_ext |
||
14140 | if test -z "$lt_cv_aix_libpath_"; then |
||
14141 | lt_cv_aix_libpath_=/usr/lib:/lib |
||
14142 | fi |
||
14143 | |||
14144 | fi |
||
14145 | |||
14146 | aix_libpath=$lt_cv_aix_libpath_ |
||
14147 | fi |
||
14148 | |||
14149 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
||
14150 | 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 |
||
14151 | else |
||
14152 | if test ia64 = "$host_cpu"; then |
||
14153 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
||
14154 | allow_undefined_flag="-z nodefs" |
||
14155 | 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" |
||
14156 | else |
||
14157 | # Determine the default libpath from the value encoded in an |
||
14158 | # empty executable. |
||
14159 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
14160 | aix_libpath=$lt_cv_aix_libpath |
||
14161 | else |
||
14162 | if ${lt_cv_aix_libpath_+:} false; then : |
||
14163 | $as_echo_n "(cached) " >&6 |
||
14164 | else |
||
14165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
14166 | /* end confdefs.h. */ |
||
14167 | |||
14168 | int |
||
14169 | main () |
||
14170 | { |
||
14171 | |||
14172 | ; |
||
14173 | return 0; |
||
14174 | } |
||
14175 | _ACEOF |
||
14176 | if ac_fn_c_try_link "$LINENO"; then : |
||
14177 | |||
14178 | lt_aix_libpath_sed=' |
||
14179 | /Import File Strings/,/^$/ { |
||
14180 | /^0/ { |
||
14181 | s/^0 *\([^ ]*\) *$/\1/ |
||
14182 | p |
||
14183 | } |
||
14184 | }' |
||
14185 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14186 | # Check for a 64-bit object if we didn't find anything. |
||
14187 | if test -z "$lt_cv_aix_libpath_"; then |
||
14188 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
14189 | fi |
||
14190 | fi |
||
14191 | rm -f core conftest.err conftest.$ac_objext \ |
||
14192 | conftest$ac_exeext conftest.$ac_ext |
||
14193 | if test -z "$lt_cv_aix_libpath_"; then |
||
14194 | lt_cv_aix_libpath_=/usr/lib:/lib |
||
14195 | fi |
||
14196 | |||
14197 | fi |
||
14198 | |||
14199 | aix_libpath=$lt_cv_aix_libpath_ |
||
14200 | fi |
||
14201 | |||
14202 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
||
14203 | # Warning - without using the other run time loading flags, |
||
14204 | # -berok will link without error, but may produce a broken library. |
||
14205 | no_undefined_flag=' $wl-bernotok' |
||
14206 | allow_undefined_flag=' $wl-berok' |
||
14207 | if test yes = "$with_gnu_ld"; then |
||
14208 | # We only use this code for GNU lds that support --whole-archive. |
||
14209 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
||
14210 | else |
||
14211 | # Exported symbols can be pulled into shared objects from archives |
||
14212 | whole_archive_flag_spec='$convenience' |
||
14213 | fi |
||
14214 | archive_cmds_need_lc=yes |
||
14215 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
||
14216 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
||
14217 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
||
14218 | if test svr4 != "$with_aix_soname"; then |
||
14219 | # This is similar to how AIX traditionally builds its shared libraries. |
||
14220 | 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' |
||
14221 | fi |
||
14222 | if test aix != "$with_aix_soname"; then |
||
14223 | 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' |
||
14224 | else |
||
14225 | # used by -dlpreopen to get the symbols |
||
14226 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
||
14227 | fi |
||
14228 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
||
14229 | fi |
||
14230 | fi |
||
14231 | ;; |
||
14232 | |||
14233 | amigaos*) |
||
14234 | case $host_cpu in |
||
14235 | powerpc) |
||
14236 | # see comment about AmigaOS4 .so support |
||
14237 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
14238 | archive_expsym_cmds='' |
||
14239 | ;; |
||
14240 | m68k) |
||
14241 | 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)' |
||
14242 | hardcode_libdir_flag_spec='-L$libdir' |
||
14243 | hardcode_minus_L=yes |
||
14244 | ;; |
||
14245 | esac |
||
14246 | ;; |
||
14247 | |||
14248 | bsdi[45]*) |
||
14249 | export_dynamic_flag_spec=-rdynamic |
||
14250 | ;; |
||
14251 | |||
14252 | cygwin* | mingw* | pw32* | cegcc*) |
||
14253 | # When not using gcc, we currently assume that we are using |
||
14254 | # Microsoft Visual C++. |
||
14255 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
14256 | # no search path for DLLs. |
||
14257 | case $cc_basename in |
||
14258 | cl*) |
||
14259 | # Native MSVC |
||
14260 | hardcode_libdir_flag_spec=' ' |
||
14261 | allow_undefined_flag=unsupported |
||
14262 | always_export_symbols=yes |
||
14263 | file_list_spec='@' |
||
14264 | # Tell ltmain to make .lib files, not .a files. |
||
14265 | libext=lib |
||
14266 | # Tell ltmain to make .dll files, not .so files. |
||
14267 | shrext_cmds=.dll |
||
14268 | # FIXME: Setting linknames here is a bad hack. |
||
14269 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
||
14270 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
14271 | cp "$export_symbols" "$output_objdir/$soname.def"; |
||
14272 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
||
14273 | else |
||
14274 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
||
14275 | fi~ |
||
14276 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
||
14277 | linknames=' |
||
14278 | # The linker will not automatically build a static lib if we build a DLL. |
||
14279 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
||
14280 | enable_shared_with_static_runtimes=yes |
||
14281 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
||
14282 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
||
14283 | # Don't use ranlib |
||
14284 | old_postinstall_cmds='chmod 644 $oldlib' |
||
14285 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
||
14286 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
||
14287 | case $lt_outputfile in |
||
14288 | *.exe|*.EXE) ;; |
||
14289 | *) |
||
14290 | lt_outputfile=$lt_outputfile.exe |
||
14291 | lt_tool_outputfile=$lt_tool_outputfile.exe |
||
14292 | ;; |
||
14293 | esac~ |
||
14294 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
||
14295 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
||
14296 | $RM "$lt_outputfile.manifest"; |
||
14297 | fi' |
||
14298 | ;; |
||
14299 | *) |
||
14300 | # Assume MSVC wrapper |
||
14301 | hardcode_libdir_flag_spec=' ' |
||
14302 | allow_undefined_flag=unsupported |
||
14303 | # Tell ltmain to make .lib files, not .a files. |
||
14304 | libext=lib |
||
14305 | # Tell ltmain to make .dll files, not .so files. |
||
14306 | shrext_cmds=.dll |
||
14307 | # FIXME: Setting linknames here is a bad hack. |
||
14308 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
||
14309 | # The linker will automatically build a .lib file if we build a DLL. |
||
14310 | old_archive_from_new_cmds='true' |
||
14311 | # FIXME: Should let the user specify the lib program. |
||
14312 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
||
14313 | enable_shared_with_static_runtimes=yes |
||
14314 | ;; |
||
14315 | esac |
||
14316 | ;; |
||
14317 | |||
14318 | darwin* | rhapsody*) |
||
14319 | |||
14320 | |||
14321 | archive_cmds_need_lc=no |
||
14322 | hardcode_direct=no |
||
14323 | hardcode_automatic=yes |
||
14324 | hardcode_shlibpath_var=unsupported |
||
14325 | if test yes = "$lt_cv_ld_force_load"; then |
||
14326 | 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\"`' |
||
14327 | |||
14328 | else |
||
14329 | whole_archive_flag_spec='' |
||
14330 | fi |
||
14331 | link_all_deplibs=yes |
||
14332 | allow_undefined_flag=$_lt_dar_allow_undefined |
||
14333 | case $cc_basename in |
||
14334 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
||
14335 | *) _lt_dar_can_shared=$GCC ;; |
||
14336 | esac |
||
14337 | if test yes = "$_lt_dar_can_shared"; then |
||
14338 | output_verbose_link_cmd=func_echo_all |
||
14339 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
||
14340 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
||
14341 | 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" |
||
14342 | 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" |
||
14343 | |||
14344 | else |
||
14345 | ld_shlibs=no |
||
14346 | fi |
||
14347 | |||
14348 | ;; |
||
14349 | |||
14350 | dgux*) |
||
14351 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14352 | hardcode_libdir_flag_spec='-L$libdir' |
||
14353 | hardcode_shlibpath_var=no |
||
14354 | ;; |
||
14355 | |||
14356 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
||
14357 | # support. Future versions do this automatically, but an explicit c++rt0.o |
||
14358 | # does not break anything, and helps significantly (at the cost of a little |
||
14359 | # extra space). |
||
14360 | freebsd2.2*) |
||
14361 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
||
14362 | hardcode_libdir_flag_spec='-R$libdir' |
||
14363 | hardcode_direct=yes |
||
14364 | hardcode_shlibpath_var=no |
||
14365 | ;; |
||
14366 | |||
14367 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
||
14368 | freebsd2.*) |
||
14369 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
||
14370 | hardcode_direct=yes |
||
14371 | hardcode_minus_L=yes |
||
14372 | hardcode_shlibpath_var=no |
||
14373 | ;; |
||
14374 | |||
14375 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
||
14376 | freebsd* | dragonfly*) |
||
14377 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
14378 | hardcode_libdir_flag_spec='-R$libdir' |
||
14379 | hardcode_direct=yes |
||
14380 | hardcode_shlibpath_var=no |
||
14381 | ;; |
||
14382 | |||
14383 | hpux9*) |
||
14384 | if test yes = "$GCC"; then |
||
14385 | 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' |
||
14386 | else |
||
14387 | 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' |
||
14388 | fi |
||
14389 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
||
14390 | hardcode_libdir_separator=: |
||
14391 | hardcode_direct=yes |
||
14392 | |||
14393 | # hardcode_minus_L: Not really in the search PATH, |
||
14394 | # but as the default location of the library. |
||
14395 | hardcode_minus_L=yes |
||
14396 | export_dynamic_flag_spec='$wl-E' |
||
14397 | ;; |
||
14398 | |||
14399 | hpux10*) |
||
14400 | if test yes,no = "$GCC,$with_gnu_ld"; then |
||
14401 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
14402 | else |
||
14403 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
14404 | fi |
||
14405 | if test no = "$with_gnu_ld"; then |
||
14406 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
||
14407 | hardcode_libdir_separator=: |
||
14408 | hardcode_direct=yes |
||
14409 | hardcode_direct_absolute=yes |
||
14410 | export_dynamic_flag_spec='$wl-E' |
||
14411 | # hardcode_minus_L: Not really in the search PATH, |
||
14412 | # but as the default location of the library. |
||
14413 | hardcode_minus_L=yes |
||
14414 | fi |
||
14415 | ;; |
||
14416 | |||
14417 | hpux11*) |
||
14418 | if test yes,no = "$GCC,$with_gnu_ld"; then |
||
14419 | case $host_cpu in |
||
14420 | hppa*64*) |
||
14421 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14422 | ;; |
||
14423 | ia64*) |
||
14424 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
14425 | ;; |
||
14426 | *) |
||
14427 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
14428 | ;; |
||
14429 | esac |
||
14430 | else |
||
14431 | case $host_cpu in |
||
14432 | hppa*64*) |
||
14433 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14434 | ;; |
||
14435 | ia64*) |
||
14436 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
||
14437 | ;; |
||
14438 | *) |
||
14439 | |||
14440 | # Older versions of the 11.00 compiler do not understand -b yet |
||
14441 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
||
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
||
14443 | $as_echo_n "checking if $CC understands -b... " >&6; } |
||
14444 | if ${lt_cv_prog_compiler__b+:} false; then : |
||
14445 | $as_echo_n "(cached) " >&6 |
||
14446 | else |
||
14447 | lt_cv_prog_compiler__b=no |
||
14448 | save_LDFLAGS=$LDFLAGS |
||
14449 | LDFLAGS="$LDFLAGS -b" |
||
14450 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
14451 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
14452 | # The linker can only warn and ignore the option if not recognized |
||
14453 | # So say no if there are warnings |
||
14454 | if test -s conftest.err; then |
||
14455 | # Append any errors to the config.log. |
||
14456 | cat conftest.err 1>&5 |
||
14457 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
||
14458 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
14459 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
14460 | lt_cv_prog_compiler__b=yes |
||
14461 | fi |
||
14462 | else |
||
14463 | lt_cv_prog_compiler__b=yes |
||
14464 | fi |
||
14465 | fi |
||
14466 | $RM -r conftest* |
||
14467 | LDFLAGS=$save_LDFLAGS |
||
14468 | |||
14469 | fi |
||
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
||
14471 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
||
14472 | |||
14473 | if test yes = "$lt_cv_prog_compiler__b"; then |
||
14474 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
||
14475 | else |
||
14476 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
||
14477 | fi |
||
14478 | |||
14479 | ;; |
||
14480 | esac |
||
14481 | fi |
||
14482 | if test no = "$with_gnu_ld"; then |
||
14483 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
||
14484 | hardcode_libdir_separator=: |
||
14485 | |||
14486 | case $host_cpu in |
||
14487 | hppa*64*|ia64*) |
||
14488 | hardcode_direct=no |
||
14489 | hardcode_shlibpath_var=no |
||
14490 | ;; |
||
14491 | *) |
||
14492 | hardcode_direct=yes |
||
14493 | hardcode_direct_absolute=yes |
||
14494 | export_dynamic_flag_spec='$wl-E' |
||
14495 | |||
14496 | # hardcode_minus_L: Not really in the search PATH, |
||
14497 | # but as the default location of the library. |
||
14498 | hardcode_minus_L=yes |
||
14499 | ;; |
||
14500 | esac |
||
14501 | fi |
||
14502 | ;; |
||
14503 | |||
14504 | irix5* | irix6* | nonstopux*) |
||
14505 | if test yes = "$GCC"; then |
||
14506 | 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' |
||
14507 | # Try to use the -exported_symbol ld option, if it does not |
||
14508 | # work, assume that -exports_file does not work either and |
||
14509 | # implicitly export all symbols. |
||
14510 | # This should be the same for all languages, so no per-tag cache variable. |
||
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
||
14512 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
||
14513 | if ${lt_cv_irix_exported_symbol+:} false; then : |
||
14514 | $as_echo_n "(cached) " >&6 |
||
14515 | else |
||
14516 | save_LDFLAGS=$LDFLAGS |
||
14517 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
||
14518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
14519 | /* end confdefs.h. */ |
||
14520 | int foo (void) { return 0; } |
||
14521 | _ACEOF |
||
14522 | if ac_fn_c_try_link "$LINENO"; then : |
||
14523 | lt_cv_irix_exported_symbol=yes |
||
14524 | else |
||
14525 | lt_cv_irix_exported_symbol=no |
||
14526 | fi |
||
14527 | rm -f core conftest.err conftest.$ac_objext \ |
||
14528 | conftest$ac_exeext conftest.$ac_ext |
||
14529 | LDFLAGS=$save_LDFLAGS |
||
14530 | fi |
||
14531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
||
14532 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
||
14533 | if test yes = "$lt_cv_irix_exported_symbol"; then |
||
14534 | 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' |
||
14535 | fi |
||
14536 | link_all_deplibs=no |
||
14537 | else |
||
14538 | 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' |
||
14539 | 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' |
||
14540 | fi |
||
14541 | archive_cmds_need_lc='no' |
||
14542 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
14543 | hardcode_libdir_separator=: |
||
14544 | inherit_rpath=yes |
||
14545 | link_all_deplibs=yes |
||
14546 | ;; |
||
14547 | |||
14548 | linux*) |
||
14549 | case $cc_basename in |
||
14550 | tcc*) |
||
14551 | # Fabrice Bellard et al's Tiny C Compiler |
||
14552 | ld_shlibs=yes |
||
14553 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
14554 | ;; |
||
14555 | esac |
||
14556 | ;; |
||
14557 | |||
14558 | netbsd* | netbsdelf*-gnu) |
||
14559 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
14560 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
||
14561 | else |
||
14562 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
||
14563 | fi |
||
14564 | hardcode_libdir_flag_spec='-R$libdir' |
||
14565 | hardcode_direct=yes |
||
14566 | hardcode_shlibpath_var=no |
||
14567 | ;; |
||
14568 | |||
14569 | newsos6) |
||
14570 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14571 | hardcode_direct=yes |
||
14572 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
14573 | hardcode_libdir_separator=: |
||
14574 | hardcode_shlibpath_var=no |
||
14575 | ;; |
||
14576 | |||
14577 | *nto* | *qnx*) |
||
14578 | ;; |
||
14579 | |||
14580 | openbsd* | bitrig*) |
||
14581 | if test -f /usr/libexec/ld.so; then |
||
14582 | hardcode_direct=yes |
||
14583 | hardcode_shlibpath_var=no |
||
14584 | hardcode_direct_absolute=yes |
||
14585 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
14586 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
14587 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
||
14588 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
||
14589 | export_dynamic_flag_spec='$wl-E' |
||
14590 | else |
||
14591 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
||
14592 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
||
14593 | fi |
||
14594 | else |
||
14595 | ld_shlibs=no |
||
14596 | fi |
||
14597 | ;; |
||
14598 | |||
14599 | os2*) |
||
14600 | hardcode_libdir_flag_spec='-L$libdir' |
||
14601 | hardcode_minus_L=yes |
||
14602 | allow_undefined_flag=unsupported |
||
14603 | shrext_cmds=.dll |
||
14604 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
14605 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
14606 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
14607 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
14608 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
||
14609 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
14610 | emximp -o $lib $output_objdir/$libname.def' |
||
14611 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
14612 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
14613 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
14614 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
14615 | prefix_cmds="$SED"~ |
||
14616 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
||
14617 | prefix_cmds="$prefix_cmds -e 1d"; |
||
14618 | fi~ |
||
14619 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
||
14620 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
||
14621 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
14622 | emximp -o $lib $output_objdir/$libname.def' |
||
14623 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
||
14624 | enable_shared_with_static_runtimes=yes |
||
14625 | ;; |
||
14626 | |||
14627 | osf3*) |
||
14628 | if test yes = "$GCC"; then |
||
14629 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
||
14630 | 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' |
||
14631 | else |
||
14632 | allow_undefined_flag=' -expect_unresolved \*' |
||
14633 | 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' |
||
14634 | fi |
||
14635 | archive_cmds_need_lc='no' |
||
14636 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
14637 | hardcode_libdir_separator=: |
||
14638 | ;; |
||
14639 | |||
14640 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
||
14641 | if test yes = "$GCC"; then |
||
14642 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
||
14643 | 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' |
||
14644 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
||
14645 | else |
||
14646 | allow_undefined_flag=' -expect_unresolved \*' |
||
14647 | 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' |
||
14648 | 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~ |
||
14649 | $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' |
||
14650 | |||
14651 | # Both c and cxx compiler support -rpath directly |
||
14652 | hardcode_libdir_flag_spec='-rpath $libdir' |
||
14653 | fi |
||
14654 | archive_cmds_need_lc='no' |
||
14655 | hardcode_libdir_separator=: |
||
14656 | ;; |
||
14657 | |||
14658 | solaris*) |
||
14659 | no_undefined_flag=' -z defs' |
||
14660 | if test yes = "$GCC"; then |
||
14661 | wlarc='$wl' |
||
14662 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14663 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
14664 | $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' |
||
14665 | else |
||
14666 | case `$CC -V 2>&1` in |
||
14667 | *"Compilers 5.0"*) |
||
14668 | wlarc='' |
||
14669 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14670 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
14671 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
||
14672 | ;; |
||
14673 | *) |
||
14674 | wlarc='$wl' |
||
14675 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14676 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
14677 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
||
14678 | ;; |
||
14679 | esac |
||
14680 | fi |
||
14681 | hardcode_libdir_flag_spec='-R$libdir' |
||
14682 | hardcode_shlibpath_var=no |
||
14683 | case $host_os in |
||
14684 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
14685 | *) |
||
14686 | # The compiler driver will combine and reorder linker options, |
||
14687 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
||
14688 | # but is careful enough not to reorder. |
||
14689 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
14690 | if test yes = "$GCC"; then |
||
14691 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
||
14692 | else |
||
14693 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
||
14694 | fi |
||
14695 | ;; |
||
14696 | esac |
||
14697 | link_all_deplibs=yes |
||
14698 | ;; |
||
14699 | |||
14700 | sunos4*) |
||
14701 | if test sequent = "$host_vendor"; then |
||
14702 | # Use $CC to link under sequent, because it throws in some extra .o |
||
14703 | # files that make .init and .fini sections work. |
||
14704 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14705 | else |
||
14706 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
||
14707 | fi |
||
14708 | hardcode_libdir_flag_spec='-L$libdir' |
||
14709 | hardcode_direct=yes |
||
14710 | hardcode_minus_L=yes |
||
14711 | hardcode_shlibpath_var=no |
||
14712 | ;; |
||
14713 | |||
14714 | sysv4) |
||
14715 | case $host_vendor in |
||
14716 | sni) |
||
14717 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14718 | hardcode_direct=yes # is this really true??? |
||
14719 | ;; |
||
14720 | siemens) |
||
14721 | ## LD is ld it makes a PLAMLIB |
||
14722 | ## CC just makes a GrossModule. |
||
14723 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
||
14724 | reload_cmds='$CC -r -o $output$reload_objs' |
||
14725 | hardcode_direct=no |
||
14726 | ;; |
||
14727 | motorola) |
||
14728 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14729 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
||
14730 | ;; |
||
14731 | esac |
||
14732 | runpath_var='LD_RUN_PATH' |
||
14733 | hardcode_shlibpath_var=no |
||
14734 | ;; |
||
14735 | |||
14736 | sysv4.3*) |
||
14737 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14738 | hardcode_shlibpath_var=no |
||
14739 | export_dynamic_flag_spec='-Bexport' |
||
14740 | ;; |
||
14741 | |||
14742 | sysv4*MP*) |
||
14743 | if test -d /usr/nec; then |
||
14744 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14745 | hardcode_shlibpath_var=no |
||
14746 | runpath_var=LD_RUN_PATH |
||
14747 | hardcode_runpath_var=yes |
||
14748 | ld_shlibs=yes |
||
14749 | fi |
||
14750 | ;; |
||
14751 | |||
14752 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
14753 | no_undefined_flag='$wl-z,text' |
||
14754 | archive_cmds_need_lc=no |
||
14755 | hardcode_shlibpath_var=no |
||
14756 | runpath_var='LD_RUN_PATH' |
||
14757 | |||
14758 | if test yes = "$GCC"; then |
||
14759 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14760 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14761 | else |
||
14762 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14763 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14764 | fi |
||
14765 | ;; |
||
14766 | |||
14767 | sysv5* | sco3.2v5* | sco5v6*) |
||
14768 | # Note: We CANNOT use -z defs as we might desire, because we do not |
||
14769 | # link with -lc, and that would cause any symbols used from libc to |
||
14770 | # always be unresolved, which means just about no library would |
||
14771 | # ever link correctly. If we're not using GNU ld we use -z text |
||
14772 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
14773 | # as -z defs. |
||
14774 | no_undefined_flag='$wl-z,text' |
||
14775 | allow_undefined_flag='$wl-z,nodefs' |
||
14776 | archive_cmds_need_lc=no |
||
14777 | hardcode_shlibpath_var=no |
||
14778 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
||
14779 | hardcode_libdir_separator=':' |
||
14780 | link_all_deplibs=yes |
||
14781 | export_dynamic_flag_spec='$wl-Bexport' |
||
14782 | runpath_var='LD_RUN_PATH' |
||
14783 | |||
14784 | if test yes = "$GCC"; then |
||
14785 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14786 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14787 | else |
||
14788 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14789 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
14790 | fi |
||
14791 | ;; |
||
14792 | |||
14793 | uts4*) |
||
14794 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
||
14795 | hardcode_libdir_flag_spec='-L$libdir' |
||
14796 | hardcode_shlibpath_var=no |
||
14797 | ;; |
||
14798 | |||
14799 | *) |
||
14800 | ld_shlibs=no |
||
14801 | ;; |
||
14802 | esac |
||
14803 | |||
14804 | if test sni = "$host_vendor"; then |
||
14805 | case $host in |
||
14806 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
||
14807 | export_dynamic_flag_spec='$wl-Blargedynsym' |
||
14808 | ;; |
||
14809 | esac |
||
14810 | fi |
||
14811 | fi |
||
14812 | |||
14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
||
14814 | $as_echo "$ld_shlibs" >&6; } |
||
14815 | test no = "$ld_shlibs" && can_build_shared=no |
||
14816 | |||
14817 | with_gnu_ld=$with_gnu_ld |
||
14818 | |||
14819 | |||
14820 | |||
14821 | |||
14822 | |||
14823 | |||
14824 | |||
14825 | |||
14826 | |||
14827 | |||
14828 | |||
14829 | |||
14830 | |||
14831 | |||
14832 | |||
14833 | # |
||
14834 | # Do we need to explicitly link libc? |
||
14835 | # |
||
14836 | case "x$archive_cmds_need_lc" in |
||
14837 | x|xyes) |
||
14838 | # Assume -lc should be added |
||
14839 | archive_cmds_need_lc=yes |
||
14840 | |||
14841 | if test yes,yes = "$GCC,$enable_shared"; then |
||
14842 | case $archive_cmds in |
||
14843 | *'~'*) |
||
14844 | # FIXME: we may have to deal with multi-command sequences. |
||
14845 | ;; |
||
14846 | '$CC '*) |
||
14847 | # Test whether the compiler implicitly links with -lc since on some |
||
14848 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
14849 | # to ld, don't add -lc before -lgcc. |
||
14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
||
14851 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
||
14852 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
||
14853 | $as_echo_n "(cached) " >&6 |
||
14854 | else |
||
14855 | $RM conftest* |
||
14856 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
14857 | |||
14858 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
14859 | (eval $ac_compile) 2>&5 |
||
14860 | ac_status=$? |
||
14861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
14862 | test $ac_status = 0; } 2>conftest.err; then |
||
14863 | soname=conftest |
||
14864 | lib=conftest |
||
14865 | libobjs=conftest.$ac_objext |
||
14866 | deplibs= |
||
14867 | wl=$lt_prog_compiler_wl |
||
14868 | pic_flag=$lt_prog_compiler_pic |
||
14869 | compiler_flags=-v |
||
14870 | linker_flags=-v |
||
14871 | verstring= |
||
14872 | output_objdir=. |
||
14873 | libname=conftest |
||
14874 | lt_save_allow_undefined_flag=$allow_undefined_flag |
||
14875 | allow_undefined_flag= |
||
14876 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
||
14877 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
14878 | ac_status=$? |
||
14879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
14880 | test $ac_status = 0; } |
||
14881 | then |
||
14882 | lt_cv_archive_cmds_need_lc=no |
||
14883 | else |
||
14884 | lt_cv_archive_cmds_need_lc=yes |
||
14885 | fi |
||
14886 | allow_undefined_flag=$lt_save_allow_undefined_flag |
||
14887 | else |
||
14888 | cat conftest.err 1>&5 |
||
14889 | fi |
||
14890 | $RM conftest* |
||
14891 | |||
14892 | fi |
||
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
||
14894 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
||
14895 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
||
14896 | ;; |
||
14897 | esac |
||
14898 | fi |
||
14899 | ;; |
||
14900 | esac |
||
14901 | |||
14902 | |||
14903 | |||
14904 | |||
14905 | |||
14906 | |||
14907 | |||
14908 | |||
14909 | |||
14910 | |||
14911 | |||
14912 | |||
14913 | |||
14914 | |||
14915 | |||
14916 | |||
14917 | |||
14918 | |||
14919 | |||
14920 | |||
14921 | |||
14922 | |||
14923 | |||
14924 | |||
14925 | |||
14926 | |||
14927 | |||
14928 | |||
14929 | |||
14930 | |||
14931 | |||
14932 | |||
14933 | |||
14934 | |||
14935 | |||
14936 | |||
14937 | |||
14938 | |||
14939 | |||
14940 | |||
14941 | |||
14942 | |||
14943 | |||
14944 | |||
14945 | |||
14946 | |||
14947 | |||
14948 | |||
14949 | |||
14950 | |||
14951 | |||
14952 | |||
14953 | |||
14954 | |||
14955 | |||
14956 | |||
14957 | |||
14958 | |||
14959 | |||
14960 | |||
14961 | |||
14962 | |||
14963 | |||
14964 | |||
14965 | |||
14966 | |||
14967 | |||
14968 | |||
14969 | |||
14970 | |||
14971 | |||
14972 | |||
14973 | |||
14974 | |||
14975 | |||
14976 | |||
14977 | |||
14978 | |||
14979 | |||
14980 | |||
14981 | |||
14982 | |||
14983 | |||
14984 | |||
14985 | |||
14986 | |||
14987 | |||
14988 | |||
14989 | |||
14990 | |||
14991 | |||
14992 | |||
14993 | |||
14994 | |||
14995 | |||
14996 | |||
14997 | |||
14998 | |||
14999 | |||
15000 | |||
15001 | |||
15002 | |||
15003 | |||
15004 | |||
15005 | |||
15006 | |||
15007 | |||
15008 | |||
15009 | |||
15010 | |||
15011 | |||
15012 | |||
15013 | |||
15014 | |||
15015 | |||
15016 | |||
15017 | |||
15018 | |||
15019 | |||
15020 | |||
15021 | |||
15022 | |||
15023 | |||
15024 | |||
15025 | |||
15026 | |||
15027 | |||
15028 | |||
15029 | |||
15030 | |||
15031 | |||
15032 | |||
15033 | |||
15034 | |||
15035 | |||
15036 | |||
15037 | |||
15038 | |||
15039 | |||
15040 | |||
15041 | |||
15042 | |||
15043 | |||
15044 | |||
15045 | |||
15046 | |||
15047 | |||
15048 | |||
15049 | |||
15050 | |||
15051 | |||
15052 | |||
15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
||
15054 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
||
15055 | |||
15056 | if test yes = "$GCC"; then |
||
15057 | case $host_os in |
||
15058 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
||
15059 | *) lt_awk_arg='/^libraries:/' ;; |
||
15060 | esac |
||
15061 | case $host_os in |
||
15062 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
||
15063 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
||
15064 | esac |
||
15065 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
||
15066 | case $lt_search_path_spec in |
||
15067 | *\;*) |
||
15068 | # if the path contains ";" then we assume it to be the separator |
||
15069 | # otherwise default to the standard path separator (i.e. ":") - it is |
||
15070 | # assumed that no part of a normal pathname contains ";" but that should |
||
15071 | # okay in the real world where ";" in dirpaths is itself problematic. |
||
15072 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
||
15073 | ;; |
||
15074 | *) |
||
15075 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
||
15076 | ;; |
||
15077 | esac |
||
15078 | # Ok, now we have the path, separated by spaces, we can step through it |
||
15079 | # and add multilib dir if necessary... |
||
15080 | lt_tmp_lt_search_path_spec= |
||
15081 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
||
15082 | # ...but if some path component already ends with the multilib dir we assume |
||
15083 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
||
15084 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
||
15085 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
||
15086 | lt_multi_os_dir= |
||
15087 | ;; |
||
15088 | esac |
||
15089 | for lt_sys_path in $lt_search_path_spec; do |
||
15090 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
||
15091 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
||
15092 | elif test -n "$lt_multi_os_dir"; then |
||
15093 | test -d "$lt_sys_path" && \ |
||
15094 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
||
15095 | fi |
||
15096 | done |
||
15097 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
||
15098 | BEGIN {RS = " "; FS = "/|\n";} { |
||
15099 | lt_foo = ""; |
||
15100 | lt_count = 0; |
||
15101 | for (lt_i = NF; lt_i > 0; lt_i--) { |
||
15102 | if ($lt_i != "" && $lt_i != ".") { |
||
15103 | if ($lt_i == "..") { |
||
15104 | lt_count++; |
||
15105 | } else { |
||
15106 | if (lt_count == 0) { |
||
15107 | lt_foo = "/" $lt_i lt_foo; |
||
15108 | } else { |
||
15109 | lt_count--; |
||
15110 | } |
||
15111 | } |
||
15112 | } |
||
15113 | } |
||
15114 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
||
15115 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
||
15116 | }'` |
||
15117 | # AWK program above erroneously prepends '/' to C:/dos/paths |
||
15118 | # for these hosts. |
||
15119 | case $host_os in |
||
15120 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
||
15121 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
||
15122 | esac |
||
15123 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
||
15124 | else |
||
15125 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
15126 | fi |
||
15127 | library_names_spec= |
||
15128 | libname_spec='lib$name' |
||
15129 | soname_spec= |
||
15130 | shrext_cmds=.so |
||
15131 | postinstall_cmds= |
||
15132 | postuninstall_cmds= |
||
15133 | finish_cmds= |
||
15134 | finish_eval= |
||
15135 | shlibpath_var= |
||
15136 | shlibpath_overrides_runpath=unknown |
||
15137 | version_type=none |
||
15138 | dynamic_linker="$host_os ld.so" |
||
15139 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
15140 | need_lib_prefix=unknown |
||
15141 | hardcode_into_libs=no |
||
15142 | |||
15143 | # when you set need_version to no, make sure it does not cause -set_version |
||
15144 | # flags to be left without arguments |
||
15145 | need_version=unknown |
||
15146 | |||
15147 | |||
15148 | |||
15149 | case $host_os in |
||
15150 | aix3*) |
||
15151 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15152 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
||
15153 | shlibpath_var=LIBPATH |
||
15154 | |||
15155 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
15156 | soname_spec='$libname$release$shared_ext$major' |
||
15157 | ;; |
||
15158 | |||
15159 | aix[4-9]*) |
||
15160 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15161 | need_lib_prefix=no |
||
15162 | need_version=no |
||
15163 | hardcode_into_libs=yes |
||
15164 | if test ia64 = "$host_cpu"; then |
||
15165 | # AIX 5 supports IA64 |
||
15166 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
||
15167 | shlibpath_var=LD_LIBRARY_PATH |
||
15168 | else |
||
15169 | # With GCC up to 2.95.x, collect2 would create an import file |
||
15170 | # for dependence libraries. The import file would start with |
||
15171 | # the line '#! .'. This would cause the generated library to |
||
15172 | # depend on '.', always an invalid library. This was fixed in |
||
15173 | # development snapshots of GCC prior to 3.0. |
||
15174 | case $host_os in |
||
15175 | aix4 | aix4.[01] | aix4.[01].*) |
||
15176 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
15177 | echo ' yes ' |
||
15178 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
||
15179 | : |
||
15180 | else |
||
15181 | can_build_shared=no |
||
15182 | fi |
||
15183 | ;; |
||
15184 | esac |
||
15185 | # Using Import Files as archive members, it is possible to support |
||
15186 | # filename-based versioning of shared library archives on AIX. While |
||
15187 | # this would work for both with and without runtime linking, it will |
||
15188 | # prevent static linking of such archives. So we do filename-based |
||
15189 | # shared library versioning with .so extension only, which is used |
||
15190 | # when both runtime linking and shared linking is enabled. |
||
15191 | # Unfortunately, runtime linking may impact performance, so we do |
||
15192 | # not want this to be the default eventually. Also, we use the |
||
15193 | # versioned .so libs for executables only if there is the -brtl |
||
15194 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
||
15195 | # To allow for filename-based versioning support, we need to create |
||
15196 | # libNAME.so.V as an archive file, containing: |
||
15197 | # *) an Import File, referring to the versioned filename of the |
||
15198 | # archive as well as the shared archive member, telling the |
||
15199 | # bitwidth (32 or 64) of that shared object, and providing the |
||
15200 | # list of exported symbols of that shared object, eventually |
||
15201 | # decorated with the 'weak' keyword |
||
15202 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
||
15203 | # it being seen by the linker. |
||
15204 | # At run time we better use the real file rather than another symlink, |
||
15205 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
||
15206 | |||
15207 | case $with_aix_soname,$aix_use_runtimelinking in |
||
15208 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
||
15209 | # soname into executable. Probably we can add versioning support to |
||
15210 | # collect2, so additional links can be useful in future. |
||
15211 | aix,yes) # traditional libtool |
||
15212 | dynamic_linker='AIX unversionable lib.so' |
||
15213 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
15214 | # instead of lib<name>.a to let people know that these are not |
||
15215 | # typical AIX shared libraries. |
||
15216 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15217 | ;; |
||
15218 | aix,no) # traditional AIX only |
||
15219 | dynamic_linker='AIX lib.a(lib.so.V)' |
||
15220 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
15221 | # and later when we are not doing run time linking. |
||
15222 | library_names_spec='$libname$release.a $libname.a' |
||
15223 | soname_spec='$libname$release$shared_ext$major' |
||
15224 | ;; |
||
15225 | svr4,*) # full svr4 only |
||
15226 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
||
15227 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
15228 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
15229 | shlibpath_overrides_runpath=yes |
||
15230 | ;; |
||
15231 | *,yes) # both, prefer svr4 |
||
15232 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
||
15233 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
15234 | # unpreferred sharedlib libNAME.a needs extra handling |
||
15235 | 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"' |
||
15236 | 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"' |
||
15237 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
15238 | shlibpath_overrides_runpath=yes |
||
15239 | ;; |
||
15240 | *,no) # both, prefer aix |
||
15241 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
||
15242 | library_names_spec='$libname$release.a $libname.a' |
||
15243 | soname_spec='$libname$release$shared_ext$major' |
||
15244 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
||
15245 | 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)' |
||
15246 | 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"' |
||
15247 | ;; |
||
15248 | esac |
||
15249 | shlibpath_var=LIBPATH |
||
15250 | fi |
||
15251 | ;; |
||
15252 | |||
15253 | amigaos*) |
||
15254 | case $host_cpu in |
||
15255 | powerpc) |
||
15256 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
||
15257 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
||
15258 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15259 | ;; |
||
15260 | m68k) |
||
15261 | library_names_spec='$libname.ixlibrary $libname.a' |
||
15262 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
15263 | 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' |
||
15264 | ;; |
||
15265 | esac |
||
15266 | ;; |
||
15267 | |||
15268 | beos*) |
||
15269 | library_names_spec='$libname$shared_ext' |
||
15270 | dynamic_linker="$host_os ld.so" |
||
15271 | shlibpath_var=LIBRARY_PATH |
||
15272 | ;; |
||
15273 | |||
15274 | bsdi[45]*) |
||
15275 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15276 | need_version=no |
||
15277 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15278 | soname_spec='$libname$release$shared_ext$major' |
||
15279 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
15280 | shlibpath_var=LD_LIBRARY_PATH |
||
15281 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
15282 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
15283 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
15284 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
15285 | # libtool to hard-code these into programs |
||
15286 | ;; |
||
15287 | |||
15288 | cygwin* | mingw* | pw32* | cegcc*) |
||
15289 | version_type=windows |
||
15290 | shrext_cmds=.dll |
||
15291 | need_version=no |
||
15292 | need_lib_prefix=no |
||
15293 | |||
15294 | case $GCC,$cc_basename in |
||
15295 | yes,*) |
||
15296 | # gcc |
||
15297 | library_names_spec='$libname.dll.a' |
||
15298 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
15299 | postinstall_cmds='base_file=`basename \$file`~ |
||
15300 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
15301 | dldir=$destdir/`dirname \$dlpath`~ |
||
15302 | test -d \$dldir || mkdir -p \$dldir~ |
||
15303 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
15304 | chmod a+x \$dldir/$dlname~ |
||
15305 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
15306 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
15307 | fi' |
||
15308 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
15309 | dlpath=$dir/\$dldll~ |
||
15310 | $RM \$dlpath' |
||
15311 | shlibpath_overrides_runpath=yes |
||
15312 | |||
15313 | case $host_os in |
||
15314 | cygwin*) |
||
15315 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
15316 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
15317 | |||
15318 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
||
15319 | ;; |
||
15320 | mingw* | cegcc*) |
||
15321 | # MinGW DLLs use traditional 'lib' prefix |
||
15322 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
15323 | ;; |
||
15324 | pw32*) |
||
15325 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
15326 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
15327 | ;; |
||
15328 | esac |
||
15329 | dynamic_linker='Win32 ld.exe' |
||
15330 | ;; |
||
15331 | |||
15332 | *,cl*) |
||
15333 | # Native MSVC |
||
15334 | libname_spec='$name' |
||
15335 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
15336 | library_names_spec='$libname.dll.lib' |
||
15337 | |||
15338 | case $build_os in |
||
15339 | mingw*) |
||
15340 | sys_lib_search_path_spec= |
||
15341 | lt_save_ifs=$IFS |
||
15342 | IFS=';' |
||
15343 | for lt_path in $LIB |
||
15344 | do |
||
15345 | IFS=$lt_save_ifs |
||
15346 | # Let DOS variable expansion print the short 8.3 style file name. |
||
15347 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
||
15348 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
||
15349 | done |
||
15350 | IFS=$lt_save_ifs |
||
15351 | # Convert to MSYS style. |
||
15352 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
||
15353 | ;; |
||
15354 | cygwin*) |
||
15355 | # Convert to unix form, then to dos form, then back to unix form |
||
15356 | # but this time dos style (no spaces!) so that the unix form looks |
||
15357 | # like /cygdrive/c/PROGRA~1:/cygdr... |
||
15358 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
||
15359 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
||
15360 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
15361 | ;; |
||
15362 | *) |
||
15363 | sys_lib_search_path_spec=$LIB |
||
15364 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
||
15365 | # It is most probably a Windows format PATH. |
||
15366 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
15367 | else |
||
15368 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
15369 | fi |
||
15370 | # FIXME: find the short name or the path components, as spaces are |
||
15371 | # common. (e.g. "Program Files" -> "PROGRA~1") |
||
15372 | ;; |
||
15373 | esac |
||
15374 | |||
15375 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
15376 | postinstall_cmds='base_file=`basename \$file`~ |
||
15377 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
15378 | dldir=$destdir/`dirname \$dlpath`~ |
||
15379 | test -d \$dldir || mkdir -p \$dldir~ |
||
15380 | $install_prog $dir/$dlname \$dldir/$dlname' |
||
15381 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
15382 | dlpath=$dir/\$dldll~ |
||
15383 | $RM \$dlpath' |
||
15384 | shlibpath_overrides_runpath=yes |
||
15385 | dynamic_linker='Win32 link.exe' |
||
15386 | ;; |
||
15387 | |||
15388 | *) |
||
15389 | # Assume MSVC wrapper |
||
15390 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
||
15391 | dynamic_linker='Win32 ld.exe' |
||
15392 | ;; |
||
15393 | esac |
||
15394 | # FIXME: first we should search . and the directory the executable is in |
||
15395 | shlibpath_var=PATH |
||
15396 | ;; |
||
15397 | |||
15398 | darwin* | rhapsody*) |
||
15399 | dynamic_linker="$host_os dyld" |
||
15400 | version_type=darwin |
||
15401 | need_lib_prefix=no |
||
15402 | need_version=no |
||
15403 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
||
15404 | soname_spec='$libname$release$major$shared_ext' |
||
15405 | shlibpath_overrides_runpath=yes |
||
15406 | shlibpath_var=DYLD_LIBRARY_PATH |
||
15407 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
15408 | |||
15409 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
||
15410 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
15411 | ;; |
||
15412 | |||
15413 | dgux*) |
||
15414 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15415 | need_lib_prefix=no |
||
15416 | need_version=no |
||
15417 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15418 | soname_spec='$libname$release$shared_ext$major' |
||
15419 | shlibpath_var=LD_LIBRARY_PATH |
||
15420 | ;; |
||
15421 | |||
15422 | freebsd* | dragonfly*) |
||
15423 | # DragonFly does not have aout. When/if they implement a new |
||
15424 | # versioning mechanism, adjust this. |
||
15425 | if test -x /usr/bin/objformat; then |
||
15426 | objformat=`/usr/bin/objformat` |
||
15427 | else |
||
15428 | case $host_os in |
||
15429 | freebsd[23].*) objformat=aout ;; |
||
15430 | *) objformat=elf ;; |
||
15431 | esac |
||
15432 | fi |
||
15433 | version_type=freebsd-$objformat |
||
15434 | case $version_type in |
||
15435 | freebsd-elf*) |
||
15436 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15437 | soname_spec='$libname$release$shared_ext$major' |
||
15438 | need_version=no |
||
15439 | need_lib_prefix=no |
||
15440 | ;; |
||
15441 | freebsd-*) |
||
15442 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
15443 | need_version=yes |
||
15444 | ;; |
||
15445 | esac |
||
15446 | shlibpath_var=LD_LIBRARY_PATH |
||
15447 | case $host_os in |
||
15448 | freebsd2.*) |
||
15449 | shlibpath_overrides_runpath=yes |
||
15450 | ;; |
||
15451 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
15452 | shlibpath_overrides_runpath=yes |
||
15453 | hardcode_into_libs=yes |
||
15454 | ;; |
||
15455 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
15456 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
15457 | shlibpath_overrides_runpath=no |
||
15458 | hardcode_into_libs=yes |
||
15459 | ;; |
||
15460 | *) # from 4.6 on, and DragonFly |
||
15461 | shlibpath_overrides_runpath=yes |
||
15462 | hardcode_into_libs=yes |
||
15463 | ;; |
||
15464 | esac |
||
15465 | ;; |
||
15466 | |||
15467 | haiku*) |
||
15468 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15469 | need_lib_prefix=no |
||
15470 | need_version=no |
||
15471 | dynamic_linker="$host_os runtime_loader" |
||
15472 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15473 | soname_spec='$libname$release$shared_ext$major' |
||
15474 | shlibpath_var=LIBRARY_PATH |
||
15475 | shlibpath_overrides_runpath=no |
||
15476 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
||
15477 | hardcode_into_libs=yes |
||
15478 | ;; |
||
15479 | |||
15480 | hpux9* | hpux10* | hpux11*) |
||
15481 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
15482 | # link against other versions. |
||
15483 | version_type=sunos |
||
15484 | need_lib_prefix=no |
||
15485 | need_version=no |
||
15486 | case $host_cpu in |
||
15487 | ia64*) |
||
15488 | shrext_cmds='.so' |
||
15489 | hardcode_into_libs=yes |
||
15490 | dynamic_linker="$host_os dld.so" |
||
15491 | shlibpath_var=LD_LIBRARY_PATH |
||
15492 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
15493 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15494 | soname_spec='$libname$release$shared_ext$major' |
||
15495 | if test 32 = "$HPUX_IA64_MODE"; then |
||
15496 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
15497 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
||
15498 | else |
||
15499 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
15500 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
||
15501 | fi |
||
15502 | ;; |
||
15503 | hppa*64*) |
||
15504 | shrext_cmds='.sl' |
||
15505 | hardcode_into_libs=yes |
||
15506 | dynamic_linker="$host_os dld.sl" |
||
15507 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
15508 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
15509 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15510 | soname_spec='$libname$release$shared_ext$major' |
||
15511 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
15512 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
15513 | ;; |
||
15514 | *) |
||
15515 | shrext_cmds='.sl' |
||
15516 | dynamic_linker="$host_os dld.sl" |
||
15517 | shlibpath_var=SHLIB_PATH |
||
15518 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
15519 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15520 | soname_spec='$libname$release$shared_ext$major' |
||
15521 | ;; |
||
15522 | esac |
||
15523 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
||
15524 | postinstall_cmds='chmod 555 $lib' |
||
15525 | # or fails outright, so override atomically: |
||
15526 | install_override_mode=555 |
||
15527 | ;; |
||
15528 | |||
15529 | interix[3-9]*) |
||
15530 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15531 | need_lib_prefix=no |
||
15532 | need_version=no |
||
15533 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15534 | soname_spec='$libname$release$shared_ext$major' |
||
15535 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
15536 | shlibpath_var=LD_LIBRARY_PATH |
||
15537 | shlibpath_overrides_runpath=no |
||
15538 | hardcode_into_libs=yes |
||
15539 | ;; |
||
15540 | |||
15541 | irix5* | irix6* | nonstopux*) |
||
15542 | case $host_os in |
||
15543 | nonstopux*) version_type=nonstopux ;; |
||
15544 | *) |
||
15545 | if test yes = "$lt_cv_prog_gnu_ld"; then |
||
15546 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15547 | else |
||
15548 | version_type=irix |
||
15549 | fi ;; |
||
15550 | esac |
||
15551 | need_lib_prefix=no |
||
15552 | need_version=no |
||
15553 | soname_spec='$libname$release$shared_ext$major' |
||
15554 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
||
15555 | case $host_os in |
||
15556 | irix5* | nonstopux*) |
||
15557 | libsuff= shlibsuff= |
||
15558 | ;; |
||
15559 | *) |
||
15560 | case $LD in # libtool.m4 will add one of these switches to LD |
||
15561 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
15562 | libsuff= shlibsuff= libmagic=32-bit;; |
||
15563 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
15564 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
15565 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
15566 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
15567 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
15568 | esac |
||
15569 | ;; |
||
15570 | esac |
||
15571 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
15572 | shlibpath_overrides_runpath=no |
||
15573 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
||
15574 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
||
15575 | hardcode_into_libs=yes |
||
15576 | ;; |
||
15577 | |||
15578 | # No shared lib support for Linux oldld, aout, or coff. |
||
15579 | linux*oldld* | linux*aout* | linux*coff*) |
||
15580 | dynamic_linker=no |
||
15581 | ;; |
||
15582 | |||
15583 | linux*android*) |
||
15584 | version_type=none # Android doesn't support versioned libraries. |
||
15585 | need_lib_prefix=no |
||
15586 | need_version=no |
||
15587 | library_names_spec='$libname$release$shared_ext' |
||
15588 | soname_spec='$libname$release$shared_ext' |
||
15589 | finish_cmds= |
||
15590 | shlibpath_var=LD_LIBRARY_PATH |
||
15591 | shlibpath_overrides_runpath=yes |
||
15592 | |||
15593 | # This implies no fast_install, which is unacceptable. |
||
15594 | # Some rework will be needed to allow for fast_install |
||
15595 | # before this can be enabled. |
||
15596 | hardcode_into_libs=yes |
||
15597 | |||
15598 | dynamic_linker='Android linker' |
||
15599 | # Don't embed -rpath directories since the linker doesn't support them. |
||
15600 | hardcode_libdir_flag_spec='-L$libdir' |
||
15601 | ;; |
||
15602 | |||
15603 | # This must be glibc/ELF. |
||
15604 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
15605 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15606 | need_lib_prefix=no |
||
15607 | need_version=no |
||
15608 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15609 | soname_spec='$libname$release$shared_ext$major' |
||
15610 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
15611 | shlibpath_var=LD_LIBRARY_PATH |
||
15612 | shlibpath_overrides_runpath=no |
||
15613 | |||
15614 | # Some binutils ld are patched to set DT_RUNPATH |
||
15615 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
||
15616 | $as_echo_n "(cached) " >&6 |
||
15617 | else |
||
15618 | lt_cv_shlibpath_overrides_runpath=no |
||
15619 | save_LDFLAGS=$LDFLAGS |
||
15620 | save_libdir=$libdir |
||
15621 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
||
15622 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
||
15623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
15624 | /* end confdefs.h. */ |
||
15625 | |||
15626 | int |
||
15627 | main () |
||
15628 | { |
||
15629 | |||
15630 | ; |
||
15631 | return 0; |
||
15632 | } |
||
15633 | _ACEOF |
||
15634 | if ac_fn_c_try_link "$LINENO"; then : |
||
15635 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
||
15636 | lt_cv_shlibpath_overrides_runpath=yes |
||
15637 | fi |
||
15638 | fi |
||
15639 | rm -f core conftest.err conftest.$ac_objext \ |
||
15640 | conftest$ac_exeext conftest.$ac_ext |
||
15641 | LDFLAGS=$save_LDFLAGS |
||
15642 | libdir=$save_libdir |
||
15643 | |||
15644 | fi |
||
15645 | |||
15646 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
||
15647 | |||
15648 | # This implies no fast_install, which is unacceptable. |
||
15649 | # Some rework will be needed to allow for fast_install |
||
15650 | # before this can be enabled. |
||
15651 | hardcode_into_libs=yes |
||
15652 | |||
15653 | # Ideally, we could use ldconfig to report *all* directores which are |
||
15654 | # searched for libraries, however this is still not possible. Aside from not |
||
15655 | # being certain /sbin/ldconfig is available, command |
||
15656 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
||
15657 | # even though it is searched at run-time. Try to do the best guess by |
||
15658 | # appending ld.so.conf contents (and includes) to the search path. |
||
15659 | if test -f /etc/ld.so.conf; then |
||
15660 | 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' ' '` |
||
15661 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
15662 | fi |
||
15663 | |||
15664 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
15665 | # powerpc, because MkLinux only supported shared libraries with the |
||
15666 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
15667 | # most powerpc-linux boxes support dynamic linking these days and |
||
15668 | # people can always --disable-shared, the test was removed, and we |
||
15669 | # assume the GNU/Linux dynamic linker is in use. |
||
15670 | dynamic_linker='GNU/Linux ld.so' |
||
15671 | ;; |
||
15672 | |||
15673 | netbsdelf*-gnu) |
||
15674 | version_type=linux |
||
15675 | need_lib_prefix=no |
||
15676 | need_version=no |
||
15677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
15678 | soname_spec='${libname}${release}${shared_ext}$major' |
||
15679 | shlibpath_var=LD_LIBRARY_PATH |
||
15680 | shlibpath_overrides_runpath=no |
||
15681 | hardcode_into_libs=yes |
||
15682 | dynamic_linker='NetBSD ld.elf_so' |
||
15683 | ;; |
||
15684 | |||
15685 | netbsd*) |
||
15686 | version_type=sunos |
||
15687 | need_lib_prefix=no |
||
15688 | need_version=no |
||
15689 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
15690 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
15691 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
15692 | dynamic_linker='NetBSD (a.out) ld.so' |
||
15693 | else |
||
15694 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15695 | soname_spec='$libname$release$shared_ext$major' |
||
15696 | dynamic_linker='NetBSD ld.elf_so' |
||
15697 | fi |
||
15698 | shlibpath_var=LD_LIBRARY_PATH |
||
15699 | shlibpath_overrides_runpath=yes |
||
15700 | hardcode_into_libs=yes |
||
15701 | ;; |
||
15702 | |||
15703 | newsos6) |
||
15704 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15705 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15706 | shlibpath_var=LD_LIBRARY_PATH |
||
15707 | shlibpath_overrides_runpath=yes |
||
15708 | ;; |
||
15709 | |||
15710 | *nto* | *qnx*) |
||
15711 | version_type=qnx |
||
15712 | need_lib_prefix=no |
||
15713 | need_version=no |
||
15714 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15715 | soname_spec='$libname$release$shared_ext$major' |
||
15716 | shlibpath_var=LD_LIBRARY_PATH |
||
15717 | shlibpath_overrides_runpath=no |
||
15718 | hardcode_into_libs=yes |
||
15719 | dynamic_linker='ldqnx.so' |
||
15720 | ;; |
||
15721 | |||
15722 | openbsd* | bitrig*) |
||
15723 | version_type=sunos |
||
15724 | sys_lib_dlsearch_path_spec=/usr/lib |
||
15725 | need_lib_prefix=no |
||
15726 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
15727 | need_version=no |
||
15728 | else |
||
15729 | need_version=yes |
||
15730 | fi |
||
15731 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
15732 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
15733 | shlibpath_var=LD_LIBRARY_PATH |
||
15734 | shlibpath_overrides_runpath=yes |
||
15735 | ;; |
||
15736 | |||
15737 | os2*) |
||
15738 | libname_spec='$name' |
||
15739 | version_type=windows |
||
15740 | shrext_cmds=.dll |
||
15741 | need_version=no |
||
15742 | need_lib_prefix=no |
||
15743 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
||
15744 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
||
15745 | v=$($ECHO $release$versuffix | tr -d .-); |
||
15746 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
||
15747 | $ECHO $n$v`$shared_ext' |
||
15748 | library_names_spec='${libname}_dll.$libext' |
||
15749 | dynamic_linker='OS/2 ld.exe' |
||
15750 | shlibpath_var=BEGINLIBPATH |
||
15751 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
15752 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
15753 | postinstall_cmds='base_file=`basename \$file`~ |
||
15754 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
||
15755 | dldir=$destdir/`dirname \$dlpath`~ |
||
15756 | test -d \$dldir || mkdir -p \$dldir~ |
||
15757 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
15758 | chmod a+x \$dldir/$dlname~ |
||
15759 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
15760 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
15761 | fi' |
||
15762 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
||
15763 | dlpath=$dir/\$dldll~ |
||
15764 | $RM \$dlpath' |
||
15765 | ;; |
||
15766 | |||
15767 | osf3* | osf4* | osf5*) |
||
15768 | version_type=osf |
||
15769 | need_lib_prefix=no |
||
15770 | need_version=no |
||
15771 | soname_spec='$libname$release$shared_ext$major' |
||
15772 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15773 | shlibpath_var=LD_LIBRARY_PATH |
||
15774 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
15775 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
15776 | ;; |
||
15777 | |||
15778 | rdos*) |
||
15779 | dynamic_linker=no |
||
15780 | ;; |
||
15781 | |||
15782 | solaris*) |
||
15783 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15784 | need_lib_prefix=no |
||
15785 | need_version=no |
||
15786 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15787 | soname_spec='$libname$release$shared_ext$major' |
||
15788 | shlibpath_var=LD_LIBRARY_PATH |
||
15789 | shlibpath_overrides_runpath=yes |
||
15790 | hardcode_into_libs=yes |
||
15791 | # ldd complains unless libraries are executable |
||
15792 | postinstall_cmds='chmod +x $lib' |
||
15793 | ;; |
||
15794 | |||
15795 | sunos4*) |
||
15796 | version_type=sunos |
||
15797 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
15798 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
15799 | shlibpath_var=LD_LIBRARY_PATH |
||
15800 | shlibpath_overrides_runpath=yes |
||
15801 | if test yes = "$with_gnu_ld"; then |
||
15802 | need_lib_prefix=no |
||
15803 | fi |
||
15804 | need_version=yes |
||
15805 | ;; |
||
15806 | |||
15807 | sysv4 | sysv4.3*) |
||
15808 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15809 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15810 | soname_spec='$libname$release$shared_ext$major' |
||
15811 | shlibpath_var=LD_LIBRARY_PATH |
||
15812 | case $host_vendor in |
||
15813 | sni) |
||
15814 | shlibpath_overrides_runpath=no |
||
15815 | need_lib_prefix=no |
||
15816 | runpath_var=LD_RUN_PATH |
||
15817 | ;; |
||
15818 | siemens) |
||
15819 | need_lib_prefix=no |
||
15820 | ;; |
||
15821 | motorola) |
||
15822 | need_lib_prefix=no |
||
15823 | need_version=no |
||
15824 | shlibpath_overrides_runpath=no |
||
15825 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
15826 | ;; |
||
15827 | esac |
||
15828 | ;; |
||
15829 | |||
15830 | sysv4*MP*) |
||
15831 | if test -d /usr/nec; then |
||
15832 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15833 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
||
15834 | soname_spec='$libname$shared_ext.$major' |
||
15835 | shlibpath_var=LD_LIBRARY_PATH |
||
15836 | fi |
||
15837 | ;; |
||
15838 | |||
15839 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
15840 | version_type=sco |
||
15841 | need_lib_prefix=no |
||
15842 | need_version=no |
||
15843 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
||
15844 | soname_spec='$libname$release$shared_ext$major' |
||
15845 | shlibpath_var=LD_LIBRARY_PATH |
||
15846 | shlibpath_overrides_runpath=yes |
||
15847 | hardcode_into_libs=yes |
||
15848 | if test yes = "$with_gnu_ld"; then |
||
15849 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
15850 | else |
||
15851 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
15852 | case $host_os in |
||
15853 | sco3.2v5*) |
||
15854 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
15855 | ;; |
||
15856 | esac |
||
15857 | fi |
||
15858 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
15859 | ;; |
||
15860 | |||
15861 | tpf*) |
||
15862 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
||
15863 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15864 | need_lib_prefix=no |
||
15865 | need_version=no |
||
15866 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15867 | shlibpath_var=LD_LIBRARY_PATH |
||
15868 | shlibpath_overrides_runpath=no |
||
15869 | hardcode_into_libs=yes |
||
15870 | ;; |
||
15871 | |||
15872 | uts4*) |
||
15873 | version_type=linux # correct to gnu/linux during the next big refactor |
||
15874 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
15875 | soname_spec='$libname$release$shared_ext$major' |
||
15876 | shlibpath_var=LD_LIBRARY_PATH |
||
15877 | ;; |
||
15878 | |||
15879 | *) |
||
15880 | dynamic_linker=no |
||
15881 | ;; |
||
15882 | esac |
||
15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
||
15884 | $as_echo "$dynamic_linker" >&6; } |
||
15885 | test no = "$dynamic_linker" && can_build_shared=no |
||
15886 | |||
15887 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
15888 | if test yes = "$GCC"; then |
||
15889 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
15890 | fi |
||
15891 | |||
15892 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
||
15893 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
||
15894 | fi |
||
15895 | |||
15896 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
||
15897 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
||
15898 | fi |
||
15899 | |||
15900 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
||
15901 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
||
15902 | |||
15903 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
||
15904 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
||
15905 | |||
15906 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
||
15907 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
||
15908 | |||
15909 | |||
15910 | |||
15911 | |||
15912 | |||
15913 | |||
15914 | |||
15915 | |||
15916 | |||
15917 | |||
15918 | |||
15919 | |||
15920 | |||
15921 | |||
15922 | |||
15923 | |||
15924 | |||
15925 | |||
15926 | |||
15927 | |||
15928 | |||
15929 | |||
15930 | |||
15931 | |||
15932 | |||
15933 | |||
15934 | |||
15935 | |||
15936 | |||
15937 | |||
15938 | |||
15939 | |||
15940 | |||
15941 | |||
15942 | |||
15943 | |||
15944 | |||
15945 | |||
15946 | |||
15947 | |||
15948 | |||
15949 | |||
15950 | |||
15951 | |||
15952 | |||
15953 | |||
15954 | |||
15955 | |||
15956 | |||
15957 | |||
15958 | |||
15959 | |||
15960 | |||
15961 | |||
15962 | |||
15963 | |||
15964 | |||
15965 | |||
15966 | |||
15967 | |||
15968 | |||
15969 | |||
15970 | |||
15971 | |||
15972 | |||
15973 | |||
15974 | |||
15975 | |||
15976 | |||
15977 | |||
15978 | |||
15979 | |||
15980 | |||
15981 | |||
15982 | |||
15983 | |||
15984 | |||
15985 | |||
15986 | |||
15987 | |||
15988 | |||
15989 | |||
15990 | |||
15991 | |||
15992 | |||
15993 | |||
15994 | |||
15995 | |||
15996 | |||
15997 | |||
15998 | |||
15999 | |||
16000 | |||
16001 | |||
16002 | |||
16003 | |||
16004 | |||
16005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
||
16006 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
||
16007 | hardcode_action= |
||
16008 | if test -n "$hardcode_libdir_flag_spec" || |
||
16009 | test -n "$runpath_var" || |
||
16010 | test yes = "$hardcode_automatic"; then |
||
16011 | |||
16012 | # We can hardcode non-existent directories. |
||
16013 | if test no != "$hardcode_direct" && |
||
16014 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
16015 | # have to relink, otherwise we might link with an installed library |
||
16016 | # when we should be linking with a yet-to-be-installed one |
||
16017 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
||
16018 | test no != "$hardcode_minus_L"; then |
||
16019 | # Linking always hardcodes the temporary library directory. |
||
16020 | hardcode_action=relink |
||
16021 | else |
||
16022 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
16023 | hardcode_action=immediate |
||
16024 | fi |
||
16025 | else |
||
16026 | # We cannot hardcode anything, or else we can only hardcode existing |
||
16027 | # directories. |
||
16028 | hardcode_action=unsupported |
||
16029 | fi |
||
16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
||
16031 | $as_echo "$hardcode_action" >&6; } |
||
16032 | |||
16033 | if test relink = "$hardcode_action" || |
||
16034 | test yes = "$inherit_rpath"; then |
||
16035 | # Fast installation is not supported |
||
16036 | enable_fast_install=no |
||
16037 | elif test yes = "$shlibpath_overrides_runpath" || |
||
16038 | test no = "$enable_shared"; then |
||
16039 | # Fast installation is not necessary |
||
16040 | enable_fast_install=needless |
||
16041 | fi |
||
16042 | |||
16043 | |||
16044 | |||
16045 | |||
16046 | |||
16047 | |||
16048 | if test yes != "$enable_dlopen"; then |
||
16049 | enable_dlopen=unknown |
||
16050 | enable_dlopen_self=unknown |
||
16051 | enable_dlopen_self_static=unknown |
||
16052 | else |
||
16053 | lt_cv_dlopen=no |
||
16054 | lt_cv_dlopen_libs= |
||
16055 | |||
16056 | case $host_os in |
||
16057 | beos*) |
||
16058 | lt_cv_dlopen=load_add_on |
||
16059 | lt_cv_dlopen_libs= |
||
16060 | lt_cv_dlopen_self=yes |
||
16061 | ;; |
||
16062 | |||
16063 | mingw* | pw32* | cegcc*) |
||
16064 | lt_cv_dlopen=LoadLibrary |
||
16065 | lt_cv_dlopen_libs= |
||
16066 | ;; |
||
16067 | |||
16068 | cygwin*) |
||
16069 | lt_cv_dlopen=dlopen |
||
16070 | lt_cv_dlopen_libs= |
||
16071 | ;; |
||
16072 | |||
16073 | darwin*) |
||
16074 | # if libdl is installed we need to link against it |
||
16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
||
16076 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
16077 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
||
16078 | $as_echo_n "(cached) " >&6 |
||
16079 | else |
||
16080 | ac_check_lib_save_LIBS=$LIBS |
||
16081 | LIBS="-ldl $LIBS" |
||
16082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16083 | /* end confdefs.h. */ |
||
16084 | |||
16085 | /* Override any GCC internal prototype to avoid an error. |
||
16086 | Use char because int might match the return type of a GCC |
||
16087 | builtin and then its argument prototype would still apply. */ |
||
16088 | #ifdef __cplusplus |
||
16089 | extern "C" |
||
16090 | #endif |
||
16091 | char dlopen (); |
||
16092 | int |
||
16093 | main () |
||
16094 | { |
||
16095 | return dlopen (); |
||
16096 | ; |
||
16097 | return 0; |
||
16098 | } |
||
16099 | _ACEOF |
||
16100 | if ac_fn_c_try_link "$LINENO"; then : |
||
16101 | ac_cv_lib_dl_dlopen=yes |
||
16102 | else |
||
16103 | ac_cv_lib_dl_dlopen=no |
||
16104 | fi |
||
16105 | rm -f core conftest.err conftest.$ac_objext \ |
||
16106 | conftest$ac_exeext conftest.$ac_ext |
||
16107 | LIBS=$ac_check_lib_save_LIBS |
||
16108 | fi |
||
16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
||
16110 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
16111 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
||
16112 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
||
16113 | else |
||
16114 | |||
16115 | lt_cv_dlopen=dyld |
||
16116 | lt_cv_dlopen_libs= |
||
16117 | lt_cv_dlopen_self=yes |
||
16118 | |||
16119 | fi |
||
16120 | |||
16121 | ;; |
||
16122 | |||
16123 | tpf*) |
||
16124 | # Don't try to run any link tests for TPF. We know it's impossible |
||
16125 | # because TPF is a cross-compiler, and we know how we open DSOs. |
||
16126 | lt_cv_dlopen=dlopen |
||
16127 | lt_cv_dlopen_libs= |
||
16128 | lt_cv_dlopen_self=no |
||
16129 | ;; |
||
16130 | |||
16131 | *) |
||
16132 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
||
16133 | if test "x$ac_cv_func_shl_load" = xyes; then : |
||
16134 | lt_cv_dlopen=shl_load |
||
16135 | else |
||
16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
||
16137 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
||
16138 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
||
16139 | $as_echo_n "(cached) " >&6 |
||
16140 | else |
||
16141 | ac_check_lib_save_LIBS=$LIBS |
||
16142 | LIBS="-ldld $LIBS" |
||
16143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16144 | /* end confdefs.h. */ |
||
16145 | |||
16146 | /* Override any GCC internal prototype to avoid an error. |
||
16147 | Use char because int might match the return type of a GCC |
||
16148 | builtin and then its argument prototype would still apply. */ |
||
16149 | #ifdef __cplusplus |
||
16150 | extern "C" |
||
16151 | #endif |
||
16152 | char shl_load (); |
||
16153 | int |
||
16154 | main () |
||
16155 | { |
||
16156 | return shl_load (); |
||
16157 | ; |
||
16158 | return 0; |
||
16159 | } |
||
16160 | _ACEOF |
||
16161 | if ac_fn_c_try_link "$LINENO"; then : |
||
16162 | ac_cv_lib_dld_shl_load=yes |
||
16163 | else |
||
16164 | ac_cv_lib_dld_shl_load=no |
||
16165 | fi |
||
16166 | rm -f core conftest.err conftest.$ac_objext \ |
||
16167 | conftest$ac_exeext conftest.$ac_ext |
||
16168 | LIBS=$ac_check_lib_save_LIBS |
||
16169 | fi |
||
16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
||
16171 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
||
16172 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
||
16173 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
||
16174 | else |
||
16175 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
||
16176 | if test "x$ac_cv_func_dlopen" = xyes; then : |
||
16177 | lt_cv_dlopen=dlopen |
||
16178 | else |
||
16179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
||
16180 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
16181 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
||
16182 | $as_echo_n "(cached) " >&6 |
||
16183 | else |
||
16184 | ac_check_lib_save_LIBS=$LIBS |
||
16185 | LIBS="-ldl $LIBS" |
||
16186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16187 | /* end confdefs.h. */ |
||
16188 | |||
16189 | /* Override any GCC internal prototype to avoid an error. |
||
16190 | Use char because int might match the return type of a GCC |
||
16191 | builtin and then its argument prototype would still apply. */ |
||
16192 | #ifdef __cplusplus |
||
16193 | extern "C" |
||
16194 | #endif |
||
16195 | char dlopen (); |
||
16196 | int |
||
16197 | main () |
||
16198 | { |
||
16199 | return dlopen (); |
||
16200 | ; |
||
16201 | return 0; |
||
16202 | } |
||
16203 | _ACEOF |
||
16204 | if ac_fn_c_try_link "$LINENO"; then : |
||
16205 | ac_cv_lib_dl_dlopen=yes |
||
16206 | else |
||
16207 | ac_cv_lib_dl_dlopen=no |
||
16208 | fi |
||
16209 | rm -f core conftest.err conftest.$ac_objext \ |
||
16210 | conftest$ac_exeext conftest.$ac_ext |
||
16211 | LIBS=$ac_check_lib_save_LIBS |
||
16212 | fi |
||
16213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
||
16214 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
16215 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
||
16216 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
||
16217 | else |
||
16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
||
16219 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
||
16220 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
||
16221 | $as_echo_n "(cached) " >&6 |
||
16222 | else |
||
16223 | ac_check_lib_save_LIBS=$LIBS |
||
16224 | LIBS="-lsvld $LIBS" |
||
16225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16226 | /* end confdefs.h. */ |
||
16227 | |||
16228 | /* Override any GCC internal prototype to avoid an error. |
||
16229 | Use char because int might match the return type of a GCC |
||
16230 | builtin and then its argument prototype would still apply. */ |
||
16231 | #ifdef __cplusplus |
||
16232 | extern "C" |
||
16233 | #endif |
||
16234 | char dlopen (); |
||
16235 | int |
||
16236 | main () |
||
16237 | { |
||
16238 | return dlopen (); |
||
16239 | ; |
||
16240 | return 0; |
||
16241 | } |
||
16242 | _ACEOF |
||
16243 | if ac_fn_c_try_link "$LINENO"; then : |
||
16244 | ac_cv_lib_svld_dlopen=yes |
||
16245 | else |
||
16246 | ac_cv_lib_svld_dlopen=no |
||
16247 | fi |
||
16248 | rm -f core conftest.err conftest.$ac_objext \ |
||
16249 | conftest$ac_exeext conftest.$ac_ext |
||
16250 | LIBS=$ac_check_lib_save_LIBS |
||
16251 | fi |
||
16252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
||
16253 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
||
16254 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
||
16255 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
||
16256 | else |
||
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
||
16258 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
||
16259 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
||
16260 | $as_echo_n "(cached) " >&6 |
||
16261 | else |
||
16262 | ac_check_lib_save_LIBS=$LIBS |
||
16263 | LIBS="-ldld $LIBS" |
||
16264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16265 | /* end confdefs.h. */ |
||
16266 | |||
16267 | /* Override any GCC internal prototype to avoid an error. |
||
16268 | Use char because int might match the return type of a GCC |
||
16269 | builtin and then its argument prototype would still apply. */ |
||
16270 | #ifdef __cplusplus |
||
16271 | extern "C" |
||
16272 | #endif |
||
16273 | char dld_link (); |
||
16274 | int |
||
16275 | main () |
||
16276 | { |
||
16277 | return dld_link (); |
||
16278 | ; |
||
16279 | return 0; |
||
16280 | } |
||
16281 | _ACEOF |
||
16282 | if ac_fn_c_try_link "$LINENO"; then : |
||
16283 | ac_cv_lib_dld_dld_link=yes |
||
16284 | else |
||
16285 | ac_cv_lib_dld_dld_link=no |
||
16286 | fi |
||
16287 | rm -f core conftest.err conftest.$ac_objext \ |
||
16288 | conftest$ac_exeext conftest.$ac_ext |
||
16289 | LIBS=$ac_check_lib_save_LIBS |
||
16290 | fi |
||
16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
||
16292 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
||
16293 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
||
16294 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
||
16295 | fi |
||
16296 | |||
16297 | |||
16298 | fi |
||
16299 | |||
16300 | |||
16301 | fi |
||
16302 | |||
16303 | |||
16304 | fi |
||
16305 | |||
16306 | |||
16307 | fi |
||
16308 | |||
16309 | |||
16310 | fi |
||
16311 | |||
16312 | ;; |
||
16313 | esac |
||
16314 | |||
16315 | if test no = "$lt_cv_dlopen"; then |
||
16316 | enable_dlopen=no |
||
16317 | else |
||
16318 | enable_dlopen=yes |
||
16319 | fi |
||
16320 | |||
16321 | case $lt_cv_dlopen in |
||
16322 | dlopen) |
||
16323 | save_CPPFLAGS=$CPPFLAGS |
||
16324 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
||
16325 | |||
16326 | save_LDFLAGS=$LDFLAGS |
||
16327 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
||
16328 | |||
16329 | save_LIBS=$LIBS |
||
16330 | LIBS="$lt_cv_dlopen_libs $LIBS" |
||
16331 | |||
16332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
||
16333 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
||
16334 | if ${lt_cv_dlopen_self+:} false; then : |
||
16335 | $as_echo_n "(cached) " >&6 |
||
16336 | else |
||
16337 | if test yes = "$cross_compiling"; then : |
||
16338 | lt_cv_dlopen_self=cross |
||
16339 | else |
||
16340 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
16341 | lt_status=$lt_dlunknown |
||
16342 | cat > conftest.$ac_ext <<_LT_EOF |
||
16343 | #line $LINENO "configure" |
||
16344 | #include "confdefs.h" |
||
16345 | |||
16346 | #if HAVE_DLFCN_H |
||
16347 | #include <dlfcn.h> |
||
16348 | #endif |
||
16349 | |||
16350 | #include <stdio.h> |
||
16351 | |||
16352 | #ifdef RTLD_GLOBAL |
||
16353 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
16354 | #else |
||
16355 | # ifdef DL_GLOBAL |
||
16356 | # define LT_DLGLOBAL DL_GLOBAL |
||
16357 | # else |
||
16358 | # define LT_DLGLOBAL 0 |
||
16359 | # endif |
||
16360 | #endif |
||
16361 | |||
16362 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
16363 | find out it does not work in some platform. */ |
||
16364 | #ifndef LT_DLLAZY_OR_NOW |
||
16365 | # ifdef RTLD_LAZY |
||
16366 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
16367 | # else |
||
16368 | # ifdef DL_LAZY |
||
16369 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
16370 | # else |
||
16371 | # ifdef RTLD_NOW |
||
16372 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
16373 | # else |
||
16374 | # ifdef DL_NOW |
||
16375 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
16376 | # else |
||
16377 | # define LT_DLLAZY_OR_NOW 0 |
||
16378 | # endif |
||
16379 | # endif |
||
16380 | # endif |
||
16381 | # endif |
||
16382 | #endif |
||
16383 | |||
16384 | /* When -fvisibility=hidden is used, assume the code has been annotated |
||
16385 | correspondingly for the symbols needed. */ |
||
16386 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
||
16387 | int fnord () __attribute__((visibility("default"))); |
||
16388 | #endif |
||
16389 | |||
16390 | int fnord () { return 42; } |
||
16391 | int main () |
||
16392 | { |
||
16393 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
16394 | int status = $lt_dlunknown; |
||
16395 | |||
16396 | if (self) |
||
16397 | { |
||
16398 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
16399 | else |
||
16400 | { |
||
16401 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
16402 | else puts (dlerror ()); |
||
16403 | } |
||
16404 | /* dlclose (self); */ |
||
16405 | } |
||
16406 | else |
||
16407 | puts (dlerror ()); |
||
16408 | |||
16409 | return status; |
||
16410 | } |
||
16411 | _LT_EOF |
||
16412 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
||
16413 | (eval $ac_link) 2>&5 |
||
16414 | ac_status=$? |
||
16415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
16416 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
||
16417 | (./conftest; exit; ) >&5 2>/dev/null |
||
16418 | lt_status=$? |
||
16419 | case x$lt_status in |
||
16420 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
||
16421 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
||
16422 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
||
16423 | esac |
||
16424 | else : |
||
16425 | # compilation failed |
||
16426 | lt_cv_dlopen_self=no |
||
16427 | fi |
||
16428 | fi |
||
16429 | rm -fr conftest* |
||
16430 | |||
16431 | |||
16432 | fi |
||
16433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
||
16434 | $as_echo "$lt_cv_dlopen_self" >&6; } |
||
16435 | |||
16436 | if test yes = "$lt_cv_dlopen_self"; then |
||
16437 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
||
16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
||
16439 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
||
16440 | if ${lt_cv_dlopen_self_static+:} false; then : |
||
16441 | $as_echo_n "(cached) " >&6 |
||
16442 | else |
||
16443 | if test yes = "$cross_compiling"; then : |
||
16444 | lt_cv_dlopen_self_static=cross |
||
16445 | else |
||
16446 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
||
16447 | lt_status=$lt_dlunknown |
||
16448 | cat > conftest.$ac_ext <<_LT_EOF |
||
16449 | #line $LINENO "configure" |
||
16450 | #include "confdefs.h" |
||
16451 | |||
16452 | #if HAVE_DLFCN_H |
||
16453 | #include <dlfcn.h> |
||
16454 | #endif |
||
16455 | |||
16456 | #include <stdio.h> |
||
16457 | |||
16458 | #ifdef RTLD_GLOBAL |
||
16459 | # define LT_DLGLOBAL RTLD_GLOBAL |
||
16460 | #else |
||
16461 | # ifdef DL_GLOBAL |
||
16462 | # define LT_DLGLOBAL DL_GLOBAL |
||
16463 | # else |
||
16464 | # define LT_DLGLOBAL 0 |
||
16465 | # endif |
||
16466 | #endif |
||
16467 | |||
16468 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
||
16469 | find out it does not work in some platform. */ |
||
16470 | #ifndef LT_DLLAZY_OR_NOW |
||
16471 | # ifdef RTLD_LAZY |
||
16472 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
||
16473 | # else |
||
16474 | # ifdef DL_LAZY |
||
16475 | # define LT_DLLAZY_OR_NOW DL_LAZY |
||
16476 | # else |
||
16477 | # ifdef RTLD_NOW |
||
16478 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
||
16479 | # else |
||
16480 | # ifdef DL_NOW |
||
16481 | # define LT_DLLAZY_OR_NOW DL_NOW |
||
16482 | # else |
||
16483 | # define LT_DLLAZY_OR_NOW 0 |
||
16484 | # endif |
||
16485 | # endif |
||
16486 | # endif |
||
16487 | # endif |
||
16488 | #endif |
||
16489 | |||
16490 | /* When -fvisibility=hidden is used, assume the code has been annotated |
||
16491 | correspondingly for the symbols needed. */ |
||
16492 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
||
16493 | int fnord () __attribute__((visibility("default"))); |
||
16494 | #endif |
||
16495 | |||
16496 | int fnord () { return 42; } |
||
16497 | int main () |
||
16498 | { |
||
16499 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
||
16500 | int status = $lt_dlunknown; |
||
16501 | |||
16502 | if (self) |
||
16503 | { |
||
16504 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
||
16505 | else |
||
16506 | { |
||
16507 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
||
16508 | else puts (dlerror ()); |
||
16509 | } |
||
16510 | /* dlclose (self); */ |
||
16511 | } |
||
16512 | else |
||
16513 | puts (dlerror ()); |
||
16514 | |||
16515 | return status; |
||
16516 | } |
||
16517 | _LT_EOF |
||
16518 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
||
16519 | (eval $ac_link) 2>&5 |
||
16520 | ac_status=$? |
||
16521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
16522 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
||
16523 | (./conftest; exit; ) >&5 2>/dev/null |
||
16524 | lt_status=$? |
||
16525 | case x$lt_status in |
||
16526 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
||
16527 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
||
16528 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
||
16529 | esac |
||
16530 | else : |
||
16531 | # compilation failed |
||
16532 | lt_cv_dlopen_self_static=no |
||
16533 | fi |
||
16534 | fi |
||
16535 | rm -fr conftest* |
||
16536 | |||
16537 | |||
16538 | fi |
||
16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
||
16540 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
||
16541 | fi |
||
16542 | |||
16543 | CPPFLAGS=$save_CPPFLAGS |
||
16544 | LDFLAGS=$save_LDFLAGS |
||
16545 | LIBS=$save_LIBS |
||
16546 | ;; |
||
16547 | esac |
||
16548 | |||
16549 | case $lt_cv_dlopen_self in |
||
16550 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
||
16551 | *) enable_dlopen_self=unknown ;; |
||
16552 | esac |
||
16553 | |||
16554 | case $lt_cv_dlopen_self_static in |
||
16555 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
||
16556 | *) enable_dlopen_self_static=unknown ;; |
||
16557 | esac |
||
16558 | fi |
||
16559 | |||
16560 | |||
16561 | |||
16562 | |||
16563 | |||
16564 | |||
16565 | |||
16566 | |||
16567 | |||
16568 | |||
16569 | |||
16570 | |||
16571 | |||
16572 | |||
16573 | |||
16574 | |||
16575 | |||
16576 | striplib= |
||
16577 | old_striplib= |
||
16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
||
16579 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
||
16580 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
||
16581 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
||
16582 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
||
16583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
16584 | $as_echo "yes" >&6; } |
||
16585 | else |
||
16586 | # FIXME - insert some real tests, host_os isn't really good enough |
||
16587 | case $host_os in |
||
16588 | darwin*) |
||
16589 | if test -n "$STRIP"; then |
||
16590 | striplib="$STRIP -x" |
||
16591 | old_striplib="$STRIP -S" |
||
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
16593 | $as_echo "yes" >&6; } |
||
16594 | else |
||
16595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
16596 | $as_echo "no" >&6; } |
||
16597 | fi |
||
16598 | ;; |
||
16599 | *) |
||
16600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
16601 | $as_echo "no" >&6; } |
||
16602 | ;; |
||
16603 | esac |
||
16604 | fi |
||
16605 | |||
16606 | |||
16607 | |||
16608 | |||
16609 | |||
16610 | |||
16611 | |||
16612 | |||
16613 | |||
16614 | |||
16615 | |||
16616 | |||
16617 | # Report what library types will actually be built |
||
16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
||
16619 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
||
16620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
||
16621 | $as_echo "$can_build_shared" >&6; } |
||
16622 | |||
16623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
||
16624 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
||
16625 | test no = "$can_build_shared" && enable_shared=no |
||
16626 | |||
16627 | # On AIX, shared libraries and static libraries use the same namespace, and |
||
16628 | # are all built from PIC. |
||
16629 | case $host_os in |
||
16630 | aix3*) |
||
16631 | test yes = "$enable_shared" && enable_static=no |
||
16632 | if test -n "$RANLIB"; then |
||
16633 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
||
16634 | postinstall_cmds='$RANLIB $lib' |
||
16635 | fi |
||
16636 | ;; |
||
16637 | |||
16638 | aix[4-9]*) |
||
16639 | if test ia64 != "$host_cpu"; then |
||
16640 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
||
16641 | yes,aix,yes) ;; # shared object as lib.so file only |
||
16642 | yes,svr4,*) ;; # shared object as lib.so archive member only |
||
16643 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
||
16644 | esac |
||
16645 | fi |
||
16646 | ;; |
||
16647 | esac |
||
16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
||
16649 | $as_echo "$enable_shared" >&6; } |
||
16650 | |||
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
||
16652 | $as_echo_n "checking whether to build static libraries... " >&6; } |
||
16653 | # Make sure either enable_shared or enable_static is yes. |
||
16654 | test yes = "$enable_shared" || enable_static=yes |
||
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
||
16656 | $as_echo "$enable_static" >&6; } |
||
16657 | |||
16658 | |||
16659 | |||
16660 | |||
16661 | fi |
||
16662 | ac_ext=c |
||
16663 | ac_cpp='$CPP $CPPFLAGS' |
||
16664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
16665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
16666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
16667 | |||
16668 | CC=$lt_save_CC |
||
16669 | |||
16670 | if test -n "$CXX" && ( test no != "$CXX" && |
||
16671 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
||
16672 | (test g++ != "$CXX"))); then |
||
16673 | ac_ext=cpp |
||
16674 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
16675 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
16676 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
16677 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
||
16679 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
||
16680 | if test -z "$CXXCPP"; then |
||
16681 | if ${ac_cv_prog_CXXCPP+:} false; then : |
||
16682 | $as_echo_n "(cached) " >&6 |
||
16683 | else |
||
16684 | # Double quotes because CXXCPP needs to be expanded |
||
16685 | for CXXCPP in "$CXX -E" "/lib/cpp" |
||
16686 | do |
||
16687 | ac_preproc_ok=false |
||
16688 | for ac_cxx_preproc_warn_flag in '' yes |
||
16689 | do |
||
16690 | # Use a header file that comes with gcc, so configuring glibc |
||
16691 | # with a fresh cross-compiler works. |
||
16692 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
16693 | # <limits.h> exists even on freestanding compilers. |
||
16694 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
16695 | # not just through cpp. "Syntax error" is here to catch this case. |
||
16696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16697 | /* end confdefs.h. */ |
||
16698 | #ifdef __STDC__ |
||
16699 | # include <limits.h> |
||
16700 | #else |
||
16701 | # include <assert.h> |
||
16702 | #endif |
||
16703 | Syntax error |
||
16704 | _ACEOF |
||
16705 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
16706 | |||
16707 | else |
||
16708 | # Broken: fails on valid input. |
||
16709 | continue |
||
16710 | fi |
||
16711 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
16712 | |||
16713 | # OK, works on sane cases. Now check whether nonexistent headers |
||
16714 | # can be detected and how. |
||
16715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16716 | /* end confdefs.h. */ |
||
16717 | #include <ac_nonexistent.h> |
||
16718 | _ACEOF |
||
16719 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
16720 | # Broken: success on invalid input. |
||
16721 | continue |
||
16722 | else |
||
16723 | # Passes both tests. |
||
16724 | ac_preproc_ok=: |
||
16725 | break |
||
16726 | fi |
||
16727 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
16728 | |||
16729 | done |
||
16730 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
16731 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
16732 | if $ac_preproc_ok; then : |
||
16733 | break |
||
16734 | fi |
||
16735 | |||
16736 | done |
||
16737 | ac_cv_prog_CXXCPP=$CXXCPP |
||
16738 | |||
16739 | fi |
||
16740 | CXXCPP=$ac_cv_prog_CXXCPP |
||
16741 | else |
||
16742 | ac_cv_prog_CXXCPP=$CXXCPP |
||
16743 | fi |
||
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
||
16745 | $as_echo "$CXXCPP" >&6; } |
||
16746 | ac_preproc_ok=false |
||
16747 | for ac_cxx_preproc_warn_flag in '' yes |
||
16748 | do |
||
16749 | # Use a header file that comes with gcc, so configuring glibc |
||
16750 | # with a fresh cross-compiler works. |
||
16751 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
16752 | # <limits.h> exists even on freestanding compilers. |
||
16753 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
16754 | # not just through cpp. "Syntax error" is here to catch this case. |
||
16755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16756 | /* end confdefs.h. */ |
||
16757 | #ifdef __STDC__ |
||
16758 | # include <limits.h> |
||
16759 | #else |
||
16760 | # include <assert.h> |
||
16761 | #endif |
||
16762 | Syntax error |
||
16763 | _ACEOF |
||
16764 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
16765 | |||
16766 | else |
||
16767 | # Broken: fails on valid input. |
||
16768 | continue |
||
16769 | fi |
||
16770 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
16771 | |||
16772 | # OK, works on sane cases. Now check whether nonexistent headers |
||
16773 | # can be detected and how. |
||
16774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
16775 | /* end confdefs.h. */ |
||
16776 | #include <ac_nonexistent.h> |
||
16777 | _ACEOF |
||
16778 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
||
16779 | # Broken: success on invalid input. |
||
16780 | continue |
||
16781 | else |
||
16782 | # Passes both tests. |
||
16783 | ac_preproc_ok=: |
||
16784 | break |
||
16785 | fi |
||
16786 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
16787 | |||
16788 | done |
||
16789 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
16790 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
16791 | if $ac_preproc_ok; then : |
||
16792 | |||
16793 | else |
||
16794 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
16795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
16796 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
||
16797 | See \`config.log' for more details" "$LINENO" 5; } |
||
16798 | fi |
||
16799 | |||
16800 | ac_ext=c |
||
16801 | ac_cpp='$CPP $CPPFLAGS' |
||
16802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
16803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
16804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
16805 | |||
16806 | else |
||
16807 | _lt_caught_CXX_error=yes |
||
16808 | fi |
||
16809 | |||
16810 | ac_ext=cpp |
||
16811 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
16812 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
16813 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
16814 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
16815 | |||
16816 | archive_cmds_need_lc_CXX=no |
||
16817 | allow_undefined_flag_CXX= |
||
16818 | always_export_symbols_CXX=no |
||
16819 | archive_expsym_cmds_CXX= |
||
16820 | compiler_needs_object_CXX=no |
||
16821 | export_dynamic_flag_spec_CXX= |
||
16822 | hardcode_direct_CXX=no |
||
16823 | hardcode_direct_absolute_CXX=no |
||
16824 | hardcode_libdir_flag_spec_CXX= |
||
16825 | hardcode_libdir_separator_CXX= |
||
16826 | hardcode_minus_L_CXX=no |
||
16827 | hardcode_shlibpath_var_CXX=unsupported |
||
16828 | hardcode_automatic_CXX=no |
||
16829 | inherit_rpath_CXX=no |
||
16830 | module_cmds_CXX= |
||
16831 | module_expsym_cmds_CXX= |
||
16832 | link_all_deplibs_CXX=unknown |
||
16833 | old_archive_cmds_CXX=$old_archive_cmds |
||
16834 | reload_flag_CXX=$reload_flag |
||
16835 | reload_cmds_CXX=$reload_cmds |
||
16836 | no_undefined_flag_CXX= |
||
16837 | whole_archive_flag_spec_CXX= |
||
16838 | enable_shared_with_static_runtimes_CXX=no |
||
16839 | |||
16840 | # Source file extension for C++ test sources. |
||
16841 | ac_ext=cpp |
||
16842 | |||
16843 | # Object file extension for compiled C++ test sources. |
||
16844 | objext=o |
||
16845 | objext_CXX=$objext |
||
16846 | |||
16847 | # No sense in running all these tests if we already determined that |
||
16848 | # the CXX compiler isn't working. Some variables (like enable_shared) |
||
16849 | # are currently assumed to apply to all compilers on this platform, |
||
16850 | # and will be corrupted by setting them based on a non-working compiler. |
||
16851 | if test yes != "$_lt_caught_CXX_error"; then |
||
16852 | # Code to be used in simple compile tests |
||
16853 | lt_simple_compile_test_code="int some_variable = 0;" |
||
16854 | |||
16855 | # Code to be used in simple link tests |
||
16856 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
||
16857 | |||
16858 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
||
16859 | |||
16860 | |||
16861 | |||
16862 | |||
16863 | |||
16864 | |||
16865 | # If no C compiler was specified, use CC. |
||
16866 | LTCC=${LTCC-"$CC"} |
||
16867 | |||
16868 | # If no C compiler flags were specified, use CFLAGS. |
||
16869 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
||
16870 | |||
16871 | # Allow CC to be a program name with arguments. |
||
16872 | compiler=$CC |
||
16873 | |||
16874 | |||
16875 | # save warnings/boilerplate of simple test code |
||
16876 | ac_outfile=conftest.$ac_objext |
||
16877 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
||
16878 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
16879 | _lt_compiler_boilerplate=`cat conftest.err` |
||
16880 | $RM conftest* |
||
16881 | |||
16882 | ac_outfile=conftest.$ac_objext |
||
16883 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
||
16884 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
||
16885 | _lt_linker_boilerplate=`cat conftest.err` |
||
16886 | $RM -r conftest* |
||
16887 | |||
16888 | |||
16889 | # Allow CC to be a program name with arguments. |
||
16890 | lt_save_CC=$CC |
||
16891 | lt_save_CFLAGS=$CFLAGS |
||
16892 | lt_save_LD=$LD |
||
16893 | lt_save_GCC=$GCC |
||
16894 | GCC=$GXX |
||
16895 | lt_save_with_gnu_ld=$with_gnu_ld |
||
16896 | lt_save_path_LD=$lt_cv_path_LD |
||
16897 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
||
16898 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
||
16899 | else |
||
16900 | $as_unset lt_cv_prog_gnu_ld |
||
16901 | fi |
||
16902 | if test -n "${lt_cv_path_LDCXX+set}"; then |
||
16903 | lt_cv_path_LD=$lt_cv_path_LDCXX |
||
16904 | else |
||
16905 | $as_unset lt_cv_path_LD |
||
16906 | fi |
||
16907 | test -z "${LDCXX+set}" || LD=$LDCXX |
||
16908 | CC=${CXX-"c++"} |
||
16909 | CFLAGS=$CXXFLAGS |
||
16910 | compiler=$CC |
||
16911 | compiler_CXX=$CC |
||
16912 | func_cc_basename $compiler |
||
16913 | cc_basename=$func_cc_basename_result |
||
16914 | |||
16915 | |||
16916 | if test -n "$compiler"; then |
||
16917 | # We don't want -fno-exception when compiling C++ code, so set the |
||
16918 | # no_builtin_flag separately |
||
16919 | if test yes = "$GXX"; then |
||
16920 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
||
16921 | else |
||
16922 | lt_prog_compiler_no_builtin_flag_CXX= |
||
16923 | fi |
||
16924 | |||
16925 | if test yes = "$GXX"; then |
||
16926 | # Set up default GNU C++ configuration |
||
16927 | |||
16928 | |||
16929 | |||
16930 | # Check whether --with-gnu-ld was given. |
||
16931 | if test "${with_gnu_ld+set}" = set; then : |
||
16932 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
||
16933 | else |
||
16934 | with_gnu_ld=no |
||
16935 | fi |
||
16936 | |||
16937 | ac_prog=ld |
||
16938 | if test yes = "$GCC"; then |
||
16939 | # Check if gcc -print-prog-name=ld gives a path. |
||
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
||
16941 | $as_echo_n "checking for ld used by $CC... " >&6; } |
||
16942 | case $host in |
||
16943 | *-*-mingw*) |
||
16944 | # gcc leaves a trailing carriage return, which upsets mingw |
||
16945 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
||
16946 | *) |
||
16947 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
||
16948 | esac |
||
16949 | case $ac_prog in |
||
16950 | # Accept absolute paths. |
||
16951 | [\\/]* | ?:[\\/]*) |
||
16952 | re_direlt='/[^/][^/]*/\.\./' |
||
16953 | # Canonicalize the pathname of ld |
||
16954 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
||
16955 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
||
16956 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
||
16957 | done |
||
16958 | test -z "$LD" && LD=$ac_prog |
||
16959 | ;; |
||
16960 | "") |
||
16961 | # If it fails, then pretend we aren't using GCC. |
||
16962 | ac_prog=ld |
||
16963 | ;; |
||
16964 | *) |
||
16965 | # If it is relative, then search for the first ld in PATH. |
||
16966 | with_gnu_ld=unknown |
||
16967 | ;; |
||
16968 | esac |
||
16969 | elif test yes = "$with_gnu_ld"; then |
||
16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
||
16971 | $as_echo_n "checking for GNU ld... " >&6; } |
||
16972 | else |
||
16973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
||
16974 | $as_echo_n "checking for non-GNU ld... " >&6; } |
||
16975 | fi |
||
16976 | if ${lt_cv_path_LD+:} false; then : |
||
16977 | $as_echo_n "(cached) " >&6 |
||
16978 | else |
||
16979 | if test -z "$LD"; then |
||
16980 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
||
16981 | for ac_dir in $PATH; do |
||
16982 | IFS=$lt_save_ifs |
||
16983 | test -z "$ac_dir" && ac_dir=. |
||
16984 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
||
16985 | lt_cv_path_LD=$ac_dir/$ac_prog |
||
16986 | # Check to see if the program is GNU ld. I'd rather use --version, |
||
16987 | # but apparently some variants of GNU ld only accept -v. |
||
16988 | # Break only if it was the GNU/non-GNU ld that we prefer. |
||
16989 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
||
16990 | *GNU* | *'with BFD'*) |
||
16991 | test no != "$with_gnu_ld" && break |
||
16992 | ;; |
||
16993 | *) |
||
16994 | test yes != "$with_gnu_ld" && break |
||
16995 | ;; |
||
16996 | esac |
||
16997 | fi |
||
16998 | done |
||
16999 | IFS=$lt_save_ifs |
||
17000 | else |
||
17001 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
||
17002 | fi |
||
17003 | fi |
||
17004 | |||
17005 | LD=$lt_cv_path_LD |
||
17006 | if test -n "$LD"; then |
||
17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
||
17008 | $as_echo "$LD" >&6; } |
||
17009 | else |
||
17010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
17011 | $as_echo "no" >&6; } |
||
17012 | fi |
||
17013 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
||
17014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
||
17015 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
||
17016 | if ${lt_cv_prog_gnu_ld+:} false; then : |
||
17017 | $as_echo_n "(cached) " >&6 |
||
17018 | else |
||
17019 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
||
17020 | case `$LD -v 2>&1 </dev/null` in |
||
17021 | *GNU* | *'with BFD'*) |
||
17022 | lt_cv_prog_gnu_ld=yes |
||
17023 | ;; |
||
17024 | *) |
||
17025 | lt_cv_prog_gnu_ld=no |
||
17026 | ;; |
||
17027 | esac |
||
17028 | fi |
||
17029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
||
17030 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
||
17031 | with_gnu_ld=$lt_cv_prog_gnu_ld |
||
17032 | |||
17033 | |||
17034 | |||
17035 | |||
17036 | |||
17037 | |||
17038 | |||
17039 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
||
17040 | # archiving commands below assume that GNU ld is being used. |
||
17041 | if test yes = "$with_gnu_ld"; then |
||
17042 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17043 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
17044 | |||
17045 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
17046 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
17047 | |||
17048 | # If archive_cmds runs LD, not CC, wlarc should be empty |
||
17049 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
||
17050 | # investigate it a little bit more. (MM) |
||
17051 | wlarc='$wl' |
||
17052 | |||
17053 | # ancient GNU ld didn't support --whole-archive et. al. |
||
17054 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
||
17055 | $GREP 'no-whole-archive' > /dev/null; then |
||
17056 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
||
17057 | else |
||
17058 | whole_archive_flag_spec_CXX= |
||
17059 | fi |
||
17060 | else |
||
17061 | with_gnu_ld=no |
||
17062 | wlarc= |
||
17063 | |||
17064 | # A generic and very simple default shared library creation |
||
17065 | # command for GNU C++ for the case where it uses the native |
||
17066 | # linker, instead of GNU ld. If possible, this setting should |
||
17067 | # overridden to take advantage of the native linker features on |
||
17068 | # the platform it is being used on. |
||
17069 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
||
17070 | fi |
||
17071 | |||
17072 | # Commands to make compiler produce verbose output that lists |
||
17073 | # what "hidden" libraries, object files and flags are used when |
||
17074 | # linking a shared library. |
||
17075 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
17076 | |||
17077 | else |
||
17078 | GXX=no |
||
17079 | with_gnu_ld=no |
||
17080 | wlarc= |
||
17081 | fi |
||
17082 | |||
17083 | # PORTME: fill in a description of your system's C++ link characteristics |
||
17084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
17085 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
17086 | ld_shlibs_CXX=yes |
||
17087 | case $host_os in |
||
17088 | aix3*) |
||
17089 | # FIXME: insert proper C++ library support |
||
17090 | ld_shlibs_CXX=no |
||
17091 | ;; |
||
17092 | aix[4-9]*) |
||
17093 | if test ia64 = "$host_cpu"; then |
||
17094 | # On IA64, the linker does run time linking by default, so we don't |
||
17095 | # have to do anything special. |
||
17096 | aix_use_runtimelinking=no |
||
17097 | exp_sym_flag='-Bexport' |
||
17098 | no_entry_flag= |
||
17099 | else |
||
17100 | aix_use_runtimelinking=no |
||
17101 | |||
17102 | # Test if we are trying to use run time linking or normal |
||
17103 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
||
17104 | # have runtime linking enabled, and use it for executables. |
||
17105 | # For shared libraries, we enable/disable runtime linking |
||
17106 | # depending on the kind of the shared library created - |
||
17107 | # when "with_aix_soname,aix_use_runtimelinking" is: |
||
17108 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
||
17109 | # "aix,yes" lib.so shared, rtl:yes, for executables |
||
17110 | # lib.a static archive |
||
17111 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
||
17112 | # lib.a(lib.so.V) shared, rtl:no, for executables |
||
17113 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
17114 | # lib.a(lib.so.V) shared, rtl:no |
||
17115 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
||
17116 | # lib.a static archive |
||
17117 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
||
17118 | for ld_flag in $LDFLAGS; do |
||
17119 | case $ld_flag in |
||
17120 | *-brtl*) |
||
17121 | aix_use_runtimelinking=yes |
||
17122 | break |
||
17123 | ;; |
||
17124 | esac |
||
17125 | done |
||
17126 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
17127 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
||
17128 | # so we don't have lib.a shared libs to link our executables. |
||
17129 | # We have to force runtime linking in this case. |
||
17130 | aix_use_runtimelinking=yes |
||
17131 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
||
17132 | fi |
||
17133 | ;; |
||
17134 | esac |
||
17135 | |||
17136 | exp_sym_flag='-bexport' |
||
17137 | no_entry_flag='-bnoentry' |
||
17138 | fi |
||
17139 | |||
17140 | # When large executables or shared objects are built, AIX ld can |
||
17141 | # have problems creating the table of contents. If linking a library |
||
17142 | # or program results in "error TOC overflow" add -mminimal-toc to |
||
17143 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
||
17144 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
||
17145 | |||
17146 | archive_cmds_CXX='' |
||
17147 | hardcode_direct_CXX=yes |
||
17148 | hardcode_direct_absolute_CXX=yes |
||
17149 | hardcode_libdir_separator_CXX=':' |
||
17150 | link_all_deplibs_CXX=yes |
||
17151 | file_list_spec_CXX='$wl-f,' |
||
17152 | case $with_aix_soname,$aix_use_runtimelinking in |
||
17153 | aix,*) ;; # no import file |
||
17154 | svr4,* | *,yes) # use import file |
||
17155 | # The Import File defines what to hardcode. |
||
17156 | hardcode_direct_CXX=no |
||
17157 | hardcode_direct_absolute_CXX=no |
||
17158 | ;; |
||
17159 | esac |
||
17160 | |||
17161 | if test yes = "$GXX"; then |
||
17162 | case $host_os in aix4.[012]|aix4.[012].*) |
||
17163 | # We only want to do this on AIX 4.2 and lower, the check |
||
17164 | # below for broken collect2 doesn't work under 4.3+ |
||
17165 | collect2name=`$CC -print-prog-name=collect2` |
||
17166 | if test -f "$collect2name" && |
||
17167 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
||
17168 | then |
||
17169 | # We have reworked collect2 |
||
17170 | : |
||
17171 | else |
||
17172 | # We have old collect2 |
||
17173 | hardcode_direct_CXX=unsupported |
||
17174 | # It fails to find uninstalled libraries when the uninstalled |
||
17175 | # path is not listed in the libpath. Setting hardcode_minus_L |
||
17176 | # to unsupported forces relinking |
||
17177 | hardcode_minus_L_CXX=yes |
||
17178 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
17179 | hardcode_libdir_separator_CXX= |
||
17180 | fi |
||
17181 | esac |
||
17182 | shared_flag='-shared' |
||
17183 | if test yes = "$aix_use_runtimelinking"; then |
||
17184 | shared_flag=$shared_flag' $wl-G' |
||
17185 | fi |
||
17186 | # Need to ensure runtime linking is disabled for the traditional |
||
17187 | # shared library, or the linker may eventually find shared libraries |
||
17188 | # /with/ Import File - we do not want to mix them. |
||
17189 | shared_flag_aix='-shared' |
||
17190 | shared_flag_svr4='-shared $wl-G' |
||
17191 | else |
||
17192 | # not using gcc |
||
17193 | if test ia64 = "$host_cpu"; then |
||
17194 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
||
17195 | # chokes on -Wl,-G. The following line is correct: |
||
17196 | shared_flag='-G' |
||
17197 | else |
||
17198 | if test yes = "$aix_use_runtimelinking"; then |
||
17199 | shared_flag='$wl-G' |
||
17200 | else |
||
17201 | shared_flag='$wl-bM:SRE' |
||
17202 | fi |
||
17203 | shared_flag_aix='$wl-bM:SRE' |
||
17204 | shared_flag_svr4='$wl-G' |
||
17205 | fi |
||
17206 | fi |
||
17207 | |||
17208 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
||
17209 | # It seems that -bexpall does not export symbols beginning with |
||
17210 | # underscore (_), so it is better to generate a list of symbols to |
||
17211 | # export. |
||
17212 | always_export_symbols_CXX=yes |
||
17213 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
||
17214 | # Warning - without using the other runtime loading flags (-brtl), |
||
17215 | # -berok will link without error, but may produce a broken library. |
||
17216 | # The "-G" linker flag allows undefined symbols. |
||
17217 | no_undefined_flag_CXX='-bernotok' |
||
17218 | # Determine the default libpath from the value encoded in an empty |
||
17219 | # executable. |
||
17220 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
17221 | aix_libpath=$lt_cv_aix_libpath |
||
17222 | else |
||
17223 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
||
17224 | $as_echo_n "(cached) " >&6 |
||
17225 | else |
||
17226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
17227 | /* end confdefs.h. */ |
||
17228 | |||
17229 | int |
||
17230 | main () |
||
17231 | { |
||
17232 | |||
17233 | ; |
||
17234 | return 0; |
||
17235 | } |
||
17236 | _ACEOF |
||
17237 | if ac_fn_cxx_try_link "$LINENO"; then : |
||
17238 | |||
17239 | lt_aix_libpath_sed=' |
||
17240 | /Import File Strings/,/^$/ { |
||
17241 | /^0/ { |
||
17242 | s/^0 *\([^ ]*\) *$/\1/ |
||
17243 | p |
||
17244 | } |
||
17245 | }' |
||
17246 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17247 | # Check for a 64-bit object if we didn't find anything. |
||
17248 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
17249 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17250 | fi |
||
17251 | fi |
||
17252 | rm -f core conftest.err conftest.$ac_objext \ |
||
17253 | conftest$ac_exeext conftest.$ac_ext |
||
17254 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
17255 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
||
17256 | fi |
||
17257 | |||
17258 | fi |
||
17259 | |||
17260 | aix_libpath=$lt_cv_aix_libpath__CXX |
||
17261 | fi |
||
17262 | |||
17263 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
||
17264 | |||
17265 | archive_expsym_cmds_CXX='$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 |
||
17266 | else |
||
17267 | if test ia64 = "$host_cpu"; then |
||
17268 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' |
||
17269 | allow_undefined_flag_CXX="-z nodefs" |
||
17270 | archive_expsym_cmds_CXX="\$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" |
||
17271 | else |
||
17272 | # Determine the default libpath from the value encoded in an |
||
17273 | # empty executable. |
||
17274 | if test set = "${lt_cv_aix_libpath+set}"; then |
||
17275 | aix_libpath=$lt_cv_aix_libpath |
||
17276 | else |
||
17277 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
||
17278 | $as_echo_n "(cached) " >&6 |
||
17279 | else |
||
17280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
17281 | /* end confdefs.h. */ |
||
17282 | |||
17283 | int |
||
17284 | main () |
||
17285 | { |
||
17286 | |||
17287 | ; |
||
17288 | return 0; |
||
17289 | } |
||
17290 | _ACEOF |
||
17291 | if ac_fn_cxx_try_link "$LINENO"; then : |
||
17292 | |||
17293 | lt_aix_libpath_sed=' |
||
17294 | /Import File Strings/,/^$/ { |
||
17295 | /^0/ { |
||
17296 | s/^0 *\([^ ]*\) *$/\1/ |
||
17297 | p |
||
17298 | } |
||
17299 | }' |
||
17300 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17301 | # Check for a 64-bit object if we didn't find anything. |
||
17302 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
17303 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
||
17304 | fi |
||
17305 | fi |
||
17306 | rm -f core conftest.err conftest.$ac_objext \ |
||
17307 | conftest$ac_exeext conftest.$ac_ext |
||
17308 | if test -z "$lt_cv_aix_libpath__CXX"; then |
||
17309 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
||
17310 | fi |
||
17311 | |||
17312 | fi |
||
17313 | |||
17314 | aix_libpath=$lt_cv_aix_libpath__CXX |
||
17315 | fi |
||
17316 | |||
17317 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
||
17318 | # Warning - without using the other run time loading flags, |
||
17319 | # -berok will link without error, but may produce a broken library. |
||
17320 | no_undefined_flag_CXX=' $wl-bernotok' |
||
17321 | allow_undefined_flag_CXX=' $wl-berok' |
||
17322 | if test yes = "$with_gnu_ld"; then |
||
17323 | # We only use this code for GNU lds that support --whole-archive. |
||
17324 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
||
17325 | else |
||
17326 | # Exported symbols can be pulled into shared objects from archives |
||
17327 | whole_archive_flag_spec_CXX='$convenience' |
||
17328 | fi |
||
17329 | archive_cmds_need_lc_CXX=yes |
||
17330 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
||
17331 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
||
17332 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
||
17333 | if test svr4 != "$with_aix_soname"; then |
||
17334 | # This is similar to how AIX traditionally builds its shared |
||
17335 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
||
17336 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' |
||
17337 | fi |
||
17338 | if test aix != "$with_aix_soname"; then |
||
17339 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' |
||
17340 | else |
||
17341 | # used by -dlpreopen to get the symbols |
||
17342 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
||
17343 | fi |
||
17344 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' |
||
17345 | fi |
||
17346 | fi |
||
17347 | ;; |
||
17348 | |||
17349 | beos*) |
||
17350 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
||
17351 | allow_undefined_flag_CXX=unsupported |
||
17352 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
||
17353 | # support --undefined. This deserves some investigation. FIXME |
||
17354 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17355 | else |
||
17356 | ld_shlibs_CXX=no |
||
17357 | fi |
||
17358 | ;; |
||
17359 | |||
17360 | chorus*) |
||
17361 | case $cc_basename in |
||
17362 | *) |
||
17363 | # FIXME: insert proper C++ library support |
||
17364 | ld_shlibs_CXX=no |
||
17365 | ;; |
||
17366 | esac |
||
17367 | ;; |
||
17368 | |||
17369 | cygwin* | mingw* | pw32* | cegcc*) |
||
17370 | case $GXX,$cc_basename in |
||
17371 | ,cl* | no,cl*) |
||
17372 | # Native MSVC |
||
17373 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
||
17374 | # no search path for DLLs. |
||
17375 | hardcode_libdir_flag_spec_CXX=' ' |
||
17376 | allow_undefined_flag_CXX=unsupported |
||
17377 | always_export_symbols_CXX=yes |
||
17378 | file_list_spec_CXX='@' |
||
17379 | # Tell ltmain to make .lib files, not .a files. |
||
17380 | libext=lib |
||
17381 | # Tell ltmain to make .dll files, not .so files. |
||
17382 | shrext_cmds=.dll |
||
17383 | # FIXME: Setting linknames here is a bad hack. |
||
17384 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
||
17385 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
17386 | cp "$export_symbols" "$output_objdir/$soname.def"; |
||
17387 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
||
17388 | else |
||
17389 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
||
17390 | fi~ |
||
17391 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
||
17392 | linknames=' |
||
17393 | # The linker will not automatically build a static lib if we build a DLL. |
||
17394 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
||
17395 | enable_shared_with_static_runtimes_CXX=yes |
||
17396 | # Don't use ranlib |
||
17397 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
||
17398 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
||
17399 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
||
17400 | case $lt_outputfile in |
||
17401 | *.exe|*.EXE) ;; |
||
17402 | *) |
||
17403 | lt_outputfile=$lt_outputfile.exe |
||
17404 | lt_tool_outputfile=$lt_tool_outputfile.exe |
||
17405 | ;; |
||
17406 | esac~ |
||
17407 | func_to_tool_file "$lt_outputfile"~ |
||
17408 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
||
17409 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
||
17410 | $RM "$lt_outputfile.manifest"; |
||
17411 | fi' |
||
17412 | ;; |
||
17413 | *) |
||
17414 | # g++ |
||
17415 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
||
17416 | # as there is no search path for DLLs. |
||
17417 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
17418 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
||
17419 | allow_undefined_flag_CXX=unsupported |
||
17420 | always_export_symbols_CXX=no |
||
17421 | enable_shared_with_static_runtimes_CXX=yes |
||
17422 | |||
17423 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
||
17424 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
17425 | # If the export-symbols file already is a .def file, use it as |
||
17426 | # is; otherwise, prepend EXPORTS... |
||
17427 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
||
17428 | cp $export_symbols $output_objdir/$soname.def; |
||
17429 | else |
||
17430 | echo EXPORTS > $output_objdir/$soname.def; |
||
17431 | cat $export_symbols >> $output_objdir/$soname.def; |
||
17432 | fi~ |
||
17433 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
||
17434 | else |
||
17435 | ld_shlibs_CXX=no |
||
17436 | fi |
||
17437 | ;; |
||
17438 | esac |
||
17439 | ;; |
||
17440 | darwin* | rhapsody*) |
||
17441 | |||
17442 | |||
17443 | archive_cmds_need_lc_CXX=no |
||
17444 | hardcode_direct_CXX=no |
||
17445 | hardcode_automatic_CXX=yes |
||
17446 | hardcode_shlibpath_var_CXX=unsupported |
||
17447 | if test yes = "$lt_cv_ld_force_load"; then |
||
17448 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
||
17449 | |||
17450 | else |
||
17451 | whole_archive_flag_spec_CXX='' |
||
17452 | fi |
||
17453 | link_all_deplibs_CXX=yes |
||
17454 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
||
17455 | case $cc_basename in |
||
17456 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
||
17457 | *) _lt_dar_can_shared=$GCC ;; |
||
17458 | esac |
||
17459 | if test yes = "$_lt_dar_can_shared"; then |
||
17460 | output_verbose_link_cmd=func_echo_all |
||
17461 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
||
17462 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
||
17463 | archive_expsym_cmds_CXX="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" |
||
17464 | module_expsym_cmds_CXX="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" |
||
17465 | if test yes != "$lt_cv_apple_cc_single_mod"; then |
||
17466 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" |
||
17467 | archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" |
||
17468 | fi |
||
17469 | |||
17470 | else |
||
17471 | ld_shlibs_CXX=no |
||
17472 | fi |
||
17473 | |||
17474 | ;; |
||
17475 | |||
17476 | os2*) |
||
17477 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
17478 | hardcode_minus_L_CXX=yes |
||
17479 | allow_undefined_flag_CXX=unsupported |
||
17480 | shrext_cmds=.dll |
||
17481 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
17482 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
17483 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
17484 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
17485 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
||
17486 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
17487 | emximp -o $lib $output_objdir/$libname.def' |
||
17488 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
||
17489 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
||
17490 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
||
17491 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
||
17492 | prefix_cmds="$SED"~ |
||
17493 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
||
17494 | prefix_cmds="$prefix_cmds -e 1d"; |
||
17495 | fi~ |
||
17496 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
||
17497 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
||
17498 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
||
17499 | emximp -o $lib $output_objdir/$libname.def' |
||
17500 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
||
17501 | enable_shared_with_static_runtimes_CXX=yes |
||
17502 | ;; |
||
17503 | |||
17504 | dgux*) |
||
17505 | case $cc_basename in |
||
17506 | ec++*) |
||
17507 | # FIXME: insert proper C++ library support |
||
17508 | ld_shlibs_CXX=no |
||
17509 | ;; |
||
17510 | ghcx*) |
||
17511 | # Green Hills C++ Compiler |
||
17512 | # FIXME: insert proper C++ library support |
||
17513 | ld_shlibs_CXX=no |
||
17514 | ;; |
||
17515 | *) |
||
17516 | # FIXME: insert proper C++ library support |
||
17517 | ld_shlibs_CXX=no |
||
17518 | ;; |
||
17519 | esac |
||
17520 | ;; |
||
17521 | |||
17522 | freebsd2.*) |
||
17523 | # C++ shared libraries reported to be fairly broken before |
||
17524 | # switch to ELF |
||
17525 | ld_shlibs_CXX=no |
||
17526 | ;; |
||
17527 | |||
17528 | freebsd-elf*) |
||
17529 | archive_cmds_need_lc_CXX=no |
||
17530 | ;; |
||
17531 | |||
17532 | freebsd* | dragonfly*) |
||
17533 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
||
17534 | # conventions |
||
17535 | ld_shlibs_CXX=yes |
||
17536 | ;; |
||
17537 | |||
17538 | haiku*) |
||
17539 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17540 | link_all_deplibs_CXX=yes |
||
17541 | ;; |
||
17542 | |||
17543 | hpux9*) |
||
17544 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
||
17545 | hardcode_libdir_separator_CXX=: |
||
17546 | export_dynamic_flag_spec_CXX='$wl-E' |
||
17547 | hardcode_direct_CXX=yes |
||
17548 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
||
17549 | # but as the default |
||
17550 | # location of the library. |
||
17551 | |||
17552 | case $cc_basename in |
||
17553 | CC*) |
||
17554 | # FIXME: insert proper C++ library support |
||
17555 | ld_shlibs_CXX=no |
||
17556 | ;; |
||
17557 | aCC*) |
||
17558 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
||
17559 | # Commands to make compiler produce verbose output that lists |
||
17560 | # what "hidden" libraries, object files and flags are used when |
||
17561 | # linking a shared library. |
||
17562 | # |
||
17563 | # There doesn't appear to be a way to prevent this compiler from |
||
17564 | # explicitly linking system object files so we need to strip them |
||
17565 | # from the output so that they don't get included in the library |
||
17566 | # dependencies. |
||
17567 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
||
17568 | ;; |
||
17569 | *) |
||
17570 | if test yes = "$GXX"; then |
||
17571 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
||
17572 | else |
||
17573 | # FIXME: insert proper C++ library support |
||
17574 | ld_shlibs_CXX=no |
||
17575 | fi |
||
17576 | ;; |
||
17577 | esac |
||
17578 | ;; |
||
17579 | |||
17580 | hpux10*|hpux11*) |
||
17581 | if test no = "$with_gnu_ld"; then |
||
17582 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
||
17583 | hardcode_libdir_separator_CXX=: |
||
17584 | |||
17585 | case $host_cpu in |
||
17586 | hppa*64*|ia64*) |
||
17587 | ;; |
||
17588 | *) |
||
17589 | export_dynamic_flag_spec_CXX='$wl-E' |
||
17590 | ;; |
||
17591 | esac |
||
17592 | fi |
||
17593 | case $host_cpu in |
||
17594 | hppa*64*|ia64*) |
||
17595 | hardcode_direct_CXX=no |
||
17596 | hardcode_shlibpath_var_CXX=no |
||
17597 | ;; |
||
17598 | *) |
||
17599 | hardcode_direct_CXX=yes |
||
17600 | hardcode_direct_absolute_CXX=yes |
||
17601 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
||
17602 | # but as the default |
||
17603 | # location of the library. |
||
17604 | ;; |
||
17605 | esac |
||
17606 | |||
17607 | case $cc_basename in |
||
17608 | CC*) |
||
17609 | # FIXME: insert proper C++ library support |
||
17610 | ld_shlibs_CXX=no |
||
17611 | ;; |
||
17612 | aCC*) |
||
17613 | case $host_cpu in |
||
17614 | hppa*64*) |
||
17615 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17616 | ;; |
||
17617 | ia64*) |
||
17618 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17619 | ;; |
||
17620 | *) |
||
17621 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17622 | ;; |
||
17623 | esac |
||
17624 | # Commands to make compiler produce verbose output that lists |
||
17625 | # what "hidden" libraries, object files and flags are used when |
||
17626 | # linking a shared library. |
||
17627 | # |
||
17628 | # There doesn't appear to be a way to prevent this compiler from |
||
17629 | # explicitly linking system object files so we need to strip them |
||
17630 | # from the output so that they don't get included in the library |
||
17631 | # dependencies. |
||
17632 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
||
17633 | ;; |
||
17634 | *) |
||
17635 | if test yes = "$GXX"; then |
||
17636 | if test no = "$with_gnu_ld"; then |
||
17637 | case $host_cpu in |
||
17638 | hppa*64*) |
||
17639 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17640 | ;; |
||
17641 | ia64*) |
||
17642 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17643 | ;; |
||
17644 | *) |
||
17645 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17646 | ;; |
||
17647 | esac |
||
17648 | fi |
||
17649 | else |
||
17650 | # FIXME: insert proper C++ library support |
||
17651 | ld_shlibs_CXX=no |
||
17652 | fi |
||
17653 | ;; |
||
17654 | esac |
||
17655 | ;; |
||
17656 | |||
17657 | interix[3-9]*) |
||
17658 | hardcode_direct_CXX=no |
||
17659 | hardcode_shlibpath_var_CXX=no |
||
17660 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
17661 | export_dynamic_flag_spec_CXX='$wl-E' |
||
17662 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
||
17663 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
||
17664 | # default) and relocated if they conflict, which is a slow very memory |
||
17665 | # consuming and fragmenting process. To avoid this, we pick a random, |
||
17666 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
||
17667 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
||
17668 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
||
17669 | archive_expsym_cmds_CXX='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' |
||
17670 | ;; |
||
17671 | irix5* | irix6*) |
||
17672 | case $cc_basename in |
||
17673 | CC*) |
||
17674 | # SGI C++ |
||
17675 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
||
17676 | |||
17677 | # Archives containing C++ object files must be created using |
||
17678 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
||
17679 | # necessary to make sure instantiated templates are included |
||
17680 | # in the archive. |
||
17681 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
||
17682 | ;; |
||
17683 | *) |
||
17684 | if test yes = "$GXX"; then |
||
17685 | if test no = "$with_gnu_ld"; then |
||
17686 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' |
||
17687 | else |
||
17688 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' |
||
17689 | fi |
||
17690 | fi |
||
17691 | link_all_deplibs_CXX=yes |
||
17692 | ;; |
||
17693 | esac |
||
17694 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
17695 | hardcode_libdir_separator_CXX=: |
||
17696 | inherit_rpath_CXX=yes |
||
17697 | ;; |
||
17698 | |||
17699 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
17700 | case $cc_basename in |
||
17701 | KCC*) |
||
17702 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
17703 | |||
17704 | # KCC will only create a shared library if the output file |
||
17705 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
17706 | # to its proper name (with version) after linking. |
||
17707 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
||
17708 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' |
||
17709 | # Commands to make compiler produce verbose output that lists |
||
17710 | # what "hidden" libraries, object files and flags are used when |
||
17711 | # linking a shared library. |
||
17712 | # |
||
17713 | # There doesn't appear to be a way to prevent this compiler from |
||
17714 | # explicitly linking system object files so we need to strip them |
||
17715 | # from the output so that they don't get included in the library |
||
17716 | # dependencies. |
||
17717 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
||
17718 | |||
17719 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
17720 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
17721 | |||
17722 | # Archives containing C++ object files must be created using |
||
17723 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
||
17724 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
||
17725 | ;; |
||
17726 | icpc* | ecpc* ) |
||
17727 | # Intel C++ |
||
17728 | with_gnu_ld=yes |
||
17729 | # version 8.0 and above of icpc choke on multiply defined symbols |
||
17730 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
||
17731 | # earlier do not add the objects themselves. |
||
17732 | case `$CC -V 2>&1` in |
||
17733 | *"Version 7."*) |
||
17734 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17735 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
17736 | ;; |
||
17737 | *) # Version 8.0 or newer |
||
17738 | tmp_idyn= |
||
17739 | case $host_cpu in |
||
17740 | ia64*) tmp_idyn=' -i_dynamic';; |
||
17741 | esac |
||
17742 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17743 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
17744 | ;; |
||
17745 | esac |
||
17746 | archive_cmds_need_lc_CXX=no |
||
17747 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
17748 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
17749 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
||
17750 | ;; |
||
17751 | pgCC* | pgcpp*) |
||
17752 | # Portland Group C++ compiler |
||
17753 | case `$CC -V` in |
||
17754 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
||
17755 | prelink_cmds_CXX='tpldir=Template.dir~ |
||
17756 | rm -rf $tpldir~ |
||
17757 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
||
17758 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
||
17759 | old_archive_cmds_CXX='tpldir=Template.dir~ |
||
17760 | rm -rf $tpldir~ |
||
17761 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
||
17762 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
||
17763 | $RANLIB $oldlib' |
||
17764 | archive_cmds_CXX='tpldir=Template.dir~ |
||
17765 | rm -rf $tpldir~ |
||
17766 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
||
17767 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17768 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
||
17769 | rm -rf $tpldir~ |
||
17770 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
||
17771 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
17772 | ;; |
||
17773 | *) # Version 6 and above use weak symbols |
||
17774 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17775 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
||
17776 | ;; |
||
17777 | esac |
||
17778 | |||
17779 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
||
17780 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
17781 | whole_archive_flag_spec_CXX='$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' |
||
17782 | ;; |
||
17783 | cxx*) |
||
17784 | # Compaq C++ |
||
17785 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17786 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' |
||
17787 | |||
17788 | runpath_var=LD_RUN_PATH |
||
17789 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
||
17790 | hardcode_libdir_separator_CXX=: |
||
17791 | |||
17792 | # Commands to make compiler produce verbose output that lists |
||
17793 | # what "hidden" libraries, object files and flags are used when |
||
17794 | # linking a shared library. |
||
17795 | # |
||
17796 | # There doesn't appear to be a way to prevent this compiler from |
||
17797 | # explicitly linking system object files so we need to strip them |
||
17798 | # from the output so that they don't get included in the library |
||
17799 | # dependencies. |
||
17800 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
||
17801 | ;; |
||
17802 | xl* | mpixl* | bgxl*) |
||
17803 | # IBM XL 8.0 on PPC, with GNU ld |
||
17804 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
17805 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' |
||
17806 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
||
17807 | if test yes = "$supports_anon_versioning"; then |
||
17808 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
||
17809 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
||
17810 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
||
17811 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
||
17812 | fi |
||
17813 | ;; |
||
17814 | *) |
||
17815 | case `$CC -V 2>&1 | sed 5q` in |
||
17816 | *Sun\ C*) |
||
17817 | # Sun C++ 5.9 |
||
17818 | no_undefined_flag_CXX=' -zdefs' |
||
17819 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
17820 | archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' |
||
17821 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
17822 | whole_archive_flag_spec_CXX='$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' |
||
17823 | compiler_needs_object_CXX=yes |
||
17824 | |||
17825 | # Not sure whether something based on |
||
17826 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
||
17827 | # would be better. |
||
17828 | output_verbose_link_cmd='func_echo_all' |
||
17829 | |||
17830 | # Archives containing C++ object files must be created using |
||
17831 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
||
17832 | # necessary to make sure instantiated templates are included |
||
17833 | # in the archive. |
||
17834 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
||
17835 | ;; |
||
17836 | esac |
||
17837 | ;; |
||
17838 | esac |
||
17839 | ;; |
||
17840 | |||
17841 | lynxos*) |
||
17842 | # FIXME: insert proper C++ library support |
||
17843 | ld_shlibs_CXX=no |
||
17844 | ;; |
||
17845 | |||
17846 | m88k*) |
||
17847 | # FIXME: insert proper C++ library support |
||
17848 | ld_shlibs_CXX=no |
||
17849 | ;; |
||
17850 | |||
17851 | mvs*) |
||
17852 | case $cc_basename in |
||
17853 | cxx*) |
||
17854 | # FIXME: insert proper C++ library support |
||
17855 | ld_shlibs_CXX=no |
||
17856 | ;; |
||
17857 | *) |
||
17858 | # FIXME: insert proper C++ library support |
||
17859 | ld_shlibs_CXX=no |
||
17860 | ;; |
||
17861 | esac |
||
17862 | ;; |
||
17863 | |||
17864 | netbsd*) |
||
17865 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
17866 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
||
17867 | wlarc= |
||
17868 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
17869 | hardcode_direct_CXX=yes |
||
17870 | hardcode_shlibpath_var_CXX=no |
||
17871 | fi |
||
17872 | # Workaround some broken pre-1.5 toolchains |
||
17873 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
||
17874 | ;; |
||
17875 | |||
17876 | *nto* | *qnx*) |
||
17877 | ld_shlibs_CXX=yes |
||
17878 | ;; |
||
17879 | |||
17880 | openbsd* | bitrig*) |
||
17881 | if test -f /usr/libexec/ld.so; then |
||
17882 | hardcode_direct_CXX=yes |
||
17883 | hardcode_shlibpath_var_CXX=no |
||
17884 | hardcode_direct_absolute_CXX=yes |
||
17885 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
||
17886 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
17887 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
||
17888 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' |
||
17889 | export_dynamic_flag_spec_CXX='$wl-E' |
||
17890 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
||
17891 | fi |
||
17892 | output_verbose_link_cmd=func_echo_all |
||
17893 | else |
||
17894 | ld_shlibs_CXX=no |
||
17895 | fi |
||
17896 | ;; |
||
17897 | |||
17898 | osf3* | osf4* | osf5*) |
||
17899 | case $cc_basename in |
||
17900 | KCC*) |
||
17901 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
||
17902 | |||
17903 | # KCC will only create a shared library if the output file |
||
17904 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
||
17905 | # to its proper name (with version) after linking. |
||
17906 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
||
17907 | |||
17908 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
||
17909 | hardcode_libdir_separator_CXX=: |
||
17910 | |||
17911 | # Archives containing C++ object files must be created using |
||
17912 | # the KAI C++ compiler. |
||
17913 | case $host in |
||
17914 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
||
17915 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
||
17916 | esac |
||
17917 | ;; |
||
17918 | RCC*) |
||
17919 | # Rational C++ 2.4.1 |
||
17920 | # FIXME: insert proper C++ library support |
||
17921 | ld_shlibs_CXX=no |
||
17922 | ;; |
||
17923 | cxx*) |
||
17924 | case $host in |
||
17925 | osf3*) |
||
17926 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
||
17927 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
||
17928 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
17929 | ;; |
||
17930 | *) |
||
17931 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
||
17932 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
||
17933 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
||
17934 | echo "-hidden">> $lib.exp~ |
||
17935 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ |
||
17936 | $RM $lib.exp' |
||
17937 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
||
17938 | ;; |
||
17939 | esac |
||
17940 | |||
17941 | hardcode_libdir_separator_CXX=: |
||
17942 | |||
17943 | # Commands to make compiler produce verbose output that lists |
||
17944 | # what "hidden" libraries, object files and flags are used when |
||
17945 | # linking a shared library. |
||
17946 | # |
||
17947 | # There doesn't appear to be a way to prevent this compiler from |
||
17948 | # explicitly linking system object files so we need to strip them |
||
17949 | # from the output so that they don't get included in the library |
||
17950 | # dependencies. |
||
17951 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
||
17952 | ;; |
||
17953 | *) |
||
17954 | if test yes,no = "$GXX,$with_gnu_ld"; then |
||
17955 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
||
17956 | case $host in |
||
17957 | osf3*) |
||
17958 | archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
||
17959 | ;; |
||
17960 | *) |
||
17961 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
||
17962 | ;; |
||
17963 | esac |
||
17964 | |||
17965 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
||
17966 | hardcode_libdir_separator_CXX=: |
||
17967 | |||
17968 | # Commands to make compiler produce verbose output that lists |
||
17969 | # what "hidden" libraries, object files and flags are used when |
||
17970 | # linking a shared library. |
||
17971 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
17972 | |||
17973 | else |
||
17974 | # FIXME: insert proper C++ library support |
||
17975 | ld_shlibs_CXX=no |
||
17976 | fi |
||
17977 | ;; |
||
17978 | esac |
||
17979 | ;; |
||
17980 | |||
17981 | psos*) |
||
17982 | # FIXME: insert proper C++ library support |
||
17983 | ld_shlibs_CXX=no |
||
17984 | ;; |
||
17985 | |||
17986 | sunos4*) |
||
17987 | case $cc_basename in |
||
17988 | CC*) |
||
17989 | # Sun C++ 4.x |
||
17990 | # FIXME: insert proper C++ library support |
||
17991 | ld_shlibs_CXX=no |
||
17992 | ;; |
||
17993 | lcc*) |
||
17994 | # Lucid |
||
17995 | # FIXME: insert proper C++ library support |
||
17996 | ld_shlibs_CXX=no |
||
17997 | ;; |
||
17998 | *) |
||
17999 | # FIXME: insert proper C++ library support |
||
18000 | ld_shlibs_CXX=no |
||
18001 | ;; |
||
18002 | esac |
||
18003 | ;; |
||
18004 | |||
18005 | solaris*) |
||
18006 | case $cc_basename in |
||
18007 | CC* | sunCC*) |
||
18008 | # Sun C++ 4.2, 5.x and Centerline C++ |
||
18009 | archive_cmds_need_lc_CXX=yes |
||
18010 | no_undefined_flag_CXX=' -zdefs' |
||
18011 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
||
18012 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
18013 | $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
||
18014 | |||
18015 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
||
18016 | hardcode_shlibpath_var_CXX=no |
||
18017 | case $host_os in |
||
18018 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
18019 | *) |
||
18020 | # The compiler driver will combine and reorder linker options, |
||
18021 | # but understands '-z linker_flag'. |
||
18022 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
||
18023 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
||
18024 | ;; |
||
18025 | esac |
||
18026 | link_all_deplibs_CXX=yes |
||
18027 | |||
18028 | output_verbose_link_cmd='func_echo_all' |
||
18029 | |||
18030 | # Archives containing C++ object files must be created using |
||
18031 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
||
18032 | # necessary to make sure instantiated templates are included |
||
18033 | # in the archive. |
||
18034 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
||
18035 | ;; |
||
18036 | gcx*) |
||
18037 | # Green Hills C++ Compiler |
||
18038 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
||
18039 | |||
18040 | # The C++ compiler must be used to create the archive. |
||
18041 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
||
18042 | ;; |
||
18043 | *) |
||
18044 | # GNU C++ compiler with Solaris linker |
||
18045 | if test yes,no = "$GXX,$with_gnu_ld"; then |
||
18046 | no_undefined_flag_CXX=' $wl-z ${wl}defs' |
||
18047 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
||
18048 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
||
18049 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
18050 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
||
18051 | |||
18052 | # Commands to make compiler produce verbose output that lists |
||
18053 | # what "hidden" libraries, object files and flags are used when |
||
18054 | # linking a shared library. |
||
18055 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
18056 | else |
||
18057 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
||
18058 | # platform. |
||
18059 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
||
18060 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
||
18061 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
||
18062 | |||
18063 | # Commands to make compiler produce verbose output that lists |
||
18064 | # what "hidden" libraries, object files and flags are used when |
||
18065 | # linking a shared library. |
||
18066 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
||
18067 | fi |
||
18068 | |||
18069 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
||
18070 | case $host_os in |
||
18071 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
||
18072 | *) |
||
18073 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
||
18074 | ;; |
||
18075 | esac |
||
18076 | fi |
||
18077 | ;; |
||
18078 | esac |
||
18079 | ;; |
||
18080 | |||
18081 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
||
18082 | no_undefined_flag_CXX='$wl-z,text' |
||
18083 | archive_cmds_need_lc_CXX=no |
||
18084 | hardcode_shlibpath_var_CXX=no |
||
18085 | runpath_var='LD_RUN_PATH' |
||
18086 | |||
18087 | case $cc_basename in |
||
18088 | CC*) |
||
18089 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18090 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18091 | ;; |
||
18092 | *) |
||
18093 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18094 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18095 | ;; |
||
18096 | esac |
||
18097 | ;; |
||
18098 | |||
18099 | sysv5* | sco3.2v5* | sco5v6*) |
||
18100 | # Note: We CANNOT use -z defs as we might desire, because we do not |
||
18101 | # link with -lc, and that would cause any symbols used from libc to |
||
18102 | # always be unresolved, which means just about no library would |
||
18103 | # ever link correctly. If we're not using GNU ld we use -z text |
||
18104 | # though, which does catch some bad symbols but isn't as heavy-handed |
||
18105 | # as -z defs. |
||
18106 | no_undefined_flag_CXX='$wl-z,text' |
||
18107 | allow_undefined_flag_CXX='$wl-z,nodefs' |
||
18108 | archive_cmds_need_lc_CXX=no |
||
18109 | hardcode_shlibpath_var_CXX=no |
||
18110 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
||
18111 | hardcode_libdir_separator_CXX=':' |
||
18112 | link_all_deplibs_CXX=yes |
||
18113 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
||
18114 | runpath_var='LD_RUN_PATH' |
||
18115 | |||
18116 | case $cc_basename in |
||
18117 | CC*) |
||
18118 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18119 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18120 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
||
18121 | '"$old_archive_cmds_CXX" |
||
18122 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
||
18123 | '"$reload_cmds_CXX" |
||
18124 | ;; |
||
18125 | *) |
||
18126 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18127 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
||
18128 | ;; |
||
18129 | esac |
||
18130 | ;; |
||
18131 | |||
18132 | tandem*) |
||
18133 | case $cc_basename in |
||
18134 | NCC*) |
||
18135 | # NonStop-UX NCC 3.20 |
||
18136 | # FIXME: insert proper C++ library support |
||
18137 | ld_shlibs_CXX=no |
||
18138 | ;; |
||
18139 | *) |
||
18140 | # FIXME: insert proper C++ library support |
||
18141 | ld_shlibs_CXX=no |
||
18142 | ;; |
||
18143 | esac |
||
18144 | ;; |
||
18145 | |||
18146 | vxworks*) |
||
18147 | # FIXME: insert proper C++ library support |
||
18148 | ld_shlibs_CXX=no |
||
18149 | ;; |
||
18150 | |||
18151 | *) |
||
18152 | # FIXME: insert proper C++ library support |
||
18153 | ld_shlibs_CXX=no |
||
18154 | ;; |
||
18155 | esac |
||
18156 | |||
18157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
||
18158 | $as_echo "$ld_shlibs_CXX" >&6; } |
||
18159 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
||
18160 | |||
18161 | GCC_CXX=$GXX |
||
18162 | LD_CXX=$LD |
||
18163 | |||
18164 | ## CAVEAT EMPTOR: |
||
18165 | ## There is no encapsulation within the following macros, do not change |
||
18166 | ## the running order or otherwise move them around unless you know exactly |
||
18167 | ## what you are doing... |
||
18168 | # Dependencies to place before and after the object being linked: |
||
18169 | predep_objects_CXX= |
||
18170 | postdep_objects_CXX= |
||
18171 | predeps_CXX= |
||
18172 | postdeps_CXX= |
||
18173 | compiler_lib_search_path_CXX= |
||
18174 | |||
18175 | cat > conftest.$ac_ext <<_LT_EOF |
||
18176 | class Foo |
||
18177 | { |
||
18178 | public: |
||
18179 | Foo (void) { a = 0; } |
||
18180 | private: |
||
18181 | int a; |
||
18182 | }; |
||
18183 | _LT_EOF |
||
18184 | |||
18185 | |||
18186 | _lt_libdeps_save_CFLAGS=$CFLAGS |
||
18187 | case "$CC $CFLAGS " in #( |
||
18188 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
||
18189 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
||
18190 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
||
18191 | esac |
||
18192 | |||
18193 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
18194 | (eval $ac_compile) 2>&5 |
||
18195 | ac_status=$? |
||
18196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
18197 | test $ac_status = 0; }; then |
||
18198 | # Parse the compiler output and extract the necessary |
||
18199 | # objects, libraries and library flags. |
||
18200 | |||
18201 | # Sentinel used to keep track of whether or not we are before |
||
18202 | # the conftest object file. |
||
18203 | pre_test_object_deps_done=no |
||
18204 | |||
18205 | for p in `eval "$output_verbose_link_cmd"`; do |
||
18206 | case $prev$p in |
||
18207 | |||
18208 | -L* | -R* | -l*) |
||
18209 | # Some compilers place space between "-{L,R}" and the path. |
||
18210 | # Remove the space. |
||
18211 | if test x-L = "$p" || |
||
18212 | test x-R = "$p"; then |
||
18213 | prev=$p |
||
18214 | continue |
||
18215 | fi |
||
18216 | |||
18217 | # Expand the sysroot to ease extracting the directories later. |
||
18218 | if test -z "$prev"; then |
||
18219 | case $p in |
||
18220 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
||
18221 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
||
18222 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
||
18223 | esac |
||
18224 | fi |
||
18225 | case $p in |
||
18226 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
||
18227 | esac |
||
18228 | if test no = "$pre_test_object_deps_done"; then |
||
18229 | case $prev in |
||
18230 | -L | -R) |
||
18231 | # Internal compiler library paths should come after those |
||
18232 | # provided the user. The postdeps already come after the |
||
18233 | # user supplied libs so there is no need to process them. |
||
18234 | if test -z "$compiler_lib_search_path_CXX"; then |
||
18235 | compiler_lib_search_path_CXX=$prev$p |
||
18236 | else |
||
18237 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
||
18238 | fi |
||
18239 | ;; |
||
18240 | # The "-l" case would never come before the object being |
||
18241 | # linked, so don't bother handling this case. |
||
18242 | esac |
||
18243 | else |
||
18244 | if test -z "$postdeps_CXX"; then |
||
18245 | postdeps_CXX=$prev$p |
||
18246 | else |
||
18247 | postdeps_CXX="${postdeps_CXX} $prev$p" |
||
18248 | fi |
||
18249 | fi |
||
18250 | prev= |
||
18251 | ;; |
||
18252 | |||
18253 | *.lto.$objext) ;; # Ignore GCC LTO objects |
||
18254 | *.$objext) |
||
18255 | # This assumes that the test object file only shows up |
||
18256 | # once in the compiler output. |
||
18257 | if test "$p" = "conftest.$objext"; then |
||
18258 | pre_test_object_deps_done=yes |
||
18259 | continue |
||
18260 | fi |
||
18261 | |||
18262 | if test no = "$pre_test_object_deps_done"; then |
||
18263 | if test -z "$predep_objects_CXX"; then |
||
18264 | predep_objects_CXX=$p |
||
18265 | else |
||
18266 | predep_objects_CXX="$predep_objects_CXX $p" |
||
18267 | fi |
||
18268 | else |
||
18269 | if test -z "$postdep_objects_CXX"; then |
||
18270 | postdep_objects_CXX=$p |
||
18271 | else |
||
18272 | postdep_objects_CXX="$postdep_objects_CXX $p" |
||
18273 | fi |
||
18274 | fi |
||
18275 | ;; |
||
18276 | |||
18277 | *) ;; # Ignore the rest. |
||
18278 | |||
18279 | esac |
||
18280 | done |
||
18281 | |||
18282 | # Clean up. |
||
18283 | rm -f a.out a.exe |
||
18284 | else |
||
18285 | echo "libtool.m4: error: problem compiling CXX test program" |
||
18286 | fi |
||
18287 | |||
18288 | $RM -f confest.$objext |
||
18289 | CFLAGS=$_lt_libdeps_save_CFLAGS |
||
18290 | |||
18291 | # PORTME: override above test on systems where it is broken |
||
18292 | case $host_os in |
||
18293 | interix[3-9]*) |
||
18294 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
||
18295 | # hack all around it, let's just trust "g++" to DTRT. |
||
18296 | predep_objects_CXX= |
||
18297 | postdep_objects_CXX= |
||
18298 | postdeps_CXX= |
||
18299 | ;; |
||
18300 | esac |
||
18301 | |||
18302 | |||
18303 | case " $postdeps_CXX " in |
||
18304 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
||
18305 | esac |
||
18306 | compiler_lib_search_dirs_CXX= |
||
18307 | if test -n "${compiler_lib_search_path_CXX}"; then |
||
18308 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
||
18309 | fi |
||
18310 | |||
18311 | |||
18312 | |||
18313 | |||
18314 | |||
18315 | |||
18316 | |||
18317 | |||
18318 | |||
18319 | |||
18320 | |||
18321 | |||
18322 | |||
18323 | |||
18324 | |||
18325 | |||
18326 | |||
18327 | |||
18328 | |||
18329 | |||
18330 | |||
18331 | |||
18332 | |||
18333 | |||
18334 | |||
18335 | |||
18336 | |||
18337 | |||
18338 | |||
18339 | |||
18340 | |||
18341 | lt_prog_compiler_wl_CXX= |
||
18342 | lt_prog_compiler_pic_CXX= |
||
18343 | lt_prog_compiler_static_CXX= |
||
18344 | |||
18345 | |||
18346 | # C++ specific cases for pic, static, wl, etc. |
||
18347 | if test yes = "$GXX"; then |
||
18348 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18349 | lt_prog_compiler_static_CXX='-static' |
||
18350 | |||
18351 | case $host_os in |
||
18352 | aix*) |
||
18353 | # All AIX code is PIC. |
||
18354 | if test ia64 = "$host_cpu"; then |
||
18355 | # AIX 5 now supports IA64 processor |
||
18356 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18357 | fi |
||
18358 | lt_prog_compiler_pic_CXX='-fPIC' |
||
18359 | ;; |
||
18360 | |||
18361 | amigaos*) |
||
18362 | case $host_cpu in |
||
18363 | powerpc) |
||
18364 | # see comment about AmigaOS4 .so support |
||
18365 | lt_prog_compiler_pic_CXX='-fPIC' |
||
18366 | ;; |
||
18367 | m68k) |
||
18368 | # FIXME: we need at least 68020 code to build shared libraries, but |
||
18369 | # adding the '-m68020' flag to GCC prevents building anything better, |
||
18370 | # like '-m68040'. |
||
18371 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
||
18372 | ;; |
||
18373 | esac |
||
18374 | ;; |
||
18375 | |||
18376 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
||
18377 | # PIC is the default for these OSes. |
||
18378 | ;; |
||
18379 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
||
18380 | # This hack is so that the source file can tell whether it is being |
||
18381 | # built for inclusion in a dll (and should export symbols for example). |
||
18382 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
||
18383 | # (--disable-auto-import) libraries |
||
18384 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
||
18385 | case $host_os in |
||
18386 | os2*) |
||
18387 | lt_prog_compiler_static_CXX='$wl-static' |
||
18388 | ;; |
||
18389 | esac |
||
18390 | ;; |
||
18391 | darwin* | rhapsody*) |
||
18392 | # PIC is the default on this platform |
||
18393 | # Common symbols not allowed in MH_DYLIB files |
||
18394 | lt_prog_compiler_pic_CXX='-fno-common' |
||
18395 | ;; |
||
18396 | *djgpp*) |
||
18397 | # DJGPP does not support shared libraries at all |
||
18398 | lt_prog_compiler_pic_CXX= |
||
18399 | ;; |
||
18400 | haiku*) |
||
18401 | # PIC is the default for Haiku. |
||
18402 | # The "-static" flag exists, but is broken. |
||
18403 | lt_prog_compiler_static_CXX= |
||
18404 | ;; |
||
18405 | interix[3-9]*) |
||
18406 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
||
18407 | # Instead, we relocate shared libraries at runtime. |
||
18408 | ;; |
||
18409 | sysv4*MP*) |
||
18410 | if test -d /usr/nec; then |
||
18411 | lt_prog_compiler_pic_CXX=-Kconform_pic |
||
18412 | fi |
||
18413 | ;; |
||
18414 | hpux*) |
||
18415 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
||
18416 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
||
18417 | # sets the default TLS model and affects inlining. |
||
18418 | case $host_cpu in |
||
18419 | hppa*64*) |
||
18420 | ;; |
||
18421 | *) |
||
18422 | lt_prog_compiler_pic_CXX='-fPIC' |
||
18423 | ;; |
||
18424 | esac |
||
18425 | ;; |
||
18426 | *qnx* | *nto*) |
||
18427 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
18428 | # it will coredump. |
||
18429 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
||
18430 | ;; |
||
18431 | *) |
||
18432 | lt_prog_compiler_pic_CXX='-fPIC' |
||
18433 | ;; |
||
18434 | esac |
||
18435 | else |
||
18436 | case $host_os in |
||
18437 | aix[4-9]*) |
||
18438 | # All AIX code is PIC. |
||
18439 | if test ia64 = "$host_cpu"; then |
||
18440 | # AIX 5 now supports IA64 processor |
||
18441 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18442 | else |
||
18443 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
||
18444 | fi |
||
18445 | ;; |
||
18446 | chorus*) |
||
18447 | case $cc_basename in |
||
18448 | cxch68*) |
||
18449 | # Green Hills C++ Compiler |
||
18450 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
||
18451 | ;; |
||
18452 | esac |
||
18453 | ;; |
||
18454 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
||
18455 | # This hack is so that the source file can tell whether it is being |
||
18456 | # built for inclusion in a dll (and should export symbols for example). |
||
18457 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
||
18458 | ;; |
||
18459 | dgux*) |
||
18460 | case $cc_basename in |
||
18461 | ec++*) |
||
18462 | lt_prog_compiler_pic_CXX='-KPIC' |
||
18463 | ;; |
||
18464 | ghcx*) |
||
18465 | # Green Hills C++ Compiler |
||
18466 | lt_prog_compiler_pic_CXX='-pic' |
||
18467 | ;; |
||
18468 | *) |
||
18469 | ;; |
||
18470 | esac |
||
18471 | ;; |
||
18472 | freebsd* | dragonfly*) |
||
18473 | # FreeBSD uses GNU C++ |
||
18474 | ;; |
||
18475 | hpux9* | hpux10* | hpux11*) |
||
18476 | case $cc_basename in |
||
18477 | CC*) |
||
18478 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18479 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
||
18480 | if test ia64 != "$host_cpu"; then |
||
18481 | lt_prog_compiler_pic_CXX='+Z' |
||
18482 | fi |
||
18483 | ;; |
||
18484 | aCC*) |
||
18485 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18486 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
||
18487 | case $host_cpu in |
||
18488 | hppa*64*|ia64*) |
||
18489 | # +Z the default |
||
18490 | ;; |
||
18491 | *) |
||
18492 | lt_prog_compiler_pic_CXX='+Z' |
||
18493 | ;; |
||
18494 | esac |
||
18495 | ;; |
||
18496 | *) |
||
18497 | ;; |
||
18498 | esac |
||
18499 | ;; |
||
18500 | interix*) |
||
18501 | # This is c89, which is MS Visual C++ (no shared libs) |
||
18502 | # Anyone wants to do a port? |
||
18503 | ;; |
||
18504 | irix5* | irix6* | nonstopux*) |
||
18505 | case $cc_basename in |
||
18506 | CC*) |
||
18507 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18508 | lt_prog_compiler_static_CXX='-non_shared' |
||
18509 | # CC pic flag -KPIC is the default. |
||
18510 | ;; |
||
18511 | *) |
||
18512 | ;; |
||
18513 | esac |
||
18514 | ;; |
||
18515 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
18516 | case $cc_basename in |
||
18517 | KCC*) |
||
18518 | # KAI C++ Compiler |
||
18519 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
||
18520 | lt_prog_compiler_pic_CXX='-fPIC' |
||
18521 | ;; |
||
18522 | ecpc* ) |
||
18523 | # old Intel C++ for x86_64, which still supported -KPIC. |
||
18524 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18525 | lt_prog_compiler_pic_CXX='-KPIC' |
||
18526 | lt_prog_compiler_static_CXX='-static' |
||
18527 | ;; |
||
18528 | icpc* ) |
||
18529 | # Intel C++, used to be incompatible with GCC. |
||
18530 | # ICC 10 doesn't accept -KPIC any more. |
||
18531 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18532 | lt_prog_compiler_pic_CXX='-fPIC' |
||
18533 | lt_prog_compiler_static_CXX='-static' |
||
18534 | ;; |
||
18535 | pgCC* | pgcpp*) |
||
18536 | # Portland Group C++ compiler |
||
18537 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18538 | lt_prog_compiler_pic_CXX='-fpic' |
||
18539 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18540 | ;; |
||
18541 | cxx*) |
||
18542 | # Compaq C++ |
||
18543 | # Make sure the PIC flag is empty. It appears that all Alpha |
||
18544 | # Linux and Compaq Tru64 Unix objects are PIC. |
||
18545 | lt_prog_compiler_pic_CXX= |
||
18546 | lt_prog_compiler_static_CXX='-non_shared' |
||
18547 | ;; |
||
18548 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
||
18549 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
||
18550 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18551 | lt_prog_compiler_pic_CXX='-qpic' |
||
18552 | lt_prog_compiler_static_CXX='-qstaticlink' |
||
18553 | ;; |
||
18554 | *) |
||
18555 | case `$CC -V 2>&1 | sed 5q` in |
||
18556 | *Sun\ C*) |
||
18557 | # Sun C++ 5.9 |
||
18558 | lt_prog_compiler_pic_CXX='-KPIC' |
||
18559 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18560 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
||
18561 | ;; |
||
18562 | esac |
||
18563 | ;; |
||
18564 | esac |
||
18565 | ;; |
||
18566 | lynxos*) |
||
18567 | ;; |
||
18568 | m88k*) |
||
18569 | ;; |
||
18570 | mvs*) |
||
18571 | case $cc_basename in |
||
18572 | cxx*) |
||
18573 | lt_prog_compiler_pic_CXX='-W c,exportall' |
||
18574 | ;; |
||
18575 | *) |
||
18576 | ;; |
||
18577 | esac |
||
18578 | ;; |
||
18579 | netbsd* | netbsdelf*-gnu) |
||
18580 | ;; |
||
18581 | *qnx* | *nto*) |
||
18582 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
||
18583 | # it will coredump. |
||
18584 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
||
18585 | ;; |
||
18586 | osf3* | osf4* | osf5*) |
||
18587 | case $cc_basename in |
||
18588 | KCC*) |
||
18589 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
||
18590 | ;; |
||
18591 | RCC*) |
||
18592 | # Rational C++ 2.4.1 |
||
18593 | lt_prog_compiler_pic_CXX='-pic' |
||
18594 | ;; |
||
18595 | cxx*) |
||
18596 | # Digital/Compaq C++ |
||
18597 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18598 | # Make sure the PIC flag is empty. It appears that all Alpha |
||
18599 | # Linux and Compaq Tru64 Unix objects are PIC. |
||
18600 | lt_prog_compiler_pic_CXX= |
||
18601 | lt_prog_compiler_static_CXX='-non_shared' |
||
18602 | ;; |
||
18603 | *) |
||
18604 | ;; |
||
18605 | esac |
||
18606 | ;; |
||
18607 | psos*) |
||
18608 | ;; |
||
18609 | solaris*) |
||
18610 | case $cc_basename in |
||
18611 | CC* | sunCC*) |
||
18612 | # Sun C++ 4.2, 5.x and Centerline C++ |
||
18613 | lt_prog_compiler_pic_CXX='-KPIC' |
||
18614 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18615 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
||
18616 | ;; |
||
18617 | gcx*) |
||
18618 | # Green Hills C++ Compiler |
||
18619 | lt_prog_compiler_pic_CXX='-PIC' |
||
18620 | ;; |
||
18621 | *) |
||
18622 | ;; |
||
18623 | esac |
||
18624 | ;; |
||
18625 | sunos4*) |
||
18626 | case $cc_basename in |
||
18627 | CC*) |
||
18628 | # Sun C++ 4.x |
||
18629 | lt_prog_compiler_pic_CXX='-pic' |
||
18630 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18631 | ;; |
||
18632 | lcc*) |
||
18633 | # Lucid |
||
18634 | lt_prog_compiler_pic_CXX='-pic' |
||
18635 | ;; |
||
18636 | *) |
||
18637 | ;; |
||
18638 | esac |
||
18639 | ;; |
||
18640 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
||
18641 | case $cc_basename in |
||
18642 | CC*) |
||
18643 | lt_prog_compiler_wl_CXX='-Wl,' |
||
18644 | lt_prog_compiler_pic_CXX='-KPIC' |
||
18645 | lt_prog_compiler_static_CXX='-Bstatic' |
||
18646 | ;; |
||
18647 | esac |
||
18648 | ;; |
||
18649 | tandem*) |
||
18650 | case $cc_basename in |
||
18651 | NCC*) |
||
18652 | # NonStop-UX NCC 3.20 |
||
18653 | lt_prog_compiler_pic_CXX='-KPIC' |
||
18654 | ;; |
||
18655 | *) |
||
18656 | ;; |
||
18657 | esac |
||
18658 | ;; |
||
18659 | vxworks*) |
||
18660 | ;; |
||
18661 | *) |
||
18662 | lt_prog_compiler_can_build_shared_CXX=no |
||
18663 | ;; |
||
18664 | esac |
||
18665 | fi |
||
18666 | |||
18667 | case $host_os in |
||
18668 | # For platforms that do not support PIC, -DPIC is meaningless: |
||
18669 | *djgpp*) |
||
18670 | lt_prog_compiler_pic_CXX= |
||
18671 | ;; |
||
18672 | *) |
||
18673 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
||
18674 | ;; |
||
18675 | esac |
||
18676 | |||
18677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
||
18678 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
||
18679 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
||
18680 | $as_echo_n "(cached) " >&6 |
||
18681 | else |
||
18682 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
||
18683 | fi |
||
18684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
||
18685 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
||
18686 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
||
18687 | |||
18688 | # |
||
18689 | # Check to make sure the PIC flag actually works. |
||
18690 | # |
||
18691 | if test -n "$lt_prog_compiler_pic_CXX"; then |
||
18692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
||
18693 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
||
18694 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
||
18695 | $as_echo_n "(cached) " >&6 |
||
18696 | else |
||
18697 | lt_cv_prog_compiler_pic_works_CXX=no |
||
18698 | ac_outfile=conftest.$ac_objext |
||
18699 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
18700 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
||
18701 | # Insert the option either (1) after the last *FLAGS variable, or |
||
18702 | # (2) before a word containing "conftest.", or (3) at the end. |
||
18703 | # Note that $ac_compile itself does not contain backslashes and begins |
||
18704 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
18705 | # The option is referenced via a variable to avoid confusing sed. |
||
18706 | lt_compile=`echo "$ac_compile" | $SED \ |
||
18707 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
18708 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
18709 | -e 's:$: $lt_compiler_flag:'` |
||
18710 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
18711 | (eval "$lt_compile" 2>conftest.err) |
||
18712 | ac_status=$? |
||
18713 | cat conftest.err >&5 |
||
18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
18715 | if (exit $ac_status) && test -s "$ac_outfile"; then |
||
18716 | # The compiler can only warn and ignore the option if not recognized |
||
18717 | # So say no if there are warnings other than the usual output. |
||
18718 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
||
18719 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
18720 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
||
18721 | lt_cv_prog_compiler_pic_works_CXX=yes |
||
18722 | fi |
||
18723 | fi |
||
18724 | $RM conftest* |
||
18725 | |||
18726 | fi |
||
18727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
||
18728 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
||
18729 | |||
18730 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
||
18731 | case $lt_prog_compiler_pic_CXX in |
||
18732 | "" | " "*) ;; |
||
18733 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
||
18734 | esac |
||
18735 | else |
||
18736 | lt_prog_compiler_pic_CXX= |
||
18737 | lt_prog_compiler_can_build_shared_CXX=no |
||
18738 | fi |
||
18739 | |||
18740 | fi |
||
18741 | |||
18742 | |||
18743 | |||
18744 | |||
18745 | |||
18746 | # |
||
18747 | # Check to make sure the static flag actually works. |
||
18748 | # |
||
18749 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
||
18750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
||
18751 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
||
18752 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
||
18753 | $as_echo_n "(cached) " >&6 |
||
18754 | else |
||
18755 | lt_cv_prog_compiler_static_works_CXX=no |
||
18756 | save_LDFLAGS=$LDFLAGS |
||
18757 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
||
18758 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
||
18759 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
||
18760 | # The linker can only warn and ignore the option if not recognized |
||
18761 | # So say no if there are warnings |
||
18762 | if test -s conftest.err; then |
||
18763 | # Append any errors to the config.log. |
||
18764 | cat conftest.err 1>&5 |
||
18765 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
||
18766 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
||
18767 | if diff conftest.exp conftest.er2 >/dev/null; then |
||
18768 | lt_cv_prog_compiler_static_works_CXX=yes |
||
18769 | fi |
||
18770 | else |
||
18771 | lt_cv_prog_compiler_static_works_CXX=yes |
||
18772 | fi |
||
18773 | fi |
||
18774 | $RM -r conftest* |
||
18775 | LDFLAGS=$save_LDFLAGS |
||
18776 | |||
18777 | fi |
||
18778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
||
18779 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
||
18780 | |||
18781 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
||
18782 | : |
||
18783 | else |
||
18784 | lt_prog_compiler_static_CXX= |
||
18785 | fi |
||
18786 | |||
18787 | |||
18788 | |||
18789 | |||
18790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
18791 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
18792 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
||
18793 | $as_echo_n "(cached) " >&6 |
||
18794 | else |
||
18795 | lt_cv_prog_compiler_c_o_CXX=no |
||
18796 | $RM -r conftest 2>/dev/null |
||
18797 | mkdir conftest |
||
18798 | cd conftest |
||
18799 | mkdir out |
||
18800 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
18801 | |||
18802 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
18803 | # Insert the option either (1) after the last *FLAGS variable, or |
||
18804 | # (2) before a word containing "conftest.", or (3) at the end. |
||
18805 | # Note that $ac_compile itself does not contain backslashes and begins |
||
18806 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
18807 | lt_compile=`echo "$ac_compile" | $SED \ |
||
18808 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
18809 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
18810 | -e 's:$: $lt_compiler_flag:'` |
||
18811 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
18812 | (eval "$lt_compile" 2>out/conftest.err) |
||
18813 | ac_status=$? |
||
18814 | cat out/conftest.err >&5 |
||
18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
18816 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
18817 | then |
||
18818 | # The compiler can only warn and ignore the option if not recognized |
||
18819 | # So say no if there are warnings |
||
18820 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
18821 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
18822 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
18823 | lt_cv_prog_compiler_c_o_CXX=yes |
||
18824 | fi |
||
18825 | fi |
||
18826 | chmod u+w . 2>&5 |
||
18827 | $RM conftest* |
||
18828 | # SGI C++ compiler will create directory out/ii_files/ for |
||
18829 | # template instantiation |
||
18830 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
18831 | $RM out/* && rmdir out |
||
18832 | cd .. |
||
18833 | $RM -r conftest |
||
18834 | $RM conftest* |
||
18835 | |||
18836 | fi |
||
18837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
||
18838 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
||
18839 | |||
18840 | |||
18841 | |||
18842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
||
18843 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
||
18844 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
||
18845 | $as_echo_n "(cached) " >&6 |
||
18846 | else |
||
18847 | lt_cv_prog_compiler_c_o_CXX=no |
||
18848 | $RM -r conftest 2>/dev/null |
||
18849 | mkdir conftest |
||
18850 | cd conftest |
||
18851 | mkdir out |
||
18852 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
18853 | |||
18854 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
||
18855 | # Insert the option either (1) after the last *FLAGS variable, or |
||
18856 | # (2) before a word containing "conftest.", or (3) at the end. |
||
18857 | # Note that $ac_compile itself does not contain backslashes and begins |
||
18858 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
||
18859 | lt_compile=`echo "$ac_compile" | $SED \ |
||
18860 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
||
18861 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
||
18862 | -e 's:$: $lt_compiler_flag:'` |
||
18863 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
||
18864 | (eval "$lt_compile" 2>out/conftest.err) |
||
18865 | ac_status=$? |
||
18866 | cat out/conftest.err >&5 |
||
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
18868 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
||
18869 | then |
||
18870 | # The compiler can only warn and ignore the option if not recognized |
||
18871 | # So say no if there are warnings |
||
18872 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
||
18873 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
||
18874 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
||
18875 | lt_cv_prog_compiler_c_o_CXX=yes |
||
18876 | fi |
||
18877 | fi |
||
18878 | chmod u+w . 2>&5 |
||
18879 | $RM conftest* |
||
18880 | # SGI C++ compiler will create directory out/ii_files/ for |
||
18881 | # template instantiation |
||
18882 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
||
18883 | $RM out/* && rmdir out |
||
18884 | cd .. |
||
18885 | $RM -r conftest |
||
18886 | $RM conftest* |
||
18887 | |||
18888 | fi |
||
18889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
||
18890 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
||
18891 | |||
18892 | |||
18893 | |||
18894 | |||
18895 | hard_links=nottested |
||
18896 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then |
||
18897 | # do not overwrite the value of need_locks provided by the user |
||
18898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
||
18899 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
||
18900 | hard_links=yes |
||
18901 | $RM conftest* |
||
18902 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
18903 | touch conftest.a |
||
18904 | ln conftest.a conftest.b 2>&5 || hard_links=no |
||
18905 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
||
18906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
||
18907 | $as_echo "$hard_links" >&6; } |
||
18908 | if test no = "$hard_links"; then |
||
18909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
||
18910 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
||
18911 | need_locks=warn |
||
18912 | fi |
||
18913 | else |
||
18914 | need_locks=no |
||
18915 | fi |
||
18916 | |||
18917 | |||
18918 | |||
18919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
||
18920 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
||
18921 | |||
18922 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
18923 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
||
18924 | case $host_os in |
||
18925 | aix[4-9]*) |
||
18926 | # If we're using GNU nm, then we don't want the "-C" option. |
||
18927 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
||
18928 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
||
18929 | # weak defined symbols like other global defined symbols, whereas |
||
18930 | # GNU nm marks them as "W". |
||
18931 | # While the 'weak' keyword is ignored in the Export File, we need |
||
18932 | # it in the Import File for the 'aix-soname' feature, so we have |
||
18933 | # to replace the "-B" option with "-P" for AIX nm. |
||
18934 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
||
18935 | export_symbols_cmds_CXX='$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' |
||
18936 | else |
||
18937 | export_symbols_cmds_CXX='`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' |
||
18938 | fi |
||
18939 | ;; |
||
18940 | pw32*) |
||
18941 | export_symbols_cmds_CXX=$ltdll_cmds |
||
18942 | ;; |
||
18943 | cygwin* | mingw* | cegcc*) |
||
18944 | case $cc_basename in |
||
18945 | cl*) |
||
18946 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
||
18947 | ;; |
||
18948 | *) |
||
18949 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
||
18950 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
||
18951 | ;; |
||
18952 | esac |
||
18953 | ;; |
||
18954 | linux* | k*bsd*-gnu | gnu*) |
||
18955 | link_all_deplibs_CXX=no |
||
18956 | ;; |
||
18957 | *) |
||
18958 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
||
18959 | ;; |
||
18960 | esac |
||
18961 | |||
18962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
||
18963 | $as_echo "$ld_shlibs_CXX" >&6; } |
||
18964 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
||
18965 | |||
18966 | with_gnu_ld_CXX=$with_gnu_ld |
||
18967 | |||
18968 | |||
18969 | |||
18970 | |||
18971 | |||
18972 | |||
18973 | # |
||
18974 | # Do we need to explicitly link libc? |
||
18975 | # |
||
18976 | case "x$archive_cmds_need_lc_CXX" in |
||
18977 | x|xyes) |
||
18978 | # Assume -lc should be added |
||
18979 | archive_cmds_need_lc_CXX=yes |
||
18980 | |||
18981 | if test yes,yes = "$GCC,$enable_shared"; then |
||
18982 | case $archive_cmds_CXX in |
||
18983 | *'~'*) |
||
18984 | # FIXME: we may have to deal with multi-command sequences. |
||
18985 | ;; |
||
18986 | '$CC '*) |
||
18987 | # Test whether the compiler implicitly links with -lc since on some |
||
18988 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
||
18989 | # to ld, don't add -lc before -lgcc. |
||
18990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
||
18991 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
||
18992 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
||
18993 | $as_echo_n "(cached) " >&6 |
||
18994 | else |
||
18995 | $RM conftest* |
||
18996 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
||
18997 | |||
18998 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
18999 | (eval $ac_compile) 2>&5 |
||
19000 | ac_status=$? |
||
19001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
19002 | test $ac_status = 0; } 2>conftest.err; then |
||
19003 | soname=conftest |
||
19004 | lib=conftest |
||
19005 | libobjs=conftest.$ac_objext |
||
19006 | deplibs= |
||
19007 | wl=$lt_prog_compiler_wl_CXX |
||
19008 | pic_flag=$lt_prog_compiler_pic_CXX |
||
19009 | compiler_flags=-v |
||
19010 | linker_flags=-v |
||
19011 | verstring= |
||
19012 | output_objdir=. |
||
19013 | libname=conftest |
||
19014 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
||
19015 | allow_undefined_flag_CXX= |
||
19016 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
||
19017 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
||
19018 | ac_status=$? |
||
19019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
19020 | test $ac_status = 0; } |
||
19021 | then |
||
19022 | lt_cv_archive_cmds_need_lc_CXX=no |
||
19023 | else |
||
19024 | lt_cv_archive_cmds_need_lc_CXX=yes |
||
19025 | fi |
||
19026 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
||
19027 | else |
||
19028 | cat conftest.err 1>&5 |
||
19029 | fi |
||
19030 | $RM conftest* |
||
19031 | |||
19032 | fi |
||
19033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
||
19034 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
||
19035 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
||
19036 | ;; |
||
19037 | esac |
||
19038 | fi |
||
19039 | ;; |
||
19040 | esac |
||
19041 | |||
19042 | |||
19043 | |||
19044 | |||
19045 | |||
19046 | |||
19047 | |||
19048 | |||
19049 | |||
19050 | |||
19051 | |||
19052 | |||
19053 | |||
19054 | |||
19055 | |||
19056 | |||
19057 | |||
19058 | |||
19059 | |||
19060 | |||
19061 | |||
19062 | |||
19063 | |||
19064 | |||
19065 | |||
19066 | |||
19067 | |||
19068 | |||
19069 | |||
19070 | |||
19071 | |||
19072 | |||
19073 | |||
19074 | |||
19075 | |||
19076 | |||
19077 | |||
19078 | |||
19079 | |||
19080 | |||
19081 | |||
19082 | |||
19083 | |||
19084 | |||
19085 | |||
19086 | |||
19087 | |||
19088 | |||
19089 | |||
19090 | |||
19091 | |||
19092 | |||
19093 | |||
19094 | |||
19095 | |||
19096 | |||
19097 | |||
19098 | |||
19099 | |||
19100 | |||
19101 | |||
19102 | |||
19103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
||
19104 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
||
19105 | |||
19106 | library_names_spec= |
||
19107 | libname_spec='lib$name' |
||
19108 | soname_spec= |
||
19109 | shrext_cmds=.so |
||
19110 | postinstall_cmds= |
||
19111 | postuninstall_cmds= |
||
19112 | finish_cmds= |
||
19113 | finish_eval= |
||
19114 | shlibpath_var= |
||
19115 | shlibpath_overrides_runpath=unknown |
||
19116 | version_type=none |
||
19117 | dynamic_linker="$host_os ld.so" |
||
19118 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
||
19119 | need_lib_prefix=unknown |
||
19120 | hardcode_into_libs=no |
||
19121 | |||
19122 | # when you set need_version to no, make sure it does not cause -set_version |
||
19123 | # flags to be left without arguments |
||
19124 | need_version=unknown |
||
19125 | |||
19126 | |||
19127 | |||
19128 | case $host_os in |
||
19129 | aix3*) |
||
19130 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19131 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
||
19132 | shlibpath_var=LIBPATH |
||
19133 | |||
19134 | # AIX 3 has no versioning support, so we append a major version to the name. |
||
19135 | soname_spec='$libname$release$shared_ext$major' |
||
19136 | ;; |
||
19137 | |||
19138 | aix[4-9]*) |
||
19139 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19140 | need_lib_prefix=no |
||
19141 | need_version=no |
||
19142 | hardcode_into_libs=yes |
||
19143 | if test ia64 = "$host_cpu"; then |
||
19144 | # AIX 5 supports IA64 |
||
19145 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
||
19146 | shlibpath_var=LD_LIBRARY_PATH |
||
19147 | else |
||
19148 | # With GCC up to 2.95.x, collect2 would create an import file |
||
19149 | # for dependence libraries. The import file would start with |
||
19150 | # the line '#! .'. This would cause the generated library to |
||
19151 | # depend on '.', always an invalid library. This was fixed in |
||
19152 | # development snapshots of GCC prior to 3.0. |
||
19153 | case $host_os in |
||
19154 | aix4 | aix4.[01] | aix4.[01].*) |
||
19155 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
||
19156 | echo ' yes ' |
||
19157 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
||
19158 | : |
||
19159 | else |
||
19160 | can_build_shared=no |
||
19161 | fi |
||
19162 | ;; |
||
19163 | esac |
||
19164 | # Using Import Files as archive members, it is possible to support |
||
19165 | # filename-based versioning of shared library archives on AIX. While |
||
19166 | # this would work for both with and without runtime linking, it will |
||
19167 | # prevent static linking of such archives. So we do filename-based |
||
19168 | # shared library versioning with .so extension only, which is used |
||
19169 | # when both runtime linking and shared linking is enabled. |
||
19170 | # Unfortunately, runtime linking may impact performance, so we do |
||
19171 | # not want this to be the default eventually. Also, we use the |
||
19172 | # versioned .so libs for executables only if there is the -brtl |
||
19173 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
||
19174 | # To allow for filename-based versioning support, we need to create |
||
19175 | # libNAME.so.V as an archive file, containing: |
||
19176 | # *) an Import File, referring to the versioned filename of the |
||
19177 | # archive as well as the shared archive member, telling the |
||
19178 | # bitwidth (32 or 64) of that shared object, and providing the |
||
19179 | # list of exported symbols of that shared object, eventually |
||
19180 | # decorated with the 'weak' keyword |
||
19181 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
||
19182 | # it being seen by the linker. |
||
19183 | # At run time we better use the real file rather than another symlink, |
||
19184 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
||
19185 | |||
19186 | case $with_aix_soname,$aix_use_runtimelinking in |
||
19187 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
||
19188 | # soname into executable. Probably we can add versioning support to |
||
19189 | # collect2, so additional links can be useful in future. |
||
19190 | aix,yes) # traditional libtool |
||
19191 | dynamic_linker='AIX unversionable lib.so' |
||
19192 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
||
19193 | # instead of lib<name>.a to let people know that these are not |
||
19194 | # typical AIX shared libraries. |
||
19195 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19196 | ;; |
||
19197 | aix,no) # traditional AIX only |
||
19198 | dynamic_linker='AIX lib.a(lib.so.V)' |
||
19199 | # We preserve .a as extension for shared libraries through AIX4.2 |
||
19200 | # and later when we are not doing run time linking. |
||
19201 | library_names_spec='$libname$release.a $libname.a' |
||
19202 | soname_spec='$libname$release$shared_ext$major' |
||
19203 | ;; |
||
19204 | svr4,*) # full svr4 only |
||
19205 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
||
19206 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
19207 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
19208 | shlibpath_overrides_runpath=yes |
||
19209 | ;; |
||
19210 | *,yes) # both, prefer svr4 |
||
19211 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
||
19212 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
||
19213 | # unpreferred sharedlib libNAME.a needs extra handling |
||
19214 | 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"' |
||
19215 | 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"' |
||
19216 | # We do not specify a path in Import Files, so LIBPATH fires. |
||
19217 | shlibpath_overrides_runpath=yes |
||
19218 | ;; |
||
19219 | *,no) # both, prefer aix |
||
19220 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
||
19221 | library_names_spec='$libname$release.a $libname.a' |
||
19222 | soname_spec='$libname$release$shared_ext$major' |
||
19223 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
||
19224 | 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)' |
||
19225 | 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"' |
||
19226 | ;; |
||
19227 | esac |
||
19228 | shlibpath_var=LIBPATH |
||
19229 | fi |
||
19230 | ;; |
||
19231 | |||
19232 | amigaos*) |
||
19233 | case $host_cpu in |
||
19234 | powerpc) |
||
19235 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
||
19236 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
||
19237 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19238 | ;; |
||
19239 | m68k) |
||
19240 | library_names_spec='$libname.ixlibrary $libname.a' |
||
19241 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
||
19242 | 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' |
||
19243 | ;; |
||
19244 | esac |
||
19245 | ;; |
||
19246 | |||
19247 | beos*) |
||
19248 | library_names_spec='$libname$shared_ext' |
||
19249 | dynamic_linker="$host_os ld.so" |
||
19250 | shlibpath_var=LIBRARY_PATH |
||
19251 | ;; |
||
19252 | |||
19253 | bsdi[45]*) |
||
19254 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19255 | need_version=no |
||
19256 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19257 | soname_spec='$libname$release$shared_ext$major' |
||
19258 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
||
19259 | shlibpath_var=LD_LIBRARY_PATH |
||
19260 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
||
19261 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
||
19262 | # the default ld.so.conf also contains /usr/contrib/lib and |
||
19263 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
||
19264 | # libtool to hard-code these into programs |
||
19265 | ;; |
||
19266 | |||
19267 | cygwin* | mingw* | pw32* | cegcc*) |
||
19268 | version_type=windows |
||
19269 | shrext_cmds=.dll |
||
19270 | need_version=no |
||
19271 | need_lib_prefix=no |
||
19272 | |||
19273 | case $GCC,$cc_basename in |
||
19274 | yes,*) |
||
19275 | # gcc |
||
19276 | library_names_spec='$libname.dll.a' |
||
19277 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
19278 | postinstall_cmds='base_file=`basename \$file`~ |
||
19279 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
19280 | dldir=$destdir/`dirname \$dlpath`~ |
||
19281 | test -d \$dldir || mkdir -p \$dldir~ |
||
19282 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
19283 | chmod a+x \$dldir/$dlname~ |
||
19284 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
19285 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
19286 | fi' |
||
19287 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
19288 | dlpath=$dir/\$dldll~ |
||
19289 | $RM \$dlpath' |
||
19290 | shlibpath_overrides_runpath=yes |
||
19291 | |||
19292 | case $host_os in |
||
19293 | cygwin*) |
||
19294 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
||
19295 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
19296 | |||
19297 | ;; |
||
19298 | mingw* | cegcc*) |
||
19299 | # MinGW DLLs use traditional 'lib' prefix |
||
19300 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
19301 | ;; |
||
19302 | pw32*) |
||
19303 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
||
19304 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
19305 | ;; |
||
19306 | esac |
||
19307 | dynamic_linker='Win32 ld.exe' |
||
19308 | ;; |
||
19309 | |||
19310 | *,cl*) |
||
19311 | # Native MSVC |
||
19312 | libname_spec='$name' |
||
19313 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
||
19314 | library_names_spec='$libname.dll.lib' |
||
19315 | |||
19316 | case $build_os in |
||
19317 | mingw*) |
||
19318 | sys_lib_search_path_spec= |
||
19319 | lt_save_ifs=$IFS |
||
19320 | IFS=';' |
||
19321 | for lt_path in $LIB |
||
19322 | do |
||
19323 | IFS=$lt_save_ifs |
||
19324 | # Let DOS variable expansion print the short 8.3 style file name. |
||
19325 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
||
19326 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
||
19327 | done |
||
19328 | IFS=$lt_save_ifs |
||
19329 | # Convert to MSYS style. |
||
19330 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
||
19331 | ;; |
||
19332 | cygwin*) |
||
19333 | # Convert to unix form, then to dos form, then back to unix form |
||
19334 | # but this time dos style (no spaces!) so that the unix form looks |
||
19335 | # like /cygdrive/c/PROGRA~1:/cygdr... |
||
19336 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
||
19337 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
||
19338 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
19339 | ;; |
||
19340 | *) |
||
19341 | sys_lib_search_path_spec=$LIB |
||
19342 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
||
19343 | # It is most probably a Windows format PATH. |
||
19344 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
||
19345 | else |
||
19346 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
||
19347 | fi |
||
19348 | # FIXME: find the short name or the path components, as spaces are |
||
19349 | # common. (e.g. "Program Files" -> "PROGRA~1") |
||
19350 | ;; |
||
19351 | esac |
||
19352 | |||
19353 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
||
19354 | postinstall_cmds='base_file=`basename \$file`~ |
||
19355 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
||
19356 | dldir=$destdir/`dirname \$dlpath`~ |
||
19357 | test -d \$dldir || mkdir -p \$dldir~ |
||
19358 | $install_prog $dir/$dlname \$dldir/$dlname' |
||
19359 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
||
19360 | dlpath=$dir/\$dldll~ |
||
19361 | $RM \$dlpath' |
||
19362 | shlibpath_overrides_runpath=yes |
||
19363 | dynamic_linker='Win32 link.exe' |
||
19364 | ;; |
||
19365 | |||
19366 | *) |
||
19367 | # Assume MSVC wrapper |
||
19368 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
||
19369 | dynamic_linker='Win32 ld.exe' |
||
19370 | ;; |
||
19371 | esac |
||
19372 | # FIXME: first we should search . and the directory the executable is in |
||
19373 | shlibpath_var=PATH |
||
19374 | ;; |
||
19375 | |||
19376 | darwin* | rhapsody*) |
||
19377 | dynamic_linker="$host_os dyld" |
||
19378 | version_type=darwin |
||
19379 | need_lib_prefix=no |
||
19380 | need_version=no |
||
19381 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
||
19382 | soname_spec='$libname$release$major$shared_ext' |
||
19383 | shlibpath_overrides_runpath=yes |
||
19384 | shlibpath_var=DYLD_LIBRARY_PATH |
||
19385 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
||
19386 | |||
19387 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
||
19388 | ;; |
||
19389 | |||
19390 | dgux*) |
||
19391 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19392 | need_lib_prefix=no |
||
19393 | need_version=no |
||
19394 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19395 | soname_spec='$libname$release$shared_ext$major' |
||
19396 | shlibpath_var=LD_LIBRARY_PATH |
||
19397 | ;; |
||
19398 | |||
19399 | freebsd* | dragonfly*) |
||
19400 | # DragonFly does not have aout. When/if they implement a new |
||
19401 | # versioning mechanism, adjust this. |
||
19402 | if test -x /usr/bin/objformat; then |
||
19403 | objformat=`/usr/bin/objformat` |
||
19404 | else |
||
19405 | case $host_os in |
||
19406 | freebsd[23].*) objformat=aout ;; |
||
19407 | *) objformat=elf ;; |
||
19408 | esac |
||
19409 | fi |
||
19410 | version_type=freebsd-$objformat |
||
19411 | case $version_type in |
||
19412 | freebsd-elf*) |
||
19413 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19414 | soname_spec='$libname$release$shared_ext$major' |
||
19415 | need_version=no |
||
19416 | need_lib_prefix=no |
||
19417 | ;; |
||
19418 | freebsd-*) |
||
19419 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
19420 | need_version=yes |
||
19421 | ;; |
||
19422 | esac |
||
19423 | shlibpath_var=LD_LIBRARY_PATH |
||
19424 | case $host_os in |
||
19425 | freebsd2.*) |
||
19426 | shlibpath_overrides_runpath=yes |
||
19427 | ;; |
||
19428 | freebsd3.[01]* | freebsdelf3.[01]*) |
||
19429 | shlibpath_overrides_runpath=yes |
||
19430 | hardcode_into_libs=yes |
||
19431 | ;; |
||
19432 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
||
19433 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
||
19434 | shlibpath_overrides_runpath=no |
||
19435 | hardcode_into_libs=yes |
||
19436 | ;; |
||
19437 | *) # from 4.6 on, and DragonFly |
||
19438 | shlibpath_overrides_runpath=yes |
||
19439 | hardcode_into_libs=yes |
||
19440 | ;; |
||
19441 | esac |
||
19442 | ;; |
||
19443 | |||
19444 | haiku*) |
||
19445 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19446 | need_lib_prefix=no |
||
19447 | need_version=no |
||
19448 | dynamic_linker="$host_os runtime_loader" |
||
19449 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19450 | soname_spec='$libname$release$shared_ext$major' |
||
19451 | shlibpath_var=LIBRARY_PATH |
||
19452 | shlibpath_overrides_runpath=no |
||
19453 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
||
19454 | hardcode_into_libs=yes |
||
19455 | ;; |
||
19456 | |||
19457 | hpux9* | hpux10* | hpux11*) |
||
19458 | # Give a soname corresponding to the major version so that dld.sl refuses to |
||
19459 | # link against other versions. |
||
19460 | version_type=sunos |
||
19461 | need_lib_prefix=no |
||
19462 | need_version=no |
||
19463 | case $host_cpu in |
||
19464 | ia64*) |
||
19465 | shrext_cmds='.so' |
||
19466 | hardcode_into_libs=yes |
||
19467 | dynamic_linker="$host_os dld.so" |
||
19468 | shlibpath_var=LD_LIBRARY_PATH |
||
19469 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
19470 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19471 | soname_spec='$libname$release$shared_ext$major' |
||
19472 | if test 32 = "$HPUX_IA64_MODE"; then |
||
19473 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
||
19474 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
||
19475 | else |
||
19476 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
||
19477 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
||
19478 | fi |
||
19479 | ;; |
||
19480 | hppa*64*) |
||
19481 | shrext_cmds='.sl' |
||
19482 | hardcode_into_libs=yes |
||
19483 | dynamic_linker="$host_os dld.sl" |
||
19484 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
||
19485 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
||
19486 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19487 | soname_spec='$libname$release$shared_ext$major' |
||
19488 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
||
19489 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
19490 | ;; |
||
19491 | *) |
||
19492 | shrext_cmds='.sl' |
||
19493 | dynamic_linker="$host_os dld.sl" |
||
19494 | shlibpath_var=SHLIB_PATH |
||
19495 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
||
19496 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19497 | soname_spec='$libname$release$shared_ext$major' |
||
19498 | ;; |
||
19499 | esac |
||
19500 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
||
19501 | postinstall_cmds='chmod 555 $lib' |
||
19502 | # or fails outright, so override atomically: |
||
19503 | install_override_mode=555 |
||
19504 | ;; |
||
19505 | |||
19506 | interix[3-9]*) |
||
19507 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19508 | need_lib_prefix=no |
||
19509 | need_version=no |
||
19510 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19511 | soname_spec='$libname$release$shared_ext$major' |
||
19512 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
||
19513 | shlibpath_var=LD_LIBRARY_PATH |
||
19514 | shlibpath_overrides_runpath=no |
||
19515 | hardcode_into_libs=yes |
||
19516 | ;; |
||
19517 | |||
19518 | irix5* | irix6* | nonstopux*) |
||
19519 | case $host_os in |
||
19520 | nonstopux*) version_type=nonstopux ;; |
||
19521 | *) |
||
19522 | if test yes = "$lt_cv_prog_gnu_ld"; then |
||
19523 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19524 | else |
||
19525 | version_type=irix |
||
19526 | fi ;; |
||
19527 | esac |
||
19528 | need_lib_prefix=no |
||
19529 | need_version=no |
||
19530 | soname_spec='$libname$release$shared_ext$major' |
||
19531 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
||
19532 | case $host_os in |
||
19533 | irix5* | nonstopux*) |
||
19534 | libsuff= shlibsuff= |
||
19535 | ;; |
||
19536 | *) |
||
19537 | case $LD in # libtool.m4 will add one of these switches to LD |
||
19538 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
||
19539 | libsuff= shlibsuff= libmagic=32-bit;; |
||
19540 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
||
19541 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
||
19542 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
||
19543 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
||
19544 | *) libsuff= shlibsuff= libmagic=never-match;; |
||
19545 | esac |
||
19546 | ;; |
||
19547 | esac |
||
19548 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
||
19549 | shlibpath_overrides_runpath=no |
||
19550 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
||
19551 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
||
19552 | hardcode_into_libs=yes |
||
19553 | ;; |
||
19554 | |||
19555 | # No shared lib support for Linux oldld, aout, or coff. |
||
19556 | linux*oldld* | linux*aout* | linux*coff*) |
||
19557 | dynamic_linker=no |
||
19558 | ;; |
||
19559 | |||
19560 | linux*android*) |
||
19561 | version_type=none # Android doesn't support versioned libraries. |
||
19562 | need_lib_prefix=no |
||
19563 | need_version=no |
||
19564 | library_names_spec='$libname$release$shared_ext' |
||
19565 | soname_spec='$libname$release$shared_ext' |
||
19566 | finish_cmds= |
||
19567 | shlibpath_var=LD_LIBRARY_PATH |
||
19568 | shlibpath_overrides_runpath=yes |
||
19569 | |||
19570 | # This implies no fast_install, which is unacceptable. |
||
19571 | # Some rework will be needed to allow for fast_install |
||
19572 | # before this can be enabled. |
||
19573 | hardcode_into_libs=yes |
||
19574 | |||
19575 | dynamic_linker='Android linker' |
||
19576 | # Don't embed -rpath directories since the linker doesn't support them. |
||
19577 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
||
19578 | ;; |
||
19579 | |||
19580 | # This must be glibc/ELF. |
||
19581 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
||
19582 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19583 | need_lib_prefix=no |
||
19584 | need_version=no |
||
19585 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19586 | soname_spec='$libname$release$shared_ext$major' |
||
19587 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
||
19588 | shlibpath_var=LD_LIBRARY_PATH |
||
19589 | shlibpath_overrides_runpath=no |
||
19590 | |||
19591 | # Some binutils ld are patched to set DT_RUNPATH |
||
19592 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
||
19593 | $as_echo_n "(cached) " >&6 |
||
19594 | else |
||
19595 | lt_cv_shlibpath_overrides_runpath=no |
||
19596 | save_LDFLAGS=$LDFLAGS |
||
19597 | save_libdir=$libdir |
||
19598 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
||
19599 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
||
19600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
19601 | /* end confdefs.h. */ |
||
19602 | |||
19603 | int |
||
19604 | main () |
||
19605 | { |
||
19606 | |||
19607 | ; |
||
19608 | return 0; |
||
19609 | } |
||
19610 | _ACEOF |
||
19611 | if ac_fn_cxx_try_link "$LINENO"; then : |
||
19612 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
||
19613 | lt_cv_shlibpath_overrides_runpath=yes |
||
19614 | fi |
||
19615 | fi |
||
19616 | rm -f core conftest.err conftest.$ac_objext \ |
||
19617 | conftest$ac_exeext conftest.$ac_ext |
||
19618 | LDFLAGS=$save_LDFLAGS |
||
19619 | libdir=$save_libdir |
||
19620 | |||
19621 | fi |
||
19622 | |||
19623 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
||
19624 | |||
19625 | # This implies no fast_install, which is unacceptable. |
||
19626 | # Some rework will be needed to allow for fast_install |
||
19627 | # before this can be enabled. |
||
19628 | hardcode_into_libs=yes |
||
19629 | |||
19630 | # Ideally, we could use ldconfig to report *all* directores which are |
||
19631 | # searched for libraries, however this is still not possible. Aside from not |
||
19632 | # being certain /sbin/ldconfig is available, command |
||
19633 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
||
19634 | # even though it is searched at run-time. Try to do the best guess by |
||
19635 | # appending ld.so.conf contents (and includes) to the search path. |
||
19636 | if test -f /etc/ld.so.conf; then |
||
19637 | 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' ' '` |
||
19638 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
||
19639 | fi |
||
19640 | |||
19641 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
||
19642 | # powerpc, because MkLinux only supported shared libraries with the |
||
19643 | # GNU dynamic linker. Since this was broken with cross compilers, |
||
19644 | # most powerpc-linux boxes support dynamic linking these days and |
||
19645 | # people can always --disable-shared, the test was removed, and we |
||
19646 | # assume the GNU/Linux dynamic linker is in use. |
||
19647 | dynamic_linker='GNU/Linux ld.so' |
||
19648 | ;; |
||
19649 | |||
19650 | netbsdelf*-gnu) |
||
19651 | version_type=linux |
||
19652 | need_lib_prefix=no |
||
19653 | need_version=no |
||
19654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
||
19655 | soname_spec='${libname}${release}${shared_ext}$major' |
||
19656 | shlibpath_var=LD_LIBRARY_PATH |
||
19657 | shlibpath_overrides_runpath=no |
||
19658 | hardcode_into_libs=yes |
||
19659 | dynamic_linker='NetBSD ld.elf_so' |
||
19660 | ;; |
||
19661 | |||
19662 | netbsd*) |
||
19663 | version_type=sunos |
||
19664 | need_lib_prefix=no |
||
19665 | need_version=no |
||
19666 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
||
19667 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
19668 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
19669 | dynamic_linker='NetBSD (a.out) ld.so' |
||
19670 | else |
||
19671 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19672 | soname_spec='$libname$release$shared_ext$major' |
||
19673 | dynamic_linker='NetBSD ld.elf_so' |
||
19674 | fi |
||
19675 | shlibpath_var=LD_LIBRARY_PATH |
||
19676 | shlibpath_overrides_runpath=yes |
||
19677 | hardcode_into_libs=yes |
||
19678 | ;; |
||
19679 | |||
19680 | newsos6) |
||
19681 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19682 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19683 | shlibpath_var=LD_LIBRARY_PATH |
||
19684 | shlibpath_overrides_runpath=yes |
||
19685 | ;; |
||
19686 | |||
19687 | *nto* | *qnx*) |
||
19688 | version_type=qnx |
||
19689 | need_lib_prefix=no |
||
19690 | need_version=no |
||
19691 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19692 | soname_spec='$libname$release$shared_ext$major' |
||
19693 | shlibpath_var=LD_LIBRARY_PATH |
||
19694 | shlibpath_overrides_runpath=no |
||
19695 | hardcode_into_libs=yes |
||
19696 | dynamic_linker='ldqnx.so' |
||
19697 | ;; |
||
19698 | |||
19699 | openbsd* | bitrig*) |
||
19700 | version_type=sunos |
||
19701 | sys_lib_dlsearch_path_spec=/usr/lib |
||
19702 | need_lib_prefix=no |
||
19703 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
||
19704 | need_version=no |
||
19705 | else |
||
19706 | need_version=yes |
||
19707 | fi |
||
19708 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
19709 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
||
19710 | shlibpath_var=LD_LIBRARY_PATH |
||
19711 | shlibpath_overrides_runpath=yes |
||
19712 | ;; |
||
19713 | |||
19714 | os2*) |
||
19715 | libname_spec='$name' |
||
19716 | version_type=windows |
||
19717 | shrext_cmds=.dll |
||
19718 | need_version=no |
||
19719 | need_lib_prefix=no |
||
19720 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
||
19721 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
||
19722 | v=$($ECHO $release$versuffix | tr -d .-); |
||
19723 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
||
19724 | $ECHO $n$v`$shared_ext' |
||
19725 | library_names_spec='${libname}_dll.$libext' |
||
19726 | dynamic_linker='OS/2 ld.exe' |
||
19727 | shlibpath_var=BEGINLIBPATH |
||
19728 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
||
19729 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
19730 | postinstall_cmds='base_file=`basename \$file`~ |
||
19731 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
||
19732 | dldir=$destdir/`dirname \$dlpath`~ |
||
19733 | test -d \$dldir || mkdir -p \$dldir~ |
||
19734 | $install_prog $dir/$dlname \$dldir/$dlname~ |
||
19735 | chmod a+x \$dldir/$dlname~ |
||
19736 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
||
19737 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
||
19738 | fi' |
||
19739 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
||
19740 | dlpath=$dir/\$dldll~ |
||
19741 | $RM \$dlpath' |
||
19742 | ;; |
||
19743 | |||
19744 | osf3* | osf4* | osf5*) |
||
19745 | version_type=osf |
||
19746 | need_lib_prefix=no |
||
19747 | need_version=no |
||
19748 | soname_spec='$libname$release$shared_ext$major' |
||
19749 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19750 | shlibpath_var=LD_LIBRARY_PATH |
||
19751 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
||
19752 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
||
19753 | ;; |
||
19754 | |||
19755 | rdos*) |
||
19756 | dynamic_linker=no |
||
19757 | ;; |
||
19758 | |||
19759 | solaris*) |
||
19760 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19761 | need_lib_prefix=no |
||
19762 | need_version=no |
||
19763 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19764 | soname_spec='$libname$release$shared_ext$major' |
||
19765 | shlibpath_var=LD_LIBRARY_PATH |
||
19766 | shlibpath_overrides_runpath=yes |
||
19767 | hardcode_into_libs=yes |
||
19768 | # ldd complains unless libraries are executable |
||
19769 | postinstall_cmds='chmod +x $lib' |
||
19770 | ;; |
||
19771 | |||
19772 | sunos4*) |
||
19773 | version_type=sunos |
||
19774 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
||
19775 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
||
19776 | shlibpath_var=LD_LIBRARY_PATH |
||
19777 | shlibpath_overrides_runpath=yes |
||
19778 | if test yes = "$with_gnu_ld"; then |
||
19779 | need_lib_prefix=no |
||
19780 | fi |
||
19781 | need_version=yes |
||
19782 | ;; |
||
19783 | |||
19784 | sysv4 | sysv4.3*) |
||
19785 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19786 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19787 | soname_spec='$libname$release$shared_ext$major' |
||
19788 | shlibpath_var=LD_LIBRARY_PATH |
||
19789 | case $host_vendor in |
||
19790 | sni) |
||
19791 | shlibpath_overrides_runpath=no |
||
19792 | need_lib_prefix=no |
||
19793 | runpath_var=LD_RUN_PATH |
||
19794 | ;; |
||
19795 | siemens) |
||
19796 | need_lib_prefix=no |
||
19797 | ;; |
||
19798 | motorola) |
||
19799 | need_lib_prefix=no |
||
19800 | need_version=no |
||
19801 | shlibpath_overrides_runpath=no |
||
19802 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
||
19803 | ;; |
||
19804 | esac |
||
19805 | ;; |
||
19806 | |||
19807 | sysv4*MP*) |
||
19808 | if test -d /usr/nec; then |
||
19809 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19810 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
||
19811 | soname_spec='$libname$shared_ext.$major' |
||
19812 | shlibpath_var=LD_LIBRARY_PATH |
||
19813 | fi |
||
19814 | ;; |
||
19815 | |||
19816 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
||
19817 | version_type=sco |
||
19818 | need_lib_prefix=no |
||
19819 | need_version=no |
||
19820 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
||
19821 | soname_spec='$libname$release$shared_ext$major' |
||
19822 | shlibpath_var=LD_LIBRARY_PATH |
||
19823 | shlibpath_overrides_runpath=yes |
||
19824 | hardcode_into_libs=yes |
||
19825 | if test yes = "$with_gnu_ld"; then |
||
19826 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
||
19827 | else |
||
19828 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
||
19829 | case $host_os in |
||
19830 | sco3.2v5*) |
||
19831 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
||
19832 | ;; |
||
19833 | esac |
||
19834 | fi |
||
19835 | sys_lib_dlsearch_path_spec='/usr/lib' |
||
19836 | ;; |
||
19837 | |||
19838 | tpf*) |
||
19839 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
||
19840 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19841 | need_lib_prefix=no |
||
19842 | need_version=no |
||
19843 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19844 | shlibpath_var=LD_LIBRARY_PATH |
||
19845 | shlibpath_overrides_runpath=no |
||
19846 | hardcode_into_libs=yes |
||
19847 | ;; |
||
19848 | |||
19849 | uts4*) |
||
19850 | version_type=linux # correct to gnu/linux during the next big refactor |
||
19851 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
||
19852 | soname_spec='$libname$release$shared_ext$major' |
||
19853 | shlibpath_var=LD_LIBRARY_PATH |
||
19854 | ;; |
||
19855 | |||
19856 | *) |
||
19857 | dynamic_linker=no |
||
19858 | ;; |
||
19859 | esac |
||
19860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
||
19861 | $as_echo "$dynamic_linker" >&6; } |
||
19862 | test no = "$dynamic_linker" && can_build_shared=no |
||
19863 | |||
19864 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
||
19865 | if test yes = "$GCC"; then |
||
19866 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
||
19867 | fi |
||
19868 | |||
19869 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
||
19870 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
||
19871 | fi |
||
19872 | |||
19873 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
||
19874 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
||
19875 | fi |
||
19876 | |||
19877 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
||
19878 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
||
19879 | |||
19880 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
||
19881 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
||
19882 | |||
19883 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
||
19884 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
||
19885 | |||
19886 | |||
19887 | |||
19888 | |||
19889 | |||
19890 | |||
19891 | |||
19892 | |||
19893 | |||
19894 | |||
19895 | |||
19896 | |||
19897 | |||
19898 | |||
19899 | |||
19900 | |||
19901 | |||
19902 | |||
19903 | |||
19904 | |||
19905 | |||
19906 | |||
19907 | |||
19908 | |||
19909 | |||
19910 | |||
19911 | |||
19912 | |||
19913 | |||
19914 | |||
19915 | |||
19916 | |||
19917 | |||
19918 | |||
19919 | |||
19920 | |||
19921 | |||
19922 | |||
19923 | |||
19924 | |||
19925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
||
19926 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
||
19927 | hardcode_action_CXX= |
||
19928 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
||
19929 | test -n "$runpath_var_CXX" || |
||
19930 | test yes = "$hardcode_automatic_CXX"; then |
||
19931 | |||
19932 | # We can hardcode non-existent directories. |
||
19933 | if test no != "$hardcode_direct_CXX" && |
||
19934 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
||
19935 | # have to relink, otherwise we might link with an installed library |
||
19936 | # when we should be linking with a yet-to-be-installed one |
||
19937 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
||
19938 | test no != "$hardcode_minus_L_CXX"; then |
||
19939 | # Linking always hardcodes the temporary library directory. |
||
19940 | hardcode_action_CXX=relink |
||
19941 | else |
||
19942 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
||
19943 | hardcode_action_CXX=immediate |
||
19944 | fi |
||
19945 | else |
||
19946 | # We cannot hardcode anything, or else we can only hardcode existing |
||
19947 | # directories. |
||
19948 | hardcode_action_CXX=unsupported |
||
19949 | fi |
||
19950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
||
19951 | $as_echo "$hardcode_action_CXX" >&6; } |
||
19952 | |||
19953 | if test relink = "$hardcode_action_CXX" || |
||
19954 | test yes = "$inherit_rpath_CXX"; then |
||
19955 | # Fast installation is not supported |
||
19956 | enable_fast_install=no |
||
19957 | elif test yes = "$shlibpath_overrides_runpath" || |
||
19958 | test no = "$enable_shared"; then |
||
19959 | # Fast installation is not necessary |
||
19960 | enable_fast_install=needless |
||
19961 | fi |
||
19962 | |||
19963 | |||
19964 | |||
19965 | |||
19966 | |||
19967 | |||
19968 | |||
19969 | fi # test -n "$compiler" |
||
19970 | |||
19971 | CC=$lt_save_CC |
||
19972 | CFLAGS=$lt_save_CFLAGS |
||
19973 | LDCXX=$LD |
||
19974 | LD=$lt_save_LD |
||
19975 | GCC=$lt_save_GCC |
||
19976 | with_gnu_ld=$lt_save_with_gnu_ld |
||
19977 | lt_cv_path_LDCXX=$lt_cv_path_LD |
||
19978 | lt_cv_path_LD=$lt_save_path_LD |
||
19979 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
||
19980 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
||
19981 | fi # test yes != "$_lt_caught_CXX_error" |
||
19982 | |||
19983 | ac_ext=c |
||
19984 | ac_cpp='$CPP $CPPFLAGS' |
||
19985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
19986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
19987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
19988 | |||
19989 | |||
19990 | |||
19991 | |||
19992 | |||
19993 | |||
19994 | |||
19995 | |||
19996 | |||
19997 | |||
19998 | |||
19999 | |||
20000 | |||
20001 | |||
20002 | |||
20003 | ac_config_commands="$ac_config_commands libtool" |
||
20004 | |||
20005 | |||
20006 | |||
20007 | |||
20008 | # Only expand once: |
||
20009 | |||
20010 | |||
20011 | : ${CONFIG_LT=./config.lt} |
||
20012 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 |
||
20013 | $as_echo "$as_me: creating $CONFIG_LT" >&6;} |
||
20014 | as_write_fail=0 |
||
20015 | cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 |
||
20016 | #! $SHELL |
||
20017 | # Generated by $as_me. |
||
20018 | # Run this file to recreate a libtool stub with the current configuration. |
||
20019 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
20020 | export SHELL |
||
20021 | _ASEOF |
||
20022 | cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 |
||
20023 | ## -------------------- ## |
||
20024 | ## M4sh Initialization. ## |
||
20025 | ## -------------------- ## |
||
20026 | |||
20027 | # Be more Bourne compatible |
||
20028 | DUALCASE=1; export DUALCASE # for MKS sh |
||
20029 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
20030 | emulate sh |
||
20031 | NULLCMD=: |
||
20032 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
20033 | # is contrary to our usage. Disable this feature. |
||
20034 | alias -g '${1+"$@"}'='"$@"' |
||
20035 | setopt NO_GLOB_SUBST |
||
20036 | else |
||
20037 | case `(set -o) 2>/dev/null` in #( |
||
20038 | *posix*) : |
||
20039 | set -o posix ;; #( |
||
20040 | *) : |
||
20041 | ;; |
||
20042 | esac |
||
20043 | fi |
||
20044 | |||
20045 | |||
20046 | as_nl=' |
||
20047 | ' |
||
20048 | export as_nl |
||
20049 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
20050 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
20051 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
20052 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
20053 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
||
20054 | # but without wasting forks for bash or zsh. |
||
20055 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
||
20056 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
20057 | as_echo='print -r --' |
||
20058 | as_echo_n='print -rn --' |
||
20059 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
20060 | as_echo='printf %s\n' |
||
20061 | as_echo_n='printf %s' |
||
20062 | else |
||
20063 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
20064 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
20065 | as_echo_n='/usr/ucb/echo -n' |
||
20066 | else |
||
20067 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
20068 | as_echo_n_body='eval |
||
20069 | arg=$1; |
||
20070 | case $arg in #( |
||
20071 | *"$as_nl"*) |
||
20072 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
20073 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
20074 | esac; |
||
20075 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
20076 | ' |
||
20077 | export as_echo_n_body |
||
20078 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
20079 | fi |
||
20080 | export as_echo_body |
||
20081 | as_echo='sh -c $as_echo_body as_echo' |
||
20082 | fi |
||
20083 | |||
20084 | # The user is always right. |
||
20085 | if test "${PATH_SEPARATOR+set}" != set; then |
||
20086 | PATH_SEPARATOR=: |
||
20087 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
20088 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
20089 | PATH_SEPARATOR=';' |
||
20090 | } |
||
20091 | fi |
||
20092 | |||
20093 | |||
20094 | # IFS |
||
20095 | # We need space, tab and new line, in precisely that order. Quoting is |
||
20096 | # there to prevent editors from complaining about space-tab. |
||
20097 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
20098 | # splitting by setting IFS to empty value.) |
||
20099 | IFS=" "" $as_nl" |
||
20100 | |||
20101 | # Find who we are. Look in the path if we contain no directory separator. |
||
20102 | as_myself= |
||
20103 | case $0 in #(( |
||
20104 | *[\\/]* ) as_myself=$0 ;; |
||
20105 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
20106 | for as_dir in $PATH |
||
20107 | do |
||
20108 | IFS=$as_save_IFS |
||
20109 | test -z "$as_dir" && as_dir=. |
||
20110 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
20111 | done |
||
20112 | IFS=$as_save_IFS |
||
20113 | |||
20114 | ;; |
||
20115 | esac |
||
20116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
20117 | # in which case we are not to be found in the path. |
||
20118 | if test "x$as_myself" = x; then |
||
20119 | as_myself=$0 |
||
20120 | fi |
||
20121 | if test ! -f "$as_myself"; then |
||
20122 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
20123 | exit 1 |
||
20124 | fi |
||
20125 | |||
20126 | # Unset variables that we do not need and which cause bugs (e.g. in |
||
20127 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
||
20128 | # suppresses any "Segmentation fault" message there. '((' could |
||
20129 | # trigger a bug in pdksh 5.2.14. |
||
20130 | for as_var in BASH_ENV ENV MAIL MAILPATH |
||
20131 | do eval test x\${$as_var+set} = xset \ |
||
20132 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
||
20133 | done |
||
20134 | PS1='$ ' |
||
20135 | PS2='> ' |
||
20136 | PS4='+ ' |
||
20137 | |||
20138 | # NLS nuisances. |
||
20139 | LC_ALL=C |
||
20140 | export LC_ALL |
||
20141 | LANGUAGE=C |
||
20142 | export LANGUAGE |
||
20143 | |||
20144 | # CDPATH. |
||
20145 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
20146 | |||
20147 | |||
20148 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
20149 | # ---------------------------------------- |
||
20150 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
20151 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
20152 | # script with STATUS, using 1 if that was 0. |
||
20153 | as_fn_error () |
||
20154 | { |
||
20155 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
20156 | if test "$4"; then |
||
20157 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
20158 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
20159 | fi |
||
20160 | $as_echo "$as_me: error: $2" >&2 |
||
20161 | as_fn_exit $as_status |
||
20162 | } # as_fn_error |
||
20163 | |||
20164 | |||
20165 | # as_fn_set_status STATUS |
||
20166 | # ----------------------- |
||
20167 | # Set $? to STATUS, without forking. |
||
20168 | as_fn_set_status () |
||
20169 | { |
||
20170 | return $1 |
||
20171 | } # as_fn_set_status |
||
20172 | |||
20173 | # as_fn_exit STATUS |
||
20174 | # ----------------- |
||
20175 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
20176 | as_fn_exit () |
||
20177 | { |
||
20178 | set +e |
||
20179 | as_fn_set_status $1 |
||
20180 | exit $1 |
||
20181 | } # as_fn_exit |
||
20182 | |||
20183 | # as_fn_unset VAR |
||
20184 | # --------------- |
||
20185 | # Portably unset VAR. |
||
20186 | as_fn_unset () |
||
20187 | { |
||
20188 | { eval $1=; unset $1;} |
||
20189 | } |
||
20190 | as_unset=as_fn_unset |
||
20191 | # as_fn_append VAR VALUE |
||
20192 | # ---------------------- |
||
20193 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
20194 | # advantage of any shell optimizations that allow amortized linear growth over |
||
20195 | # repeated appends, instead of the typical quadratic growth present in naive |
||
20196 | # implementations. |
||
20197 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
20198 | eval 'as_fn_append () |
||
20199 | { |
||
20200 | eval $1+=\$2 |
||
20201 | }' |
||
20202 | else |
||
20203 | as_fn_append () |
||
20204 | { |
||
20205 | eval $1=\$$1\$2 |
||
20206 | } |
||
20207 | fi # as_fn_append |
||
20208 | |||
20209 | # as_fn_arith ARG... |
||
20210 | # ------------------ |
||
20211 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
20212 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
20213 | # must be portable across $(()) and expr. |
||
20214 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
20215 | eval 'as_fn_arith () |
||
20216 | { |
||
20217 | as_val=$(( $* )) |
||
20218 | }' |
||
20219 | else |
||
20220 | as_fn_arith () |
||
20221 | { |
||
20222 | as_val=`expr "$@" || test $? -eq 1` |
||
20223 | } |
||
20224 | fi # as_fn_arith |
||
20225 | |||
20226 | |||
20227 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
20228 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
20229 | as_expr=expr |
||
20230 | else |
||
20231 | as_expr=false |
||
20232 | fi |
||
20233 | |||
20234 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
20235 | as_basename=basename |
||
20236 | else |
||
20237 | as_basename=false |
||
20238 | fi |
||
20239 | |||
20240 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
20241 | as_dirname=dirname |
||
20242 | else |
||
20243 | as_dirname=false |
||
20244 | fi |
||
20245 | |||
20246 | as_me=`$as_basename -- "$0" || |
||
20247 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
20248 | X"$0" : 'X\(//\)$' \| \ |
||
20249 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
20250 | $as_echo X/"$0" | |
||
20251 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
20252 | s//\1/ |
||
20253 | q |
||
20254 | } |
||
20255 | /^X\/\(\/\/\)$/{ |
||
20256 | s//\1/ |
||
20257 | q |
||
20258 | } |
||
20259 | /^X\/\(\/\).*/{ |
||
20260 | s//\1/ |
||
20261 | q |
||
20262 | } |
||
20263 | s/.*/./; q'` |
||
20264 | |||
20265 | # Avoid depending upon Character Ranges. |
||
20266 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
20267 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
20268 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
20269 | as_cr_digits='0123456789' |
||
20270 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
20271 | |||
20272 | ECHO_C= ECHO_N= ECHO_T= |
||
20273 | case `echo -n x` in #((((( |
||
20274 | -n*) |
||
20275 | case `echo 'xy\c'` in |
||
20276 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
20277 | xy) ECHO_C='\c';; |
||
20278 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
20279 | ECHO_T=' ';; |
||
20280 | esac;; |
||
20281 | *) |
||
20282 | ECHO_N='-n';; |
||
20283 | esac |
||
20284 | |||
20285 | rm -f conf$$ conf$$.exe conf$$.file |
||
20286 | if test -d conf$$.dir; then |
||
20287 | rm -f conf$$.dir/conf$$.file |
||
20288 | else |
||
20289 | rm -f conf$$.dir |
||
20290 | mkdir conf$$.dir 2>/dev/null |
||
20291 | fi |
||
20292 | if (echo >conf$$.file) 2>/dev/null; then |
||
20293 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
20294 | as_ln_s='ln -s' |
||
20295 | # ... but there are two gotchas: |
||
20296 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
20297 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
20298 | # In both cases, we have to default to `cp -pR'. |
||
20299 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
20300 | as_ln_s='cp -pR' |
||
20301 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
20302 | as_ln_s=ln |
||
20303 | else |
||
20304 | as_ln_s='cp -pR' |
||
20305 | fi |
||
20306 | else |
||
20307 | as_ln_s='cp -pR' |
||
20308 | fi |
||
20309 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
20310 | rmdir conf$$.dir 2>/dev/null |
||
20311 | |||
20312 | |||
20313 | # as_fn_mkdir_p |
||
20314 | # ------------- |
||
20315 | # Create "$as_dir" as a directory, including parents if necessary. |
||
20316 | as_fn_mkdir_p () |
||
20317 | { |
||
20318 | |||
20319 | case $as_dir in #( |
||
20320 | -*) as_dir=./$as_dir;; |
||
20321 | esac |
||
20322 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
20323 | as_dirs= |
||
20324 | while :; do |
||
20325 | case $as_dir in #( |
||
20326 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
20327 | *) as_qdir=$as_dir;; |
||
20328 | esac |
||
20329 | as_dirs="'$as_qdir' $as_dirs" |
||
20330 | as_dir=`$as_dirname -- "$as_dir" || |
||
20331 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
20332 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
20333 | X"$as_dir" : 'X\(//\)$' \| \ |
||
20334 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
20335 | $as_echo X"$as_dir" | |
||
20336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
20337 | s//\1/ |
||
20338 | q |
||
20339 | } |
||
20340 | /^X\(\/\/\)[^/].*/{ |
||
20341 | s//\1/ |
||
20342 | q |
||
20343 | } |
||
20344 | /^X\(\/\/\)$/{ |
||
20345 | s//\1/ |
||
20346 | q |
||
20347 | } |
||
20348 | /^X\(\/\).*/{ |
||
20349 | s//\1/ |
||
20350 | q |
||
20351 | } |
||
20352 | s/.*/./; q'` |
||
20353 | test -d "$as_dir" && break |
||
20354 | done |
||
20355 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
20356 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
20357 | |||
20358 | |||
20359 | } # as_fn_mkdir_p |
||
20360 | if mkdir -p . 2>/dev/null; then |
||
20361 | as_mkdir_p='mkdir -p "$as_dir"' |
||
20362 | else |
||
20363 | test -d ./-p && rmdir ./-p |
||
20364 | as_mkdir_p=false |
||
20365 | fi |
||
20366 | |||
20367 | |||
20368 | # as_fn_executable_p FILE |
||
20369 | # ----------------------- |
||
20370 | # Test if FILE is an executable regular file. |
||
20371 | as_fn_executable_p () |
||
20372 | { |
||
20373 | test -f "$1" && test -x "$1" |
||
20374 | } # as_fn_executable_p |
||
20375 | as_test_x='test -x' |
||
20376 | as_executable_p=as_fn_executable_p |
||
20377 | |||
20378 | # Sed expression to map a string onto a valid CPP name. |
||
20379 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
20380 | |||
20381 | # Sed expression to map a string onto a valid variable name. |
||
20382 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
20383 | |||
20384 | |||
20385 | exec 6>&1 |
||
20386 | ## --------------------------------- ## |
||
20387 | ## Main body of "$CONFIG_LT" script. ## |
||
20388 | ## --------------------------------- ## |
||
20389 | _ASEOF |
||
20390 | test $as_write_fail = 0 && chmod +x "$CONFIG_LT" |
||
20391 | |||
20392 | cat >>"$CONFIG_LT" <<\_LTEOF |
||
20393 | lt_cl_silent=false |
||
20394 | exec 5>>config.log |
||
20395 | { |
||
20396 | echo |
||
20397 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
20398 | ## Running $as_me. ## |
||
20399 | _ASBOX |
||
20400 | } >&5 |
||
20401 | |||
20402 | lt_cl_help="\ |
||
20403 | '$as_me' creates a local libtool stub from the current configuration, |
||
20404 | for use in further configure time tests before the real libtool is |
||
20405 | generated. |
||
20406 | |||
20407 | Usage: $0 [OPTIONS] |
||
20408 | |||
20409 | -h, --help print this help, then exit |
||
20410 | -V, --version print version number, then exit |
||
20411 | -q, --quiet do not print progress messages |
||
20412 | -d, --debug don't remove temporary files |
||
20413 | |||
20414 | Report bugs to <bug-libtool@gnu.org>." |
||
20415 | |||
20416 | lt_cl_version="\ |
||
20417 | glib config.lt 2.48.1 |
||
20418 | configured by $0, generated by GNU Autoconf 2.69. |
||
20419 | |||
20420 | Copyright (C) 2011 Free Software Foundation, Inc. |
||
20421 | This config.lt script is free software; the Free Software Foundation |
||
20422 | gives unlimited permision to copy, distribute and modify it." |
||
20423 | |||
20424 | while test 0 != $# |
||
20425 | do |
||
20426 | case $1 in |
||
20427 | --version | --v* | -V ) |
||
20428 | echo "$lt_cl_version"; exit 0 ;; |
||
20429 | --help | --h* | -h ) |
||
20430 | echo "$lt_cl_help"; exit 0 ;; |
||
20431 | --debug | --d* | -d ) |
||
20432 | debug=: ;; |
||
20433 | --quiet | --q* | --silent | --s* | -q ) |
||
20434 | lt_cl_silent=: ;; |
||
20435 | |||
20436 | -*) as_fn_error $? "unrecognized option: $1 |
||
20437 | Try '$0 --help' for more information." "$LINENO" 5 ;; |
||
20438 | |||
20439 | *) as_fn_error $? "unrecognized argument: $1 |
||
20440 | Try '$0 --help' for more information." "$LINENO" 5 ;; |
||
20441 | esac |
||
20442 | shift |
||
20443 | done |
||
20444 | |||
20445 | if $lt_cl_silent; then |
||
20446 | exec 6>/dev/null |
||
20447 | fi |
||
20448 | _LTEOF |
||
20449 | |||
20450 | cat >>"$CONFIG_LT" <<_LTEOF |
||
20451 | |||
20452 | |||
20453 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
20454 | # if CDPATH is set. |
||
20455 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
20456 | |||
20457 | sed_quote_subst='$sed_quote_subst' |
||
20458 | double_quote_subst='$double_quote_subst' |
||
20459 | delay_variable_subst='$delay_variable_subst' |
||
20460 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
||
20461 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
||
20462 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
||
20463 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
||
20464 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
||
20465 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
||
20466 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
||
20467 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
||
20468 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
||
20469 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
||
20470 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
||
20471 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
||
20472 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
||
20473 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
||
20474 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
||
20475 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
||
20476 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
||
20477 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
||
20478 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
||
20479 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
||
20480 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
||
20481 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
||
20482 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
||
20483 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
||
20484 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
||
20485 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
||
20486 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
||
20487 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
||
20488 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
||
20489 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
||
20490 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
||
20491 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
||
20492 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
||
20493 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
||
20494 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
||
20495 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
||
20496 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
||
20497 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
||
20498 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
||
20499 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
||
20500 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
||
20501 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
||
20502 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
||
20503 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
||
20504 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
||
20505 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
||
20506 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
||
20507 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
20508 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
20509 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
||
20510 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
||
20511 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
||
20512 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
||
20513 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
||
20514 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
||
20515 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
||
20516 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
||
20517 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
||
20518 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
||
20519 | 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"`' |
||
20520 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
||
20521 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
||
20522 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
||
20523 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
||
20524 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
||
20525 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
||
20526 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
||
20527 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
||
20528 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
||
20529 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
||
20530 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
||
20531 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
||
20532 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
||
20533 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
||
20534 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
||
20535 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
||
20536 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
||
20537 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
||
20538 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
||
20539 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
||
20540 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
||
20541 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
||
20542 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
||
20543 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
20544 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
20545 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
||
20546 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
||
20547 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
||
20548 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
||
20549 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
||
20550 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
||
20551 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
||
20552 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
||
20553 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
||
20554 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
||
20555 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
20556 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
||
20557 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
||
20558 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
||
20559 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
||
20560 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
||
20561 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
||
20562 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
||
20563 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
||
20564 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
||
20565 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
||
20566 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
||
20567 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
||
20568 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
||
20569 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
||
20570 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
||
20571 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
||
20572 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
||
20573 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
||
20574 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
||
20575 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
||
20576 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
||
20577 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
||
20578 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
||
20579 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
||
20580 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
||
20581 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
||
20582 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
20583 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
20584 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
||
20585 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
||
20586 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
||
20587 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
||
20588 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
||
20589 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
||
20590 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
||
20591 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
||
20592 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
||
20593 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
||
20594 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
||
20595 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
||
20596 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
||
20597 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
||
20598 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
||
20599 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
||
20600 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
||
20601 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
||
20602 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
||
20603 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
20604 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20605 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20606 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
||
20607 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
||
20608 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
20609 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
||
20610 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
||
20611 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
||
20612 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
||
20613 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
||
20614 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
||
20615 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
20616 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
20617 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
||
20618 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20619 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20620 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20621 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20622 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20623 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20624 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
||
20625 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
20626 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
20627 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
20628 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
||
20629 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
||
20630 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
||
20631 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
||
20632 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
||
20633 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
||
20634 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
||
20635 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
||
20636 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
||
20637 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20638 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
||
20639 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
||
20640 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20641 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
20642 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
20643 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
||
20644 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
||
20645 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
||
20646 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
||
20647 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
||
20648 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
||
20649 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
||
20650 | |||
20651 | LTCC='$LTCC' |
||
20652 | LTCFLAGS='$LTCFLAGS' |
||
20653 | compiler='$compiler_DEFAULT' |
||
20654 | |||
20655 | # A function that is used when there is no print builtin or printf. |
||
20656 | func_fallback_echo () |
||
20657 | { |
||
20658 | eval 'cat <<_LTECHO_EOF |
||
20659 | \$1 |
||
20660 | _LTECHO_EOF' |
||
20661 | } |
||
20662 | |||
20663 | # Quote evaled strings. |
||
20664 | for var in AS \ |
||
20665 | DLLTOOL \ |
||
20666 | OBJDUMP \ |
||
20667 | SHELL \ |
||
20668 | ECHO \ |
||
20669 | PATH_SEPARATOR \ |
||
20670 | SED \ |
||
20671 | GREP \ |
||
20672 | EGREP \ |
||
20673 | FGREP \ |
||
20674 | LD \ |
||
20675 | NM \ |
||
20676 | LN_S \ |
||
20677 | lt_SP2NL \ |
||
20678 | lt_NL2SP \ |
||
20679 | reload_flag \ |
||
20680 | deplibs_check_method \ |
||
20681 | file_magic_cmd \ |
||
20682 | file_magic_glob \ |
||
20683 | want_nocaseglob \ |
||
20684 | sharedlib_from_linklib_cmd \ |
||
20685 | AR \ |
||
20686 | AR_FLAGS \ |
||
20687 | archiver_list_spec \ |
||
20688 | STRIP \ |
||
20689 | RANLIB \ |
||
20690 | CC \ |
||
20691 | CFLAGS \ |
||
20692 | compiler \ |
||
20693 | lt_cv_sys_global_symbol_pipe \ |
||
20694 | lt_cv_sys_global_symbol_to_cdecl \ |
||
20695 | lt_cv_sys_global_symbol_to_import \ |
||
20696 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
20697 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
||
20698 | lt_cv_nm_interface \ |
||
20699 | nm_file_list_spec \ |
||
20700 | lt_cv_truncate_bin \ |
||
20701 | lt_prog_compiler_no_builtin_flag \ |
||
20702 | lt_prog_compiler_pic \ |
||
20703 | lt_prog_compiler_wl \ |
||
20704 | lt_prog_compiler_static \ |
||
20705 | lt_cv_prog_compiler_c_o \ |
||
20706 | need_locks \ |
||
20707 | MANIFEST_TOOL \ |
||
20708 | DSYMUTIL \ |
||
20709 | NMEDIT \ |
||
20710 | LIPO \ |
||
20711 | OTOOL \ |
||
20712 | OTOOL64 \ |
||
20713 | shrext_cmds \ |
||
20714 | export_dynamic_flag_spec \ |
||
20715 | whole_archive_flag_spec \ |
||
20716 | compiler_needs_object \ |
||
20717 | with_gnu_ld \ |
||
20718 | allow_undefined_flag \ |
||
20719 | no_undefined_flag \ |
||
20720 | hardcode_libdir_flag_spec \ |
||
20721 | hardcode_libdir_separator \ |
||
20722 | exclude_expsyms \ |
||
20723 | include_expsyms \ |
||
20724 | file_list_spec \ |
||
20725 | variables_saved_for_relink \ |
||
20726 | libname_spec \ |
||
20727 | library_names_spec \ |
||
20728 | soname_spec \ |
||
20729 | install_override_mode \ |
||
20730 | finish_eval \ |
||
20731 | old_striplib \ |
||
20732 | striplib \ |
||
20733 | compiler_lib_search_dirs \ |
||
20734 | predep_objects \ |
||
20735 | postdep_objects \ |
||
20736 | predeps \ |
||
20737 | postdeps \ |
||
20738 | compiler_lib_search_path \ |
||
20739 | LD_CXX \ |
||
20740 | reload_flag_CXX \ |
||
20741 | compiler_CXX \ |
||
20742 | lt_prog_compiler_no_builtin_flag_CXX \ |
||
20743 | lt_prog_compiler_pic_CXX \ |
||
20744 | lt_prog_compiler_wl_CXX \ |
||
20745 | lt_prog_compiler_static_CXX \ |
||
20746 | lt_cv_prog_compiler_c_o_CXX \ |
||
20747 | export_dynamic_flag_spec_CXX \ |
||
20748 | whole_archive_flag_spec_CXX \ |
||
20749 | compiler_needs_object_CXX \ |
||
20750 | with_gnu_ld_CXX \ |
||
20751 | allow_undefined_flag_CXX \ |
||
20752 | no_undefined_flag_CXX \ |
||
20753 | hardcode_libdir_flag_spec_CXX \ |
||
20754 | hardcode_libdir_separator_CXX \ |
||
20755 | exclude_expsyms_CXX \ |
||
20756 | include_expsyms_CXX \ |
||
20757 | file_list_spec_CXX \ |
||
20758 | compiler_lib_search_dirs_CXX \ |
||
20759 | predep_objects_CXX \ |
||
20760 | postdep_objects_CXX \ |
||
20761 | predeps_CXX \ |
||
20762 | postdeps_CXX \ |
||
20763 | compiler_lib_search_path_CXX; do |
||
20764 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
||
20765 | *[\\\\\\\`\\"\\\$]*) |
||
20766 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
||
20767 | ;; |
||
20768 | *) |
||
20769 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
20770 | ;; |
||
20771 | esac |
||
20772 | done |
||
20773 | |||
20774 | # Double-quote double-evaled strings. |
||
20775 | for var in reload_cmds \ |
||
20776 | old_postinstall_cmds \ |
||
20777 | old_postuninstall_cmds \ |
||
20778 | old_archive_cmds \ |
||
20779 | extract_expsyms_cmds \ |
||
20780 | old_archive_from_new_cmds \ |
||
20781 | old_archive_from_expsyms_cmds \ |
||
20782 | archive_cmds \ |
||
20783 | archive_expsym_cmds \ |
||
20784 | module_cmds \ |
||
20785 | module_expsym_cmds \ |
||
20786 | export_symbols_cmds \ |
||
20787 | prelink_cmds \ |
||
20788 | postlink_cmds \ |
||
20789 | postinstall_cmds \ |
||
20790 | postuninstall_cmds \ |
||
20791 | finish_cmds \ |
||
20792 | sys_lib_search_path_spec \ |
||
20793 | configure_time_dlsearch_path \ |
||
20794 | configure_time_lt_sys_library_path \ |
||
20795 | reload_cmds_CXX \ |
||
20796 | old_archive_cmds_CXX \ |
||
20797 | old_archive_from_new_cmds_CXX \ |
||
20798 | old_archive_from_expsyms_cmds_CXX \ |
||
20799 | archive_cmds_CXX \ |
||
20800 | archive_expsym_cmds_CXX \ |
||
20801 | module_cmds_CXX \ |
||
20802 | module_expsym_cmds_CXX \ |
||
20803 | export_symbols_cmds_CXX \ |
||
20804 | prelink_cmds_CXX \ |
||
20805 | postlink_cmds_CXX; do |
||
20806 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
||
20807 | *[\\\\\\\`\\"\\\$]*) |
||
20808 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
||
20809 | ;; |
||
20810 | *) |
||
20811 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
20812 | ;; |
||
20813 | esac |
||
20814 | done |
||
20815 | |||
20816 | ac_aux_dir='$ac_aux_dir' |
||
20817 | |||
20818 | # See if we are running on zsh, and set the options that allow our |
||
20819 | # commands through without removal of \ escapes INIT. |
||
20820 | if test -n "\${ZSH_VERSION+set}"; then |
||
20821 | setopt NO_GLOB_SUBST |
||
20822 | fi |
||
20823 | |||
20824 | |||
20825 | PACKAGE='$PACKAGE' |
||
20826 | VERSION='$VERSION' |
||
20827 | RM='$RM' |
||
20828 | ofile='$ofile' |
||
20829 | |||
20830 | |||
20831 | |||
20832 | |||
20833 | |||
20834 | _LTEOF |
||
20835 | |||
20836 | cat >>"$CONFIG_LT" <<\_LTEOF |
||
20837 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 |
||
20838 | $as_echo "$as_me: creating $ofile" >&6;} |
||
20839 | |||
20840 | |||
20841 | # See if we are running on zsh, and set the options that allow our |
||
20842 | # commands through without removal of \ escapes. |
||
20843 | if test -n "${ZSH_VERSION+set}"; then |
||
20844 | setopt NO_GLOB_SUBST |
||
20845 | fi |
||
20846 | |||
20847 | cfgfile=${ofile}T |
||
20848 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
||
20849 | $RM "$cfgfile" |
||
20850 | |||
20851 | cat <<_LT_EOF >> "$cfgfile" |
||
20852 | #! $SHELL |
||
20853 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
||
20854 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
20855 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
||
20856 | |||
20857 | # Provide generalized library-building support services. |
||
20858 | # Written by Gordon Matzigkeit, 1996 |
||
20859 | |||
20860 | # Copyright (C) 2014 Free Software Foundation, Inc. |
||
20861 | # This is free software; see the source for copying conditions. There is NO |
||
20862 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
20863 | |||
20864 | # GNU Libtool is free software; you can redistribute it and/or modify |
||
20865 | # it under the terms of the GNU General Public License as published by |
||
20866 | # the Free Software Foundation; either version 2 of of the License, or |
||
20867 | # (at your option) any later version. |
||
20868 | # |
||
20869 | # As a special exception to the GNU General Public License, if you |
||
20870 | # distribute this file as part of a program or library that is built |
||
20871 | # using GNU Libtool, you may include this file under the same |
||
20872 | # distribution terms that you use for the rest of that program. |
||
20873 | # |
||
20874 | # GNU Libtool is distributed in the hope that it will be useful, but |
||
20875 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
||
20876 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
20877 | # GNU General Public License for more details. |
||
20878 | # |
||
20879 | # You should have received a copy of the GNU General Public License |
||
20880 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
||
20881 | |||
20882 | |||
20883 | # The names of the tagged configurations supported by this script. |
||
20884 | available_tags='CXX ' |
||
20885 | |||
20886 | # Configured defaults for sys_lib_dlsearch_path munging. |
||
20887 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
||
20888 | |||
20889 | # ### BEGIN LIBTOOL CONFIG |
||
20890 | |||
20891 | # Which release of libtool.m4 was used? |
||
20892 | macro_version=$macro_version |
||
20893 | macro_revision=$macro_revision |
||
20894 | |||
20895 | # Whether or not to build static libraries. |
||
20896 | build_old_libs=$enable_static |
||
20897 | |||
20898 | # Assembler program. |
||
20899 | AS=$lt_AS |
||
20900 | |||
20901 | # DLL creation program. |
||
20902 | DLLTOOL=$lt_DLLTOOL |
||
20903 | |||
20904 | # Object dumper program. |
||
20905 | OBJDUMP=$lt_OBJDUMP |
||
20906 | |||
20907 | # Whether or not to build shared libraries. |
||
20908 | build_libtool_libs=$enable_shared |
||
20909 | |||
20910 | # What type of objects to build. |
||
20911 | pic_mode=$pic_mode |
||
20912 | |||
20913 | # Whether or not to optimize for fast installation. |
||
20914 | fast_install=$enable_fast_install |
||
20915 | |||
20916 | # Shared archive member basename,for filename based shared library versioning on AIX. |
||
20917 | shared_archive_member_spec=$shared_archive_member_spec |
||
20918 | |||
20919 | # Shell to use when invoking shell scripts. |
||
20920 | SHELL=$lt_SHELL |
||
20921 | |||
20922 | # An echo program that protects backslashes. |
||
20923 | ECHO=$lt_ECHO |
||
20924 | |||
20925 | # The PATH separator for the build system. |
||
20926 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
||
20927 | |||
20928 | # The host system. |
||
20929 | host_alias=$host_alias |
||
20930 | host=$host |
||
20931 | host_os=$host_os |
||
20932 | |||
20933 | # The build system. |
||
20934 | build_alias=$build_alias |
||
20935 | build=$build |
||
20936 | build_os=$build_os |
||
20937 | |||
20938 | # A sed program that does not truncate output. |
||
20939 | SED=$lt_SED |
||
20940 | |||
20941 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
||
20942 | Xsed="\$SED -e 1s/^X//" |
||
20943 | |||
20944 | # A grep program that handles long lines. |
||
20945 | GREP=$lt_GREP |
||
20946 | |||
20947 | # An ERE matcher. |
||
20948 | EGREP=$lt_EGREP |
||
20949 | |||
20950 | # A literal string matcher. |
||
20951 | FGREP=$lt_FGREP |
||
20952 | |||
20953 | # A BSD- or MS-compatible name lister. |
||
20954 | NM=$lt_NM |
||
20955 | |||
20956 | # Whether we need soft or hard links. |
||
20957 | LN_S=$lt_LN_S |
||
20958 | |||
20959 | # What is the maximum length of a command? |
||
20960 | max_cmd_len=$max_cmd_len |
||
20961 | |||
20962 | # Object file suffix (normally "o"). |
||
20963 | objext=$ac_objext |
||
20964 | |||
20965 | # Executable file suffix (normally ""). |
||
20966 | exeext=$exeext |
||
20967 | |||
20968 | # whether the shell understands "unset". |
||
20969 | lt_unset=$lt_unset |
||
20970 | |||
20971 | # turn spaces into newlines. |
||
20972 | SP2NL=$lt_lt_SP2NL |
||
20973 | |||
20974 | # turn newlines into spaces. |
||
20975 | NL2SP=$lt_lt_NL2SP |
||
20976 | |||
20977 | # convert \$build file names to \$host format. |
||
20978 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
||
20979 | |||
20980 | # convert \$build files to toolchain format. |
||
20981 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
||
20982 | |||
20983 | # Method to check whether dependent libraries are shared objects. |
||
20984 | deplibs_check_method=$lt_deplibs_check_method |
||
20985 | |||
20986 | # Command to use when deplibs_check_method = "file_magic". |
||
20987 | file_magic_cmd=$lt_file_magic_cmd |
||
20988 | |||
20989 | # How to find potential files when deplibs_check_method = "file_magic". |
||
20990 | file_magic_glob=$lt_file_magic_glob |
||
20991 | |||
20992 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
||
20993 | want_nocaseglob=$lt_want_nocaseglob |
||
20994 | |||
20995 | # Command to associate shared and link libraries. |
||
20996 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
||
20997 | |||
20998 | # The archiver. |
||
20999 | AR=$lt_AR |
||
21000 | |||
21001 | # Flags to create an archive. |
||
21002 | AR_FLAGS=$lt_AR_FLAGS |
||
21003 | |||
21004 | # How to feed a file listing to the archiver. |
||
21005 | archiver_list_spec=$lt_archiver_list_spec |
||
21006 | |||
21007 | # A symbol stripping program. |
||
21008 | STRIP=$lt_STRIP |
||
21009 | |||
21010 | # Commands used to install an old-style archive. |
||
21011 | RANLIB=$lt_RANLIB |
||
21012 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
21013 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
21014 | |||
21015 | # Whether to use a lock for old archive extraction. |
||
21016 | lock_old_archive_extraction=$lock_old_archive_extraction |
||
21017 | |||
21018 | # A C compiler. |
||
21019 | LTCC=$lt_CC |
||
21020 | |||
21021 | # LTCC compiler flags. |
||
21022 | LTCFLAGS=$lt_CFLAGS |
||
21023 | |||
21024 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
21025 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
21026 | |||
21027 | # Transform the output of nm in a proper C declaration. |
||
21028 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
21029 | |||
21030 | # Transform the output of nm into a list of symbols to manually relocate. |
||
21031 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
||
21032 | |||
21033 | # Transform the output of nm in a C name address pair. |
||
21034 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
21035 | |||
21036 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
||
21037 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
||
21038 | |||
21039 | # The name lister interface. |
||
21040 | nm_interface=$lt_lt_cv_nm_interface |
||
21041 | |||
21042 | # Specify filename containing input files for \$NM. |
||
21043 | nm_file_list_spec=$lt_nm_file_list_spec |
||
21044 | |||
21045 | # The root where to search for dependent libraries,and where our libraries should be installed. |
||
21046 | lt_sysroot=$lt_sysroot |
||
21047 | |||
21048 | # Command to truncate a binary pipe. |
||
21049 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
||
21050 | |||
21051 | # The name of the directory that contains temporary libtool files. |
||
21052 | objdir=$objdir |
||
21053 | |||
21054 | # Used to examine libraries when file_magic_cmd begins with "file". |
||
21055 | MAGIC_CMD=$MAGIC_CMD |
||
21056 | |||
21057 | # Must we lock files when doing compilation? |
||
21058 | need_locks=$lt_need_locks |
||
21059 | |||
21060 | # Manifest tool. |
||
21061 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
||
21062 | |||
21063 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
||
21064 | DSYMUTIL=$lt_DSYMUTIL |
||
21065 | |||
21066 | # Tool to change global to local symbols on Mac OS X. |
||
21067 | NMEDIT=$lt_NMEDIT |
||
21068 | |||
21069 | # Tool to manipulate fat objects and archives on Mac OS X. |
||
21070 | LIPO=$lt_LIPO |
||
21071 | |||
21072 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
||
21073 | OTOOL=$lt_OTOOL |
||
21074 | |||
21075 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
||
21076 | OTOOL64=$lt_OTOOL64 |
||
21077 | |||
21078 | # Old archive suffix (normally "a"). |
||
21079 | libext=$libext |
||
21080 | |||
21081 | # Shared library suffix (normally ".so"). |
||
21082 | shrext_cmds=$lt_shrext_cmds |
||
21083 | |||
21084 | # The commands to extract the exported symbol list from a shared archive. |
||
21085 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
21086 | |||
21087 | # Variables whose values should be saved in libtool wrapper scripts and |
||
21088 | # restored at link time. |
||
21089 | variables_saved_for_relink=$lt_variables_saved_for_relink |
||
21090 | |||
21091 | # Do we need the "lib" prefix for modules? |
||
21092 | need_lib_prefix=$need_lib_prefix |
||
21093 | |||
21094 | # Do we need a version for libraries? |
||
21095 | need_version=$need_version |
||
21096 | |||
21097 | # Library versioning type. |
||
21098 | version_type=$version_type |
||
21099 | |||
21100 | # Shared library runtime path variable. |
||
21101 | runpath_var=$runpath_var |
||
21102 | |||
21103 | # Shared library path variable. |
||
21104 | shlibpath_var=$shlibpath_var |
||
21105 | |||
21106 | # Is shlibpath searched before the hard-coded library search path? |
||
21107 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
21108 | |||
21109 | # Format of library name prefix. |
||
21110 | libname_spec=$lt_libname_spec |
||
21111 | |||
21112 | # List of archive names. First name is the real one, the rest are links. |
||
21113 | # The last name is the one that the linker finds with -lNAME |
||
21114 | library_names_spec=$lt_library_names_spec |
||
21115 | |||
21116 | # The coded name of the library, if different from the real name. |
||
21117 | soname_spec=$lt_soname_spec |
||
21118 | |||
21119 | # Permission mode override for installation of shared libraries. |
||
21120 | install_override_mode=$lt_install_override_mode |
||
21121 | |||
21122 | # Command to use after installation of a shared archive. |
||
21123 | postinstall_cmds=$lt_postinstall_cmds |
||
21124 | |||
21125 | # Command to use after uninstallation of a shared archive. |
||
21126 | postuninstall_cmds=$lt_postuninstall_cmds |
||
21127 | |||
21128 | # Commands used to finish a libtool library installation in a directory. |
||
21129 | finish_cmds=$lt_finish_cmds |
||
21130 | |||
21131 | # As "finish_cmds", except a single script fragment to be evaled but |
||
21132 | # not shown. |
||
21133 | finish_eval=$lt_finish_eval |
||
21134 | |||
21135 | # Whether we should hardcode library paths into libraries. |
||
21136 | hardcode_into_libs=$hardcode_into_libs |
||
21137 | |||
21138 | # Compile-time system search path for libraries. |
||
21139 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
21140 | |||
21141 | # Detected run-time system search path for libraries. |
||
21142 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
||
21143 | |||
21144 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
||
21145 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
||
21146 | |||
21147 | # Whether dlopen is supported. |
||
21148 | dlopen_support=$enable_dlopen |
||
21149 | |||
21150 | # Whether dlopen of programs is supported. |
||
21151 | dlopen_self=$enable_dlopen_self |
||
21152 | |||
21153 | # Whether dlopen of statically linked programs is supported. |
||
21154 | dlopen_self_static=$enable_dlopen_self_static |
||
21155 | |||
21156 | # Commands to strip libraries. |
||
21157 | old_striplib=$lt_old_striplib |
||
21158 | striplib=$lt_striplib |
||
21159 | |||
21160 | |||
21161 | # The linker used to build libraries. |
||
21162 | LD=$lt_LD |
||
21163 | |||
21164 | # How to create reloadable object files. |
||
21165 | reload_flag=$lt_reload_flag |
||
21166 | reload_cmds=$lt_reload_cmds |
||
21167 | |||
21168 | # Commands used to build an old-style archive. |
||
21169 | old_archive_cmds=$lt_old_archive_cmds |
||
21170 | |||
21171 | # A language specific compiler. |
||
21172 | CC=$lt_compiler |
||
21173 | |||
21174 | # Is the compiler the GNU compiler? |
||
21175 | with_gcc=$GCC |
||
21176 | |||
21177 | # Compiler flag to turn off builtin functions. |
||
21178 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
||
21179 | |||
21180 | # Additional compiler flags for building library objects. |
||
21181 | pic_flag=$lt_lt_prog_compiler_pic |
||
21182 | |||
21183 | # How to pass a linker flag through the compiler. |
||
21184 | wl=$lt_lt_prog_compiler_wl |
||
21185 | |||
21186 | # Compiler flag to prevent dynamic linking. |
||
21187 | link_static_flag=$lt_lt_prog_compiler_static |
||
21188 | |||
21189 | # Does compiler simultaneously support -c and -o options? |
||
21190 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
||
21191 | |||
21192 | # Whether or not to add -lc for building shared libraries. |
||
21193 | build_libtool_need_lc=$archive_cmds_need_lc |
||
21194 | |||
21195 | # Whether or not to disallow shared libs when runtime libs are static. |
||
21196 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
||
21197 | |||
21198 | # Compiler flag to allow reflexive dlopens. |
||
21199 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
||
21200 | |||
21201 | # Compiler flag to generate shared objects directly from archives. |
||
21202 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
||
21203 | |||
21204 | # Whether the compiler copes with passing no objects directly. |
||
21205 | compiler_needs_object=$lt_compiler_needs_object |
||
21206 | |||
21207 | # Create an old-style archive from a shared archive. |
||
21208 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
||
21209 | |||
21210 | # Create a temporary old-style archive to link instead of a shared archive. |
||
21211 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
||
21212 | |||
21213 | # Commands used to build a shared archive. |
||
21214 | archive_cmds=$lt_archive_cmds |
||
21215 | archive_expsym_cmds=$lt_archive_expsym_cmds |
||
21216 | |||
21217 | # Commands used to build a loadable module if different from building |
||
21218 | # a shared archive. |
||
21219 | module_cmds=$lt_module_cmds |
||
21220 | module_expsym_cmds=$lt_module_expsym_cmds |
||
21221 | |||
21222 | # Whether we are building with GNU ld or not. |
||
21223 | with_gnu_ld=$lt_with_gnu_ld |
||
21224 | |||
21225 | # Flag that allows shared libraries with undefined symbols to be built. |
||
21226 | allow_undefined_flag=$lt_allow_undefined_flag |
||
21227 | |||
21228 | # Flag that enforces no undefined symbols. |
||
21229 | no_undefined_flag=$lt_no_undefined_flag |
||
21230 | |||
21231 | # Flag to hardcode \$libdir into a binary during linking. |
||
21232 | # This must work even if \$libdir does not exist |
||
21233 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
||
21234 | |||
21235 | # Whether we need a single "-rpath" flag with a separated argument. |
||
21236 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
||
21237 | |||
21238 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
21239 | # DIR into the resulting binary. |
||
21240 | hardcode_direct=$hardcode_direct |
||
21241 | |||
21242 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
21243 | # DIR into the resulting binary and the resulting library dependency is |
||
21244 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
||
21245 | # library is relocated. |
||
21246 | hardcode_direct_absolute=$hardcode_direct_absolute |
||
21247 | |||
21248 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
||
21249 | # into the resulting binary. |
||
21250 | hardcode_minus_L=$hardcode_minus_L |
||
21251 | |||
21252 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
||
21253 | # into the resulting binary. |
||
21254 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
||
21255 | |||
21256 | # Set to "yes" if building a shared library automatically hardcodes DIR |
||
21257 | # into the library and all subsequent libraries and executables linked |
||
21258 | # against it. |
||
21259 | hardcode_automatic=$hardcode_automatic |
||
21260 | |||
21261 | # Set to yes if linker adds runtime paths of dependent libraries |
||
21262 | # to runtime path list. |
||
21263 | inherit_rpath=$inherit_rpath |
||
21264 | |||
21265 | # Whether libtool must link a program against all its dependency libraries. |
||
21266 | link_all_deplibs=$link_all_deplibs |
||
21267 | |||
21268 | # Set to "yes" if exported symbols are required. |
||
21269 | always_export_symbols=$always_export_symbols |
||
21270 | |||
21271 | # The commands to list exported symbols. |
||
21272 | export_symbols_cmds=$lt_export_symbols_cmds |
||
21273 | |||
21274 | # Symbols that should not be listed in the preloaded symbols. |
||
21275 | exclude_expsyms=$lt_exclude_expsyms |
||
21276 | |||
21277 | # Symbols that must always be exported. |
||
21278 | include_expsyms=$lt_include_expsyms |
||
21279 | |||
21280 | # Commands necessary for linking programs (against libraries) with templates. |
||
21281 | prelink_cmds=$lt_prelink_cmds |
||
21282 | |||
21283 | # Commands necessary for finishing linking programs. |
||
21284 | postlink_cmds=$lt_postlink_cmds |
||
21285 | |||
21286 | # Specify filename containing input files. |
||
21287 | file_list_spec=$lt_file_list_spec |
||
21288 | |||
21289 | # How to hardcode a shared library path into an executable. |
||
21290 | hardcode_action=$hardcode_action |
||
21291 | |||
21292 | # The directories searched by this compiler when creating a shared library. |
||
21293 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
||
21294 | |||
21295 | # Dependencies to place before and after the objects being linked to |
||
21296 | # create a shared library. |
||
21297 | predep_objects=$lt_predep_objects |
||
21298 | postdep_objects=$lt_postdep_objects |
||
21299 | predeps=$lt_predeps |
||
21300 | postdeps=$lt_postdeps |
||
21301 | |||
21302 | # The library search path used internally by the compiler when linking |
||
21303 | # a shared library. |
||
21304 | compiler_lib_search_path=$lt_compiler_lib_search_path |
||
21305 | |||
21306 | # ### END LIBTOOL CONFIG |
||
21307 | |||
21308 | _LT_EOF |
||
21309 | |||
21310 | cat <<'_LT_EOF' >> "$cfgfile" |
||
21311 | |||
21312 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
||
21313 | |||
21314 | # func_munge_path_list VARIABLE PATH |
||
21315 | # ----------------------------------- |
||
21316 | # VARIABLE is name of variable containing _space_ separated list of |
||
21317 | # directories to be munged by the contents of PATH, which is string |
||
21318 | # having a format: |
||
21319 | # "DIR[:DIR]:" |
||
21320 | # string "DIR[ DIR]" will be prepended to VARIABLE |
||
21321 | # ":DIR[:DIR]" |
||
21322 | # string "DIR[ DIR]" will be appended to VARIABLE |
||
21323 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
||
21324 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
||
21325 | # "DIRA[ DIRA]" will be appended to VARIABLE |
||
21326 | # "DIR[:DIR]" |
||
21327 | # VARIABLE will be replaced by "DIR[ DIR]" |
||
21328 | func_munge_path_list () |
||
21329 | { |
||
21330 | case x$2 in |
||
21331 | x) |
||
21332 | ;; |
||
21333 | *:) |
||
21334 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
||
21335 | ;; |
||
21336 | x:*) |
||
21337 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
||
21338 | ;; |
||
21339 | *::*) |
||
21340 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
||
21341 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
||
21342 | ;; |
||
21343 | *) |
||
21344 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
||
21345 | ;; |
||
21346 | esac |
||
21347 | } |
||
21348 | |||
21349 | |||
21350 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
||
21351 | func_cc_basename () |
||
21352 | { |
||
21353 | for cc_temp in $*""; do |
||
21354 | case $cc_temp in |
||
21355 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
21356 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
21357 | \-*) ;; |
||
21358 | *) break;; |
||
21359 | esac |
||
21360 | done |
||
21361 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
||
21362 | } |
||
21363 | |||
21364 | |||
21365 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
||
21366 | |||
21367 | _LT_EOF |
||
21368 | |||
21369 | case $host_os in |
||
21370 | aix3*) |
||
21371 | cat <<\_LT_EOF >> "$cfgfile" |
||
21372 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
21373 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
21374 | # vanish in a puff of smoke. |
||
21375 | if test set != "${COLLECT_NAMES+set}"; then |
||
21376 | COLLECT_NAMES= |
||
21377 | export COLLECT_NAMES |
||
21378 | fi |
||
21379 | _LT_EOF |
||
21380 | ;; |
||
21381 | esac |
||
21382 | |||
21383 | |||
21384 | ltmain=$ac_aux_dir/ltmain.sh |
||
21385 | |||
21386 | |||
21387 | # We use sed instead of cat because bash on DJGPP gets confused if |
||
21388 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
||
21389 | # text mode, it properly converts lines to CR/LF. This bash problem |
||
21390 | # is reportedly fixed, but why not run on old versions too? |
||
21391 | sed '$q' "$ltmain" >> "$cfgfile" \ |
||
21392 | || (rm -f "$cfgfile"; exit 1) |
||
21393 | |||
21394 | mv -f "$cfgfile" "$ofile" || |
||
21395 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
||
21396 | chmod +x "$ofile" |
||
21397 | |||
21398 | |||
21399 | cat <<_LT_EOF >> "$ofile" |
||
21400 | |||
21401 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
||
21402 | |||
21403 | # The linker used to build libraries. |
||
21404 | LD=$lt_LD_CXX |
||
21405 | |||
21406 | # How to create reloadable object files. |
||
21407 | reload_flag=$lt_reload_flag_CXX |
||
21408 | reload_cmds=$lt_reload_cmds_CXX |
||
21409 | |||
21410 | # Commands used to build an old-style archive. |
||
21411 | old_archive_cmds=$lt_old_archive_cmds_CXX |
||
21412 | |||
21413 | # A language specific compiler. |
||
21414 | CC=$lt_compiler_CXX |
||
21415 | |||
21416 | # Is the compiler the GNU compiler? |
||
21417 | with_gcc=$GCC_CXX |
||
21418 | |||
21419 | # Compiler flag to turn off builtin functions. |
||
21420 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
||
21421 | |||
21422 | # Additional compiler flags for building library objects. |
||
21423 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
||
21424 | |||
21425 | # How to pass a linker flag through the compiler. |
||
21426 | wl=$lt_lt_prog_compiler_wl_CXX |
||
21427 | |||
21428 | # Compiler flag to prevent dynamic linking. |
||
21429 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
||
21430 | |||
21431 | # Does compiler simultaneously support -c and -o options? |
||
21432 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
||
21433 | |||
21434 | # Whether or not to add -lc for building shared libraries. |
||
21435 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
||
21436 | |||
21437 | # Whether or not to disallow shared libs when runtime libs are static. |
||
21438 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
||
21439 | |||
21440 | # Compiler flag to allow reflexive dlopens. |
||
21441 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
||
21442 | |||
21443 | # Compiler flag to generate shared objects directly from archives. |
||
21444 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
||
21445 | |||
21446 | # Whether the compiler copes with passing no objects directly. |
||
21447 | compiler_needs_object=$lt_compiler_needs_object_CXX |
||
21448 | |||
21449 | # Create an old-style archive from a shared archive. |
||
21450 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
||
21451 | |||
21452 | # Create a temporary old-style archive to link instead of a shared archive. |
||
21453 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
||
21454 | |||
21455 | # Commands used to build a shared archive. |
||
21456 | archive_cmds=$lt_archive_cmds_CXX |
||
21457 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
||
21458 | |||
21459 | # Commands used to build a loadable module if different from building |
||
21460 | # a shared archive. |
||
21461 | module_cmds=$lt_module_cmds_CXX |
||
21462 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
||
21463 | |||
21464 | # Whether we are building with GNU ld or not. |
||
21465 | with_gnu_ld=$lt_with_gnu_ld_CXX |
||
21466 | |||
21467 | # Flag that allows shared libraries with undefined symbols to be built. |
||
21468 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
||
21469 | |||
21470 | # Flag that enforces no undefined symbols. |
||
21471 | no_undefined_flag=$lt_no_undefined_flag_CXX |
||
21472 | |||
21473 | # Flag to hardcode \$libdir into a binary during linking. |
||
21474 | # This must work even if \$libdir does not exist |
||
21475 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
||
21476 | |||
21477 | # Whether we need a single "-rpath" flag with a separated argument. |
||
21478 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
||
21479 | |||
21480 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
21481 | # DIR into the resulting binary. |
||
21482 | hardcode_direct=$hardcode_direct_CXX |
||
21483 | |||
21484 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
21485 | # DIR into the resulting binary and the resulting library dependency is |
||
21486 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
||
21487 | # library is relocated. |
||
21488 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
||
21489 | |||
21490 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
||
21491 | # into the resulting binary. |
||
21492 | hardcode_minus_L=$hardcode_minus_L_CXX |
||
21493 | |||
21494 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
||
21495 | # into the resulting binary. |
||
21496 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
||
21497 | |||
21498 | # Set to "yes" if building a shared library automatically hardcodes DIR |
||
21499 | # into the library and all subsequent libraries and executables linked |
||
21500 | # against it. |
||
21501 | hardcode_automatic=$hardcode_automatic_CXX |
||
21502 | |||
21503 | # Set to yes if linker adds runtime paths of dependent libraries |
||
21504 | # to runtime path list. |
||
21505 | inherit_rpath=$inherit_rpath_CXX |
||
21506 | |||
21507 | # Whether libtool must link a program against all its dependency libraries. |
||
21508 | link_all_deplibs=$link_all_deplibs_CXX |
||
21509 | |||
21510 | # Set to "yes" if exported symbols are required. |
||
21511 | always_export_symbols=$always_export_symbols_CXX |
||
21512 | |||
21513 | # The commands to list exported symbols. |
||
21514 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
||
21515 | |||
21516 | # Symbols that should not be listed in the preloaded symbols. |
||
21517 | exclude_expsyms=$lt_exclude_expsyms_CXX |
||
21518 | |||
21519 | # Symbols that must always be exported. |
||
21520 | include_expsyms=$lt_include_expsyms_CXX |
||
21521 | |||
21522 | # Commands necessary for linking programs (against libraries) with templates. |
||
21523 | prelink_cmds=$lt_prelink_cmds_CXX |
||
21524 | |||
21525 | # Commands necessary for finishing linking programs. |
||
21526 | postlink_cmds=$lt_postlink_cmds_CXX |
||
21527 | |||
21528 | # Specify filename containing input files. |
||
21529 | file_list_spec=$lt_file_list_spec_CXX |
||
21530 | |||
21531 | # How to hardcode a shared library path into an executable. |
||
21532 | hardcode_action=$hardcode_action_CXX |
||
21533 | |||
21534 | # The directories searched by this compiler when creating a shared library. |
||
21535 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
||
21536 | |||
21537 | # Dependencies to place before and after the objects being linked to |
||
21538 | # create a shared library. |
||
21539 | predep_objects=$lt_predep_objects_CXX |
||
21540 | postdep_objects=$lt_postdep_objects_CXX |
||
21541 | predeps=$lt_predeps_CXX |
||
21542 | postdeps=$lt_postdeps_CXX |
||
21543 | |||
21544 | # The library search path used internally by the compiler when linking |
||
21545 | # a shared library. |
||
21546 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
||
21547 | |||
21548 | # ### END LIBTOOL TAG CONFIG: CXX |
||
21549 | _LT_EOF |
||
21550 | |||
21551 | |||
21552 | as_fn_exit 0 |
||
21553 | _LTEOF |
||
21554 | chmod +x "$CONFIG_LT" |
||
21555 | |||
21556 | # configure is writing to config.log, but config.lt does its own redirection, |
||
21557 | # appending to config.log, which fails on DOS, as config.log is still kept |
||
21558 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
||
21559 | # config.log, so it can be properly (re)opened and appended to by config.lt. |
||
21560 | lt_cl_success=: |
||
21561 | test yes = "$silent" && |
||
21562 | lt_config_lt_args="$lt_config_lt_args --quiet" |
||
21563 | exec 5>/dev/null |
||
21564 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
||
21565 | exec 5>>config.log |
||
21566 | $lt_cl_success || as_fn_exit 1 |
||
21567 | |||
21568 | |||
21569 | |||
21570 | if test "$glib_native_win32" = "yes"; then : |
||
21571 | |||
21572 | if test x$enable_static = xyes -a x$enable_shared = xyes; then |
||
21573 | as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5 |
||
21574 | fi |
||
21575 | if test x$enable_static = xyes; then |
||
21576 | glib_win32_static_compilation=yes |
||
21577 | GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1 |
||
21578 | #define GOBJECT_STATIC_COMPILATION 1" |
||
21579 | |||
21580 | fi |
||
21581 | |||
21582 | fi |
||
21583 | if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then |
||
21584 | OS_WIN32_AND_DLL_COMPILATION_TRUE= |
||
21585 | OS_WIN32_AND_DLL_COMPILATION_FALSE='#' |
||
21586 | else |
||
21587 | OS_WIN32_AND_DLL_COMPILATION_TRUE='#' |
||
21588 | OS_WIN32_AND_DLL_COMPILATION_FALSE= |
||
21589 | fi |
||
21590 | |||
21591 | |||
21592 | # Checks for library functions. |
||
21593 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
||
21594 | if test "x$ac_cv_type_size_t" = xyes; then : |
||
21595 | |||
21596 | else |
||
21597 | |||
21598 | cat >>confdefs.h <<_ACEOF |
||
21599 | #define size_t unsigned int |
||
21600 | _ACEOF |
||
21601 | |||
21602 | fi |
||
21603 | |||
21604 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
||
21605 | # for constant arguments. Useless! |
||
21606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
||
21607 | $as_echo_n "checking for working alloca.h... " >&6; } |
||
21608 | if ${ac_cv_working_alloca_h+:} false; then : |
||
21609 | $as_echo_n "(cached) " >&6 |
||
21610 | else |
||
21611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
21612 | /* end confdefs.h. */ |
||
21613 | #include <alloca.h> |
||
21614 | int |
||
21615 | main () |
||
21616 | { |
||
21617 | char *p = (char *) alloca (2 * sizeof (int)); |
||
21618 | if (p) return 0; |
||
21619 | ; |
||
21620 | return 0; |
||
21621 | } |
||
21622 | _ACEOF |
||
21623 | if ac_fn_c_try_link "$LINENO"; then : |
||
21624 | ac_cv_working_alloca_h=yes |
||
21625 | else |
||
21626 | ac_cv_working_alloca_h=no |
||
21627 | fi |
||
21628 | rm -f core conftest.err conftest.$ac_objext \ |
||
21629 | conftest$ac_exeext conftest.$ac_ext |
||
21630 | fi |
||
21631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
||
21632 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
||
21633 | if test $ac_cv_working_alloca_h = yes; then |
||
21634 | |||
21635 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
||
21636 | |||
21637 | fi |
||
21638 | |||
21639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
||
21640 | $as_echo_n "checking for alloca... " >&6; } |
||
21641 | if ${ac_cv_func_alloca_works+:} false; then : |
||
21642 | $as_echo_n "(cached) " >&6 |
||
21643 | else |
||
21644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
21645 | /* end confdefs.h. */ |
||
21646 | #ifdef __GNUC__ |
||
21647 | # define alloca __builtin_alloca |
||
21648 | #else |
||
21649 | # ifdef _MSC_VER |
||
21650 | # include <malloc.h> |
||
21651 | # define alloca _alloca |
||
21652 | # else |
||
21653 | # ifdef HAVE_ALLOCA_H |
||
21654 | # include <alloca.h> |
||
21655 | # else |
||
21656 | # ifdef _AIX |
||
21657 | #pragma alloca |
||
21658 | # else |
||
21659 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
||
21660 | void *alloca (size_t); |
||
21661 | # endif |
||
21662 | # endif |
||
21663 | # endif |
||
21664 | # endif |
||
21665 | #endif |
||
21666 | |||
21667 | int |
||
21668 | main () |
||
21669 | { |
||
21670 | char *p = (char *) alloca (1); |
||
21671 | if (p) return 0; |
||
21672 | ; |
||
21673 | return 0; |
||
21674 | } |
||
21675 | _ACEOF |
||
21676 | if ac_fn_c_try_link "$LINENO"; then : |
||
21677 | ac_cv_func_alloca_works=yes |
||
21678 | else |
||
21679 | ac_cv_func_alloca_works=no |
||
21680 | fi |
||
21681 | rm -f core conftest.err conftest.$ac_objext \ |
||
21682 | conftest$ac_exeext conftest.$ac_ext |
||
21683 | fi |
||
21684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
||
21685 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
||
21686 | |||
21687 | if test $ac_cv_func_alloca_works = yes; then |
||
21688 | |||
21689 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
||
21690 | |||
21691 | else |
||
21692 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
||
21693 | # that cause trouble. Some versions do not even contain alloca or |
||
21694 | # contain a buggy version. If you still want to use their alloca, |
||
21695 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
||
21696 | |||
21697 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
||
21698 | |||
21699 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
||
21700 | |||
21701 | |||
21702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
||
21703 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
||
21704 | if ${ac_cv_os_cray+:} false; then : |
||
21705 | $as_echo_n "(cached) " >&6 |
||
21706 | else |
||
21707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
21708 | /* end confdefs.h. */ |
||
21709 | #if defined CRAY && ! defined CRAY2 |
||
21710 | webecray |
||
21711 | #else |
||
21712 | wenotbecray |
||
21713 | #endif |
||
21714 | |||
21715 | _ACEOF |
||
21716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
21717 | $EGREP "webecray" >/dev/null 2>&1; then : |
||
21718 | ac_cv_os_cray=yes |
||
21719 | else |
||
21720 | ac_cv_os_cray=no |
||
21721 | fi |
||
21722 | rm -f conftest* |
||
21723 | |||
21724 | fi |
||
21725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
||
21726 | $as_echo "$ac_cv_os_cray" >&6; } |
||
21727 | if test $ac_cv_os_cray = yes; then |
||
21728 | for ac_func in _getb67 GETB67 getb67; do |
||
21729 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
21730 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
21731 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
21732 | |||
21733 | cat >>confdefs.h <<_ACEOF |
||
21734 | #define CRAY_STACKSEG_END $ac_func |
||
21735 | _ACEOF |
||
21736 | |||
21737 | break |
||
21738 | fi |
||
21739 | |||
21740 | done |
||
21741 | fi |
||
21742 | |||
21743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
||
21744 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
||
21745 | if ${ac_cv_c_stack_direction+:} false; then : |
||
21746 | $as_echo_n "(cached) " >&6 |
||
21747 | else |
||
21748 | if test "$cross_compiling" = yes; then : |
||
21749 | ac_cv_c_stack_direction=0 |
||
21750 | else |
||
21751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
21752 | /* end confdefs.h. */ |
||
21753 | $ac_includes_default |
||
21754 | int |
||
21755 | find_stack_direction (int *addr, int depth) |
||
21756 | { |
||
21757 | int dir, dummy = 0; |
||
21758 | if (! addr) |
||
21759 | addr = &dummy; |
||
21760 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
||
21761 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
||
21762 | return dir + dummy; |
||
21763 | } |
||
21764 | |||
21765 | int |
||
21766 | main (int argc, char **argv) |
||
21767 | { |
||
21768 | return find_stack_direction (0, argc + !argv + 20) < 0; |
||
21769 | } |
||
21770 | _ACEOF |
||
21771 | if ac_fn_c_try_run "$LINENO"; then : |
||
21772 | ac_cv_c_stack_direction=1 |
||
21773 | else |
||
21774 | ac_cv_c_stack_direction=-1 |
||
21775 | fi |
||
21776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
21777 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
21778 | fi |
||
21779 | |||
21780 | fi |
||
21781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
||
21782 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
||
21783 | cat >>confdefs.h <<_ACEOF |
||
21784 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
||
21785 | _ACEOF |
||
21786 | |||
21787 | |||
21788 | fi |
||
21789 | |||
21790 | for ac_func in mmap posix_memalign memalign valloc fsync pipe2 issetugid |
||
21791 | do : |
||
21792 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
21793 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
21794 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
21795 | cat >>confdefs.h <<_ACEOF |
||
21796 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
21797 | _ACEOF |
||
21798 | |||
21799 | fi |
||
21800 | done |
||
21801 | |||
21802 | for ac_func in timegm gmtime_r strerror_r |
||
21803 | do : |
||
21804 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
21805 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
21806 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
21807 | cat >>confdefs.h <<_ACEOF |
||
21808 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
21809 | _ACEOF |
||
21810 | |||
21811 | fi |
||
21812 | done |
||
21813 | |||
21814 | |||
21815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __libc_enable_secure" >&5 |
||
21816 | $as_echo_n "checking for __libc_enable_secure... " >&6; } |
||
21817 | if ${glib_cv_have_libc_enable_secure+:} false; then : |
||
21818 | $as_echo_n "(cached) " >&6 |
||
21819 | else |
||
21820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
21821 | /* end confdefs.h. */ |
||
21822 | #include <unistd.h> |
||
21823 | extern int __libc_enable_secure; |
||
21824 | int |
||
21825 | main () |
||
21826 | { |
||
21827 | return __libc_enable_secure; |
||
21828 | ; |
||
21829 | return 0; |
||
21830 | } |
||
21831 | _ACEOF |
||
21832 | if ac_fn_c_try_link "$LINENO"; then : |
||
21833 | glib_cv_have_libc_enable_secure=yes |
||
21834 | else |
||
21835 | glib_cv_have_libc_enable_secure=no |
||
21836 | fi |
||
21837 | rm -f core conftest.err conftest.$ac_objext \ |
||
21838 | conftest$ac_exeext conftest.$ac_ext |
||
21839 | fi |
||
21840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_libc_enable_secure" >&5 |
||
21841 | $as_echo "$glib_cv_have_libc_enable_secure" >&6; } |
||
21842 | if test x$glib_cv_have_libc_enable_secure = xyes; then : |
||
21843 | |||
21844 | |||
21845 | $as_echo "#define HAVE_LIBC_ENABLE_SECURE 1" >>confdefs.h |
||
21846 | |||
21847 | |||
21848 | fi |
||
21849 | |||
21850 | # The cast to long int works around a bug in the HP C Compiler |
||
21851 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
21852 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
21853 | # This bug is HP SR number 8606223364. |
||
21854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 |
||
21855 | $as_echo_n "checking size of char... " >&6; } |
||
21856 | if ${ac_cv_sizeof_char+:} false; then : |
||
21857 | $as_echo_n "(cached) " >&6 |
||
21858 | else |
||
21859 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
||
21860 | |||
21861 | else |
||
21862 | if test "$ac_cv_type_char" = yes; then |
||
21863 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
21864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
21865 | as_fn_error 77 "cannot compute sizeof (char) |
||
21866 | See \`config.log' for more details" "$LINENO" 5; } |
||
21867 | else |
||
21868 | ac_cv_sizeof_char=0 |
||
21869 | fi |
||
21870 | fi |
||
21871 | |||
21872 | fi |
||
21873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 |
||
21874 | $as_echo "$ac_cv_sizeof_char" >&6; } |
||
21875 | |||
21876 | |||
21877 | |||
21878 | cat >>confdefs.h <<_ACEOF |
||
21879 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
||
21880 | _ACEOF |
||
21881 | |||
21882 | |||
21883 | # The cast to long int works around a bug in the HP C Compiler |
||
21884 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
21885 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
21886 | # This bug is HP SR number 8606223364. |
||
21887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
||
21888 | $as_echo_n "checking size of short... " >&6; } |
||
21889 | if ${ac_cv_sizeof_short+:} false; then : |
||
21890 | $as_echo_n "(cached) " >&6 |
||
21891 | else |
||
21892 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
||
21893 | |||
21894 | else |
||
21895 | if test "$ac_cv_type_short" = yes; then |
||
21896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
21897 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
21898 | as_fn_error 77 "cannot compute sizeof (short) |
||
21899 | See \`config.log' for more details" "$LINENO" 5; } |
||
21900 | else |
||
21901 | ac_cv_sizeof_short=0 |
||
21902 | fi |
||
21903 | fi |
||
21904 | |||
21905 | fi |
||
21906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
||
21907 | $as_echo "$ac_cv_sizeof_short" >&6; } |
||
21908 | |||
21909 | |||
21910 | |||
21911 | cat >>confdefs.h <<_ACEOF |
||
21912 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
||
21913 | _ACEOF |
||
21914 | |||
21915 | |||
21916 | # The cast to long int works around a bug in the HP C Compiler |
||
21917 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
21918 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
21919 | # This bug is HP SR number 8606223364. |
||
21920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
||
21921 | $as_echo_n "checking size of long... " >&6; } |
||
21922 | if ${ac_cv_sizeof_long+:} false; then : |
||
21923 | $as_echo_n "(cached) " >&6 |
||
21924 | else |
||
21925 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
||
21926 | |||
21927 | else |
||
21928 | if test "$ac_cv_type_long" = yes; then |
||
21929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
21930 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
21931 | as_fn_error 77 "cannot compute sizeof (long) |
||
21932 | See \`config.log' for more details" "$LINENO" 5; } |
||
21933 | else |
||
21934 | ac_cv_sizeof_long=0 |
||
21935 | fi |
||
21936 | fi |
||
21937 | |||
21938 | fi |
||
21939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
||
21940 | $as_echo "$ac_cv_sizeof_long" >&6; } |
||
21941 | |||
21942 | |||
21943 | |||
21944 | cat >>confdefs.h <<_ACEOF |
||
21945 | #define SIZEOF_LONG $ac_cv_sizeof_long |
||
21946 | _ACEOF |
||
21947 | |||
21948 | |||
21949 | # The cast to long int works around a bug in the HP C Compiler |
||
21950 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
21951 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
21952 | # This bug is HP SR number 8606223364. |
||
21953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
||
21954 | $as_echo_n "checking size of int... " >&6; } |
||
21955 | if ${ac_cv_sizeof_int+:} false; then : |
||
21956 | $as_echo_n "(cached) " >&6 |
||
21957 | else |
||
21958 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
||
21959 | |||
21960 | else |
||
21961 | if test "$ac_cv_type_int" = yes; then |
||
21962 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
21963 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
21964 | as_fn_error 77 "cannot compute sizeof (int) |
||
21965 | See \`config.log' for more details" "$LINENO" 5; } |
||
21966 | else |
||
21967 | ac_cv_sizeof_int=0 |
||
21968 | fi |
||
21969 | fi |
||
21970 | |||
21971 | fi |
||
21972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
||
21973 | $as_echo "$ac_cv_sizeof_int" >&6; } |
||
21974 | |||
21975 | |||
21976 | |||
21977 | cat >>confdefs.h <<_ACEOF |
||
21978 | #define SIZEOF_INT $ac_cv_sizeof_int |
||
21979 | _ACEOF |
||
21980 | |||
21981 | |||
21982 | # The cast to long int works around a bug in the HP C Compiler |
||
21983 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
21984 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
21985 | # This bug is HP SR number 8606223364. |
||
21986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
||
21987 | $as_echo_n "checking size of void *... " >&6; } |
||
21988 | if ${ac_cv_sizeof_void_p+:} false; then : |
||
21989 | $as_echo_n "(cached) " >&6 |
||
21990 | else |
||
21991 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
||
21992 | |||
21993 | else |
||
21994 | if test "$ac_cv_type_void_p" = yes; then |
||
21995 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
21996 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
21997 | as_fn_error 77 "cannot compute sizeof (void *) |
||
21998 | See \`config.log' for more details" "$LINENO" 5; } |
||
21999 | else |
||
22000 | ac_cv_sizeof_void_p=0 |
||
22001 | fi |
||
22002 | fi |
||
22003 | |||
22004 | fi |
||
22005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
||
22006 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
||
22007 | |||
22008 | |||
22009 | |||
22010 | cat >>confdefs.h <<_ACEOF |
||
22011 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
||
22012 | _ACEOF |
||
22013 | |||
22014 | |||
22015 | # The cast to long int works around a bug in the HP C Compiler |
||
22016 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
22017 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
22018 | # This bug is HP SR number 8606223364. |
||
22019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
||
22020 | $as_echo_n "checking size of long long... " >&6; } |
||
22021 | if ${ac_cv_sizeof_long_long+:} false; then : |
||
22022 | $as_echo_n "(cached) " >&6 |
||
22023 | else |
||
22024 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
||
22025 | |||
22026 | else |
||
22027 | if test "$ac_cv_type_long_long" = yes; then |
||
22028 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
22029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
22030 | as_fn_error 77 "cannot compute sizeof (long long) |
||
22031 | See \`config.log' for more details" "$LINENO" 5; } |
||
22032 | else |
||
22033 | ac_cv_sizeof_long_long=0 |
||
22034 | fi |
||
22035 | fi |
||
22036 | |||
22037 | fi |
||
22038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
||
22039 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
||
22040 | |||
22041 | |||
22042 | |||
22043 | cat >>confdefs.h <<_ACEOF |
||
22044 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
||
22045 | _ACEOF |
||
22046 | |||
22047 | |||
22048 | # The cast to long int works around a bug in the HP C Compiler |
||
22049 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
22050 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
22051 | # This bug is HP SR number 8606223364. |
||
22052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 |
||
22053 | $as_echo_n "checking size of __int64... " >&6; } |
||
22054 | if ${ac_cv_sizeof___int64+:} false; then : |
||
22055 | $as_echo_n "(cached) " >&6 |
||
22056 | else |
||
22057 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then : |
||
22058 | |||
22059 | else |
||
22060 | if test "$ac_cv_type___int64" = yes; then |
||
22061 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
22062 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
22063 | as_fn_error 77 "cannot compute sizeof (__int64) |
||
22064 | See \`config.log' for more details" "$LINENO" 5; } |
||
22065 | else |
||
22066 | ac_cv_sizeof___int64=0 |
||
22067 | fi |
||
22068 | fi |
||
22069 | |||
22070 | fi |
||
22071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 |
||
22072 | $as_echo "$ac_cv_sizeof___int64" >&6; } |
||
22073 | |||
22074 | |||
22075 | |||
22076 | cat >>confdefs.h <<_ACEOF |
||
22077 | #define SIZEOF___INT64 $ac_cv_sizeof___int64 |
||
22078 | _ACEOF |
||
22079 | |||
22080 | |||
22081 | |||
22082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 |
||
22083 | $as_echo_n "checking for sig_atomic_t... " >&6; } |
||
22084 | if ${ac_cv_type_sig_atomic_t+:} false; then : |
||
22085 | $as_echo_n "(cached) " >&6 |
||
22086 | else |
||
22087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22088 | /* end confdefs.h. */ |
||
22089 | #include <signal.h> |
||
22090 | #include <sys/types.h> |
||
22091 | sig_atomic_t val = 42; |
||
22092 | int |
||
22093 | main () |
||
22094 | { |
||
22095 | return val == 42 ? 0 : 1 |
||
22096 | ; |
||
22097 | return 0; |
||
22098 | } |
||
22099 | _ACEOF |
||
22100 | if ac_fn_c_try_link "$LINENO"; then : |
||
22101 | ac_cv_type_sig_atomic_t=yes |
||
22102 | else |
||
22103 | ac_cv_type_sig_atomic_t=no |
||
22104 | fi |
||
22105 | rm -f core conftest.err conftest.$ac_objext \ |
||
22106 | conftest$ac_exeext conftest.$ac_ext |
||
22107 | fi |
||
22108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 |
||
22109 | $as_echo "$ac_cv_type_sig_atomic_t" >&6; } |
||
22110 | if test x$ac_cv_type_sig_atomic_t = xyes; then |
||
22111 | |||
22112 | $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h |
||
22113 | |||
22114 | fi |
||
22115 | |||
22116 | if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then |
||
22117 | : |
||
22118 | else |
||
22119 | as_fn_error $? " |
||
22120 | *** GLib requires a 64 bit type. You might want to consider |
||
22121 | *** using the GNU C compiler. |
||
22122 | " "$LINENO" 5 |
||
22123 | fi |
||
22124 | |||
22125 | if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then : |
||
22126 | |||
22127 | # long long is a 64 bit integer. |
||
22128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5 |
||
22129 | $as_echo_n "checking for format to printf and scanf a guint64... " >&6; } |
||
22130 | if ${glib_cv_long_long_format+:} false; then : |
||
22131 | $as_echo_n "(cached) " >&6 |
||
22132 | else |
||
22133 | |||
22134 | for format in ll q I64; do |
||
22135 | if test "$cross_compiling" = yes; then : |
||
22136 | : |
||
22137 | else |
||
22138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22139 | /* end confdefs.h. */ |
||
22140 | #include <stdio.h> |
||
22141 | int main() |
||
22142 | { |
||
22143 | long long b, a = -0x3AFAFAFAFAFAFAFALL; |
||
22144 | char buffer[1000]; |
||
22145 | sprintf (buffer, "%${format}u", a); |
||
22146 | sscanf (buffer, "%${format}u", &b); |
||
22147 | exit (b!=a); |
||
22148 | } |
||
22149 | |||
22150 | _ACEOF |
||
22151 | if ac_fn_c_try_run "$LINENO"; then : |
||
22152 | glib_cv_long_long_format=${format} |
||
22153 | break |
||
22154 | fi |
||
22155 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
22156 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
22157 | fi |
||
22158 | |||
22159 | done |
||
22160 | fi |
||
22161 | |||
22162 | if test -n "$glib_cv_long_long_format"; then : |
||
22163 | |||
22164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5 |
||
22165 | $as_echo "%${glib_cv_long_long_format}u" >&6; } |
||
22166 | |||
22167 | $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h |
||
22168 | |||
22169 | if test x"$glib_cv_long_long_format" = xI64; then |
||
22170 | |||
22171 | $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h |
||
22172 | |||
22173 | fi |
||
22174 | |||
22175 | else |
||
22176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
||
22177 | $as_echo "none" >&6; } |
||
22178 | fi |
||
22179 | |||
22180 | elif test x$ac_cv_sizeof___int64 = x8; then : |
||
22181 | |||
22182 | # __int64 is a 64 bit integer. |
||
22183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5 |
||
22184 | $as_echo_n "checking for format to printf and scanf a guint64... " >&6; } |
||
22185 | # We know this is MSVCRT.DLL, and what the formats are |
||
22186 | glib_cv_long_long_format=I64 |
||
22187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5 |
||
22188 | $as_echo "%${glib_cv_long_long_format}u" >&6; } |
||
22189 | |||
22190 | $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h |
||
22191 | |||
22192 | |||
22193 | $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h |
||
22194 | |||
22195 | |||
22196 | fi |
||
22197 | |||
22198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
||
22199 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
||
22200 | if ${ac_cv_c_const+:} false; then : |
||
22201 | $as_echo_n "(cached) " >&6 |
||
22202 | else |
||
22203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22204 | /* end confdefs.h. */ |
||
22205 | |||
22206 | int |
||
22207 | main () |
||
22208 | { |
||
22209 | |||
22210 | #ifndef __cplusplus |
||
22211 | /* Ultrix mips cc rejects this sort of thing. */ |
||
22212 | typedef int charset[2]; |
||
22213 | const charset cs = { 0, 0 }; |
||
22214 | /* SunOS 4.1.1 cc rejects this. */ |
||
22215 | char const *const *pcpcc; |
||
22216 | char **ppc; |
||
22217 | /* NEC SVR4.0.2 mips cc rejects this. */ |
||
22218 | struct point {int x, y;}; |
||
22219 | static struct point const zero = {0,0}; |
||
22220 | /* AIX XL C 1.02.0.0 rejects this. |
||
22221 | It does not let you subtract one const X* pointer from another in |
||
22222 | an arm of an if-expression whose if-part is not a constant |
||
22223 | expression */ |
||
22224 | const char *g = "string"; |
||
22225 | pcpcc = &g + (g ? g-g : 0); |
||
22226 | /* HPUX 7.0 cc rejects these. */ |
||
22227 | ++pcpcc; |
||
22228 | ppc = (char**) pcpcc; |
||
22229 | pcpcc = (char const *const *) ppc; |
||
22230 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
||
22231 | char tx; |
||
22232 | char *t = &tx; |
||
22233 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
||
22234 | |||
22235 | *t++ = 0; |
||
22236 | if (s) return 0; |
||
22237 | } |
||
22238 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
||
22239 | int x[] = {25, 17}; |
||
22240 | const int *foo = &x[0]; |
||
22241 | ++foo; |
||
22242 | } |
||
22243 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
||
22244 | typedef const int *iptr; |
||
22245 | iptr p = 0; |
||
22246 | ++p; |
||
22247 | } |
||
22248 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
||
22249 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
||
22250 | struct s { int j; const int *ap[3]; } bx; |
||
22251 | struct s *b = &bx; b->j = 5; |
||
22252 | } |
||
22253 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
||
22254 | const int foo = 10; |
||
22255 | if (!foo) return 0; |
||
22256 | } |
||
22257 | return !cs[0] && !zero.x; |
||
22258 | #endif |
||
22259 | |||
22260 | ; |
||
22261 | return 0; |
||
22262 | } |
||
22263 | _ACEOF |
||
22264 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22265 | ac_cv_c_const=yes |
||
22266 | else |
||
22267 | ac_cv_c_const=no |
||
22268 | fi |
||
22269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22270 | fi |
||
22271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
||
22272 | $as_echo "$ac_cv_c_const" >&6; } |
||
22273 | if test $ac_cv_c_const = no; then |
||
22274 | |||
22275 | $as_echo "#define const /**/" >>confdefs.h |
||
22276 | |||
22277 | fi |
||
22278 | |||
22279 | |||
22280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5 |
||
22281 | $as_echo_n "checking for growing stack pointer... " >&6; } |
||
22282 | if ${glib_cv_stack_grows+:} false; then : |
||
22283 | $as_echo_n "(cached) " >&6 |
||
22284 | else |
||
22285 | |||
22286 | if test "$cross_compiling" = yes; then : |
||
22287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
22288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
22289 | as_fn_error $? "cannot run test program while cross compiling |
||
22290 | See \`config.log' for more details" "$LINENO" 5; } |
||
22291 | else |
||
22292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22293 | /* end confdefs.h. */ |
||
22294 | |||
22295 | volatile int *a = 0, *b = 0; |
||
22296 | void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); } |
||
22297 | int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; } |
||
22298 | |||
22299 | _ACEOF |
||
22300 | if ac_fn_c_try_run "$LINENO"; then : |
||
22301 | glib_cv_stack_grows=yes |
||
22302 | |||
22303 | else |
||
22304 | glib_cv_stack_grows=no |
||
22305 | |||
22306 | fi |
||
22307 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
22308 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
22309 | fi |
||
22310 | |||
22311 | |||
22312 | fi |
||
22313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5 |
||
22314 | $as_echo "$glib_cv_stack_grows" >&6; } |
||
22315 | |||
22316 | # check for flavours of varargs macros |
||
22317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5 |
||
22318 | $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; } |
||
22319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22320 | /* end confdefs.h. */ |
||
22321 | |||
22322 | int |
||
22323 | main () |
||
22324 | { |
||
22325 | |||
22326 | int a(int p1, int p2, int p3); |
||
22327 | #define call_a(...) a(1,__VA_ARGS__) |
||
22328 | call_a(2,3); |
||
22329 | |||
22330 | ; |
||
22331 | return 0; |
||
22332 | } |
||
22333 | _ACEOF |
||
22334 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22335 | g_have_iso_c_varargs=yes |
||
22336 | else |
||
22337 | g_have_iso_c_varargs=no |
||
22338 | fi |
||
22339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5 |
||
22341 | $as_echo "$g_have_iso_c_varargs" >&6; } |
||
22342 | |||
22343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5 |
||
22344 | $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; } |
||
22345 | if test "$CXX" = ""; then : |
||
22346 | |||
22347 | g_have_iso_cxx_varargs=no |
||
22348 | else |
||
22349 | ac_ext=cpp |
||
22350 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
22351 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
22352 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
22353 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
22354 | |||
22355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22356 | /* end confdefs.h. */ |
||
22357 | |||
22358 | int |
||
22359 | main () |
||
22360 | { |
||
22361 | |||
22362 | int a(int p1, int p2, int p3); |
||
22363 | #define call_a(...) a(1,__VA_ARGS__) |
||
22364 | call_a(2,3); |
||
22365 | |||
22366 | ; |
||
22367 | return 0; |
||
22368 | } |
||
22369 | _ACEOF |
||
22370 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
22371 | g_have_iso_cxx_varargs=yes |
||
22372 | else |
||
22373 | g_have_iso_cxx_varargs=no |
||
22374 | fi |
||
22375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22376 | ac_ext=c |
||
22377 | ac_cpp='$CPP $CPPFLAGS' |
||
22378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
22379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
22380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
22381 | |||
22382 | |||
22383 | fi |
||
22384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5 |
||
22385 | $as_echo "$g_have_iso_cxx_varargs" >&6; } |
||
22386 | |||
22387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5 |
||
22388 | $as_echo_n "checking for GNUC varargs macros... " >&6; } |
||
22389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22390 | /* end confdefs.h. */ |
||
22391 | |||
22392 | int |
||
22393 | main () |
||
22394 | { |
||
22395 | |||
22396 | int a(int p1, int p2, int p3); |
||
22397 | #define call_a(params...) a(1,params) |
||
22398 | call_a(2,3); |
||
22399 | |||
22400 | ; |
||
22401 | return 0; |
||
22402 | } |
||
22403 | _ACEOF |
||
22404 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22405 | g_have_gnuc_varargs=yes |
||
22406 | else |
||
22407 | g_have_gnuc_varargs=no |
||
22408 | fi |
||
22409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5 |
||
22411 | $as_echo "$g_have_gnuc_varargs" >&6; } |
||
22412 | |||
22413 | # check for GNUC visibility support |
||
22414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5 |
||
22415 | $as_echo_n "checking for GNUC visibility attribute... " >&6; } |
||
22416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22417 | /* end confdefs.h. */ |
||
22418 | |||
22419 | void |
||
22420 | __attribute__ ((visibility ("hidden"))) |
||
22421 | f_hidden (void) |
||
22422 | { |
||
22423 | } |
||
22424 | void |
||
22425 | __attribute__ ((visibility ("internal"))) |
||
22426 | f_internal (void) |
||
22427 | { |
||
22428 | } |
||
22429 | void |
||
22430 | __attribute__ ((visibility ("protected"))) |
||
22431 | f_protected (void) |
||
22432 | { |
||
22433 | } |
||
22434 | void |
||
22435 | __attribute__ ((visibility ("default"))) |
||
22436 | f_default (void) |
||
22437 | { |
||
22438 | } |
||
22439 | int main (void) |
||
22440 | { |
||
22441 | f_hidden(); |
||
22442 | f_internal(); |
||
22443 | f_protected(); |
||
22444 | f_default(); |
||
22445 | return 0; |
||
22446 | } |
||
22447 | |||
22448 | _ACEOF |
||
22449 | rm -f conftest.$ac_objext |
||
22450 | glib_ac_compile_save="$ac_compile" |
||
22451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' |
||
22452 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
22453 | (eval $ac_compile) 2>conftest.err |
||
22454 | ac_status=$? |
||
22455 | if test -s conftest.err; then |
||
22456 | grep -v '^ *+' conftest.err >conftest.er1 |
||
22457 | cat conftest.er1 >&5 |
||
22458 | mv -f conftest.er1 conftest.err |
||
22459 | fi |
||
22460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
22461 | test $ac_status = 0; } && |
||
22462 | { ac_try='(if test -s conftest.err; then false ; else true; fi)' |
||
22463 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
||
22464 | (eval $ac_try) 2>&5 |
||
22465 | ac_status=$? |
||
22466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
22467 | test $ac_status = 0; }; }; then : |
||
22468 | g_have_gnuc_visibility=yes |
||
22469 | else |
||
22470 | echo "$as_me: failed program was:" >&5 |
||
22471 | cat conftest.$ac_ext >&5 |
||
22472 | g_have_gnuc_visibility=no |
||
22473 | fi |
||
22474 | ac_compile="$glib_ac_compile_save" |
||
22475 | rm -f conftest.$ac_objext conftest.err conftest.$ac_ext |
||
22476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5 |
||
22477 | $as_echo "$g_have_gnuc_visibility" >&6; } |
||
22478 | if test x$g_have_gnuc_visibility = xyes; then |
||
22479 | HAVE_GNUC_VISIBILITY_TRUE= |
||
22480 | HAVE_GNUC_VISIBILITY_FALSE='#' |
||
22481 | else |
||
22482 | HAVE_GNUC_VISIBILITY_TRUE='#' |
||
22483 | HAVE_GNUC_VISIBILITY_FALSE= |
||
22484 | fi |
||
22485 | |||
22486 | |||
22487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5 |
||
22488 | $as_echo_n "checking whether using Sun Studio C compiler... " >&6; } |
||
22489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22490 | /* end confdefs.h. */ |
||
22491 | #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550) |
||
22492 | #else |
||
22493 | # include "error: this is not Sun Studio." |
||
22494 | #endif |
||
22495 | |||
22496 | int |
||
22497 | main () |
||
22498 | { |
||
22499 | |||
22500 | ; |
||
22501 | return 0; |
||
22502 | } |
||
22503 | _ACEOF |
||
22504 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22505 | g_have_sunstudio_visibility=yes |
||
22506 | else |
||
22507 | g_have_sunstudio_visibility=no |
||
22508 | fi |
||
22509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5 |
||
22511 | $as_echo "$g_have_sunstudio_visibility" >&6; } |
||
22512 | if test x$g_have_sunstudio_visibility = xyes; then |
||
22513 | HAVE_SUNSTUDIO_VISIBILITY_TRUE= |
||
22514 | HAVE_SUNSTUDIO_VISIBILITY_FALSE='#' |
||
22515 | else |
||
22516 | HAVE_SUNSTUDIO_VISIBILITY_TRUE='#' |
||
22517 | HAVE_SUNSTUDIO_VISIBILITY_FALSE= |
||
22518 | fi |
||
22519 | |||
22520 | |||
22521 | # check for bytesex stuff |
||
22522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
||
22523 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
||
22524 | if ${ac_cv_c_bigendian+:} false; then : |
||
22525 | $as_echo_n "(cached) " >&6 |
||
22526 | else |
||
22527 | ac_cv_c_bigendian=unknown |
||
22528 | # See if we're dealing with a universal compiler. |
||
22529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22530 | /* end confdefs.h. */ |
||
22531 | #ifndef __APPLE_CC__ |
||
22532 | not a universal capable compiler |
||
22533 | #endif |
||
22534 | typedef int dummy; |
||
22535 | |||
22536 | _ACEOF |
||
22537 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22538 | |||
22539 | # Check for potential -arch flags. It is not universal unless |
||
22540 | # there are at least two -arch flags with different values. |
||
22541 | ac_arch= |
||
22542 | ac_prev= |
||
22543 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
||
22544 | if test -n "$ac_prev"; then |
||
22545 | case $ac_word in |
||
22546 | i?86 | x86_64 | ppc | ppc64) |
||
22547 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
||
22548 | ac_arch=$ac_word |
||
22549 | else |
||
22550 | ac_cv_c_bigendian=universal |
||
22551 | break |
||
22552 | fi |
||
22553 | ;; |
||
22554 | esac |
||
22555 | ac_prev= |
||
22556 | elif test "x$ac_word" = "x-arch"; then |
||
22557 | ac_prev=arch |
||
22558 | fi |
||
22559 | done |
||
22560 | fi |
||
22561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22562 | if test $ac_cv_c_bigendian = unknown; then |
||
22563 | # See if sys/param.h defines the BYTE_ORDER macro. |
||
22564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22565 | /* end confdefs.h. */ |
||
22566 | #include <sys/types.h> |
||
22567 | #include <sys/param.h> |
||
22568 | |||
22569 | int |
||
22570 | main () |
||
22571 | { |
||
22572 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
||
22573 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
||
22574 | && LITTLE_ENDIAN) |
||
22575 | bogus endian macros |
||
22576 | #endif |
||
22577 | |||
22578 | ; |
||
22579 | return 0; |
||
22580 | } |
||
22581 | _ACEOF |
||
22582 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22583 | # It does; now see whether it defined to BIG_ENDIAN or not. |
||
22584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22585 | /* end confdefs.h. */ |
||
22586 | #include <sys/types.h> |
||
22587 | #include <sys/param.h> |
||
22588 | |||
22589 | int |
||
22590 | main () |
||
22591 | { |
||
22592 | #if BYTE_ORDER != BIG_ENDIAN |
||
22593 | not big endian |
||
22594 | #endif |
||
22595 | |||
22596 | ; |
||
22597 | return 0; |
||
22598 | } |
||
22599 | _ACEOF |
||
22600 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22601 | ac_cv_c_bigendian=yes |
||
22602 | else |
||
22603 | ac_cv_c_bigendian=no |
||
22604 | fi |
||
22605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22606 | fi |
||
22607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22608 | fi |
||
22609 | if test $ac_cv_c_bigendian = unknown; then |
||
22610 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
||
22611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22612 | /* end confdefs.h. */ |
||
22613 | #include <limits.h> |
||
22614 | |||
22615 | int |
||
22616 | main () |
||
22617 | { |
||
22618 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
||
22619 | bogus endian macros |
||
22620 | #endif |
||
22621 | |||
22622 | ; |
||
22623 | return 0; |
||
22624 | } |
||
22625 | _ACEOF |
||
22626 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22627 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
||
22628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22629 | /* end confdefs.h. */ |
||
22630 | #include <limits.h> |
||
22631 | |||
22632 | int |
||
22633 | main () |
||
22634 | { |
||
22635 | #ifndef _BIG_ENDIAN |
||
22636 | not big endian |
||
22637 | #endif |
||
22638 | |||
22639 | ; |
||
22640 | return 0; |
||
22641 | } |
||
22642 | _ACEOF |
||
22643 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22644 | ac_cv_c_bigendian=yes |
||
22645 | else |
||
22646 | ac_cv_c_bigendian=no |
||
22647 | fi |
||
22648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22649 | fi |
||
22650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22651 | fi |
||
22652 | if test $ac_cv_c_bigendian = unknown; then |
||
22653 | # Compile a test program. |
||
22654 | if test "$cross_compiling" = yes; then : |
||
22655 | # Try to guess by grepping values from an object file. |
||
22656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22657 | /* end confdefs.h. */ |
||
22658 | short int ascii_mm[] = |
||
22659 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
||
22660 | short int ascii_ii[] = |
||
22661 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
||
22662 | int use_ascii (int i) { |
||
22663 | return ascii_mm[i] + ascii_ii[i]; |
||
22664 | } |
||
22665 | short int ebcdic_ii[] = |
||
22666 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
||
22667 | short int ebcdic_mm[] = |
||
22668 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
||
22669 | int use_ebcdic (int i) { |
||
22670 | return ebcdic_mm[i] + ebcdic_ii[i]; |
||
22671 | } |
||
22672 | extern int foo; |
||
22673 | |||
22674 | int |
||
22675 | main () |
||
22676 | { |
||
22677 | return use_ascii (foo) == use_ebcdic (foo); |
||
22678 | ; |
||
22679 | return 0; |
||
22680 | } |
||
22681 | _ACEOF |
||
22682 | if ac_fn_c_try_compile "$LINENO"; then : |
||
22683 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
||
22684 | ac_cv_c_bigendian=yes |
||
22685 | fi |
||
22686 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
||
22687 | if test "$ac_cv_c_bigendian" = unknown; then |
||
22688 | ac_cv_c_bigendian=no |
||
22689 | else |
||
22690 | # finding both strings is unlikely to happen, but who knows? |
||
22691 | ac_cv_c_bigendian=unknown |
||
22692 | fi |
||
22693 | fi |
||
22694 | fi |
||
22695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
22696 | else |
||
22697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22698 | /* end confdefs.h. */ |
||
22699 | $ac_includes_default |
||
22700 | int |
||
22701 | main () |
||
22702 | { |
||
22703 | |||
22704 | /* Are we little or big endian? From Harbison&Steele. */ |
||
22705 | union |
||
22706 | { |
||
22707 | long int l; |
||
22708 | char c[sizeof (long int)]; |
||
22709 | } u; |
||
22710 | u.l = 1; |
||
22711 | return u.c[sizeof (long int) - 1] == 1; |
||
22712 | |||
22713 | ; |
||
22714 | return 0; |
||
22715 | } |
||
22716 | _ACEOF |
||
22717 | if ac_fn_c_try_run "$LINENO"; then : |
||
22718 | ac_cv_c_bigendian=no |
||
22719 | else |
||
22720 | ac_cv_c_bigendian=yes |
||
22721 | fi |
||
22722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
22723 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
22724 | fi |
||
22725 | |||
22726 | fi |
||
22727 | fi |
||
22728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
||
22729 | $as_echo "$ac_cv_c_bigendian" >&6; } |
||
22730 | case $ac_cv_c_bigendian in #( |
||
22731 | yes) |
||
22732 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
||
22733 | ;; #( |
||
22734 | no) |
||
22735 | ;; #( |
||
22736 | universal) |
||
22737 | |||
22738 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
||
22739 | |||
22740 | ;; #( |
||
22741 | *) |
||
22742 | as_fn_error $? "unknown endianness |
||
22743 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
||
22744 | esac |
||
22745 | |||
22746 | if test x$ac_cv_c_bigendian = xuniversal ; then |
||
22747 | as_fn_error $? "Universal builds not supported: see https://bugs.gnome.org/742548" "$LINENO" 5 |
||
22748 | fi |
||
22749 | |||
22750 | |||
22751 | # check for header files |
||
22752 | for ac_header in sys/param.h sys/resource.h mach/mach_time.h |
||
22753 | do : |
||
22754 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
22755 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
22756 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
22757 | cat >>confdefs.h <<_ACEOF |
||
22758 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
22759 | _ACEOF |
||
22760 | |||
22761 | fi |
||
22762 | |||
22763 | done |
||
22764 | |||
22765 | for ac_header in sys/select.h stdint.h inttypes.h sched.h malloc.h |
||
22766 | do : |
||
22767 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
22768 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
22769 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
22770 | cat >>confdefs.h <<_ACEOF |
||
22771 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
22772 | _ACEOF |
||
22773 | |||
22774 | fi |
||
22775 | |||
22776 | done |
||
22777 | |||
22778 | for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h sys/filio.h |
||
22779 | do : |
||
22780 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
22781 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
22782 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
22783 | cat >>confdefs.h <<_ACEOF |
||
22784 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
22785 | _ACEOF |
||
22786 | |||
22787 | fi |
||
22788 | |||
22789 | done |
||
22790 | |||
22791 | for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h |
||
22792 | do : |
||
22793 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
22794 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
22795 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
22796 | cat >>confdefs.h <<_ACEOF |
||
22797 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
22798 | _ACEOF |
||
22799 | |||
22800 | fi |
||
22801 | |||
22802 | done |
||
22803 | |||
22804 | for ac_header in linux/magic.h |
||
22805 | do : |
||
22806 | ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default" |
||
22807 | if test "x$ac_cv_header_linux_magic_h" = xyes; then : |
||
22808 | cat >>confdefs.h <<_ACEOF |
||
22809 | #define HAVE_LINUX_MAGIC_H 1 |
||
22810 | _ACEOF |
||
22811 | |||
22812 | fi |
||
22813 | |||
22814 | done |
||
22815 | |||
22816 | |||
22817 | # Some versions of MSC lack these |
||
22818 | for ac_header in dirent.h sys/time.h |
||
22819 | do : |
||
22820 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
22821 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
22822 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
22823 | cat >>confdefs.h <<_ACEOF |
||
22824 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
22825 | _ACEOF |
||
22826 | |||
22827 | fi |
||
22828 | |||
22829 | done |
||
22830 | |||
22831 | |||
22832 | # We don't care about this, but we need to keep including it in |
||
22833 | # glibconfig.h for backward compatibility |
||
22834 | for ac_header in values.h |
||
22835 | do : |
||
22836 | ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" |
||
22837 | if test "x$ac_cv_header_values_h" = xyes; then : |
||
22838 | cat >>confdefs.h <<_ACEOF |
||
22839 | #define HAVE_VALUES_H 1 |
||
22840 | _ACEOF |
||
22841 | |||
22842 | fi |
||
22843 | |||
22844 | done |
||
22845 | |||
22846 | |||
22847 | for ac_header in sys/mount.h sys/sysctl.h |
||
22848 | do : |
||
22849 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
22850 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H |
||
22851 | #include <sys/param.h> |
||
22852 | #endif |
||
22853 | |||
22854 | " |
||
22855 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
22856 | cat >>confdefs.h <<_ACEOF |
||
22857 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
22858 | _ACEOF |
||
22859 | |||
22860 | fi |
||
22861 | |||
22862 | done |
||
22863 | |||
22864 | for ac_func in sysctlbyname |
||
22865 | do : |
||
22866 | ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" |
||
22867 | if test "x$ac_cv_func_sysctlbyname" = xyes; then : |
||
22868 | cat >>confdefs.h <<_ACEOF |
||
22869 | #define HAVE_SYSCTLBYNAME 1 |
||
22870 | _ACEOF |
||
22871 | |||
22872 | fi |
||
22873 | done |
||
22874 | |||
22875 | |||
22876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
||
22877 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
||
22878 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
||
22879 | $as_echo_n "(cached) " >&6 |
||
22880 | else |
||
22881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
22882 | /* end confdefs.h. */ |
||
22883 | #include <sys/types.h> |
||
22884 | int |
||
22885 | main () |
||
22886 | { |
||
22887 | return makedev(0, 0); |
||
22888 | ; |
||
22889 | return 0; |
||
22890 | } |
||
22891 | _ACEOF |
||
22892 | if ac_fn_c_try_link "$LINENO"; then : |
||
22893 | ac_cv_header_sys_types_h_makedev=yes |
||
22894 | else |
||
22895 | ac_cv_header_sys_types_h_makedev=no |
||
22896 | fi |
||
22897 | rm -f core conftest.err conftest.$ac_objext \ |
||
22898 | conftest$ac_exeext conftest.$ac_ext |
||
22899 | |||
22900 | fi |
||
22901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
||
22902 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
||
22903 | |||
22904 | if test $ac_cv_header_sys_types_h_makedev = no; then |
||
22905 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
||
22906 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
||
22907 | |||
22908 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
||
22909 | |||
22910 | fi |
||
22911 | |||
22912 | |||
22913 | |||
22914 | if test $ac_cv_header_sys_mkdev_h = no; then |
||
22915 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
||
22916 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
||
22917 | |||
22918 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
||
22919 | |||
22920 | fi |
||
22921 | |||
22922 | |||
22923 | fi |
||
22924 | fi |
||
22925 | |||
22926 | for ac_header in xlocale.h |
||
22927 | do : |
||
22928 | ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default" |
||
22929 | if test "x$ac_cv_header_xlocale_h" = xyes; then : |
||
22930 | cat >>confdefs.h <<_ACEOF |
||
22931 | #define HAVE_XLOCALE_H 1 |
||
22932 | _ACEOF |
||
22933 | |||
22934 | fi |
||
22935 | |||
22936 | done |
||
22937 | |||
22938 | |||
22939 | # check for structure fields |
||
22940 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" |
||
22941 | if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : |
||
22942 | |||
22943 | cat >>confdefs.h <<_ACEOF |
||
22944 | #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 |
||
22945 | _ACEOF |
||
22946 | |||
22947 | |||
22948 | fi |
||
22949 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" |
||
22950 | if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : |
||
22951 | |||
22952 | cat >>confdefs.h <<_ACEOF |
||
22953 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 |
||
22954 | _ACEOF |
||
22955 | |||
22956 | |||
22957 | fi |
||
22958 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default" |
||
22959 | if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : |
||
22960 | |||
22961 | cat >>confdefs.h <<_ACEOF |
||
22962 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 |
||
22963 | _ACEOF |
||
22964 | |||
22965 | |||
22966 | fi |
||
22967 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default" |
||
22968 | if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : |
||
22969 | |||
22970 | cat >>confdefs.h <<_ACEOF |
||
22971 | #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 |
||
22972 | _ACEOF |
||
22973 | |||
22974 | |||
22975 | fi |
||
22976 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default" |
||
22977 | if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then : |
||
22978 | |||
22979 | cat >>confdefs.h <<_ACEOF |
||
22980 | #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1 |
||
22981 | _ACEOF |
||
22982 | |||
22983 | |||
22984 | fi |
||
22985 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default" |
||
22986 | if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then : |
||
22987 | |||
22988 | cat >>confdefs.h <<_ACEOF |
||
22989 | #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1 |
||
22990 | _ACEOF |
||
22991 | |||
22992 | |||
22993 | fi |
||
22994 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
||
22995 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
||
22996 | |||
22997 | cat >>confdefs.h <<_ACEOF |
||
22998 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
||
22999 | _ACEOF |
||
23000 | |||
23001 | |||
23002 | fi |
||
23003 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "$ac_includes_default" |
||
23004 | if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then : |
||
23005 | |||
23006 | cat >>confdefs.h <<_ACEOF |
||
23007 | #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 |
||
23008 | _ACEOF |
||
23009 | |||
23010 | |||
23011 | fi |
||
23012 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default" |
||
23013 | if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then : |
||
23014 | |||
23015 | cat >>confdefs.h <<_ACEOF |
||
23016 | #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1 |
||
23017 | _ACEOF |
||
23018 | |||
23019 | |||
23020 | fi |
||
23021 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "$ac_includes_default" |
||
23022 | if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then : |
||
23023 | |||
23024 | cat >>confdefs.h <<_ACEOF |
||
23025 | #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 |
||
23026 | _ACEOF |
||
23027 | |||
23028 | |||
23029 | fi |
||
23030 | |||
23031 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h> |
||
23032 | #include <sys/stat.h> |
||
23033 | #ifdef G_OS_UNIX |
||
23034 | #include <unistd.h> |
||
23035 | #endif |
||
23036 | #ifdef HAVE_SYS_STATFS_H |
||
23037 | #include <sys/statfs.h> |
||
23038 | #endif |
||
23039 | #ifdef HAVE_SYS_PARAM_H |
||
23040 | #include <sys/param.h> |
||
23041 | #endif |
||
23042 | #ifdef HAVE_SYS_MOUNT_H |
||
23043 | #include <sys/mount.h> |
||
23044 | #endif |
||
23045 | " |
||
23046 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
||
23047 | |||
23048 | cat >>confdefs.h <<_ACEOF |
||
23049 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
||
23050 | _ACEOF |
||
23051 | |||
23052 | |||
23053 | fi |
||
23054 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h> |
||
23055 | #include <sys/stat.h> |
||
23056 | #ifdef G_OS_UNIX |
||
23057 | #include <unistd.h> |
||
23058 | #endif |
||
23059 | #ifdef HAVE_SYS_STATFS_H |
||
23060 | #include <sys/statfs.h> |
||
23061 | #endif |
||
23062 | #ifdef HAVE_SYS_PARAM_H |
||
23063 | #include <sys/param.h> |
||
23064 | #endif |
||
23065 | #ifdef HAVE_SYS_MOUNT_H |
||
23066 | #include <sys/mount.h> |
||
23067 | #endif |
||
23068 | " |
||
23069 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
||
23070 | |||
23071 | cat >>confdefs.h <<_ACEOF |
||
23072 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
||
23073 | _ACEOF |
||
23074 | |||
23075 | |||
23076 | fi |
||
23077 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h> |
||
23078 | #include <sys/stat.h> |
||
23079 | #ifdef G_OS_UNIX |
||
23080 | #include <unistd.h> |
||
23081 | #endif |
||
23082 | #ifdef HAVE_SYS_STATFS_H |
||
23083 | #include <sys/statfs.h> |
||
23084 | #endif |
||
23085 | #ifdef HAVE_SYS_PARAM_H |
||
23086 | #include <sys/param.h> |
||
23087 | #endif |
||
23088 | #ifdef HAVE_SYS_MOUNT_H |
||
23089 | #include <sys/mount.h> |
||
23090 | #endif |
||
23091 | " |
||
23092 | if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : |
||
23093 | |||
23094 | cat >>confdefs.h <<_ACEOF |
||
23095 | #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 |
||
23096 | _ACEOF |
||
23097 | |||
23098 | |||
23099 | fi |
||
23100 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h> |
||
23101 | #include <sys/stat.h> |
||
23102 | #ifdef G_OS_UNIX |
||
23103 | #include <unistd.h> |
||
23104 | #endif |
||
23105 | #ifdef HAVE_SYS_STATFS_H |
||
23106 | #include <sys/statfs.h> |
||
23107 | #endif |
||
23108 | #ifdef HAVE_SYS_PARAM_H |
||
23109 | #include <sys/param.h> |
||
23110 | #endif |
||
23111 | #ifdef HAVE_SYS_MOUNT_H |
||
23112 | #include <sys/mount.h> |
||
23113 | #endif |
||
23114 | " |
||
23115 | if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then : |
||
23116 | |||
23117 | cat >>confdefs.h <<_ACEOF |
||
23118 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
||
23119 | _ACEOF |
||
23120 | |||
23121 | |||
23122 | fi |
||
23123 | |||
23124 | # struct statvfs.f_basetype is available on Solaris but not for Linux. |
||
23125 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h> |
||
23126 | " |
||
23127 | if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then : |
||
23128 | |||
23129 | cat >>confdefs.h <<_ACEOF |
||
23130 | #define HAVE_STRUCT_STATVFS_F_BASETYPE 1 |
||
23131 | _ACEOF |
||
23132 | |||
23133 | |||
23134 | fi |
||
23135 | |||
23136 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h> |
||
23137 | " |
||
23138 | if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then : |
||
23139 | |||
23140 | cat >>confdefs.h <<_ACEOF |
||
23141 | #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1 |
||
23142 | _ACEOF |
||
23143 | |||
23144 | |||
23145 | fi |
||
23146 | |||
23147 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
||
23148 | " |
||
23149 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : |
||
23150 | |||
23151 | cat >>confdefs.h <<_ACEOF |
||
23152 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 |
||
23153 | _ACEOF |
||
23154 | |||
23155 | |||
23156 | fi |
||
23157 | ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h> |
||
23158 | " |
||
23159 | if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then : |
||
23160 | |||
23161 | cat >>confdefs.h <<_ACEOF |
||
23162 | #define HAVE_STRUCT_TM___TM_GMTOFF 1 |
||
23163 | _ACEOF |
||
23164 | |||
23165 | |||
23166 | fi |
||
23167 | |||
23168 | |||
23169 | ac_header_dirent=no |
||
23170 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
||
23171 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
||
23172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
||
23173 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
||
23174 | if eval \${$as_ac_Header+:} false; then : |
||
23175 | $as_echo_n "(cached) " >&6 |
||
23176 | else |
||
23177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23178 | /* end confdefs.h. */ |
||
23179 | #include <sys/types.h> |
||
23180 | #include <$ac_hdr> |
||
23181 | |||
23182 | int |
||
23183 | main () |
||
23184 | { |
||
23185 | if ((DIR *) 0) |
||
23186 | return 0; |
||
23187 | ; |
||
23188 | return 0; |
||
23189 | } |
||
23190 | _ACEOF |
||
23191 | if ac_fn_c_try_compile "$LINENO"; then : |
||
23192 | eval "$as_ac_Header=yes" |
||
23193 | else |
||
23194 | eval "$as_ac_Header=no" |
||
23195 | fi |
||
23196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
23197 | fi |
||
23198 | eval ac_res=\$$as_ac_Header |
||
23199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
23200 | $as_echo "$ac_res" >&6; } |
||
23201 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
23202 | cat >>confdefs.h <<_ACEOF |
||
23203 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
||
23204 | _ACEOF |
||
23205 | |||
23206 | ac_header_dirent=$ac_hdr; break |
||
23207 | fi |
||
23208 | |||
23209 | done |
||
23210 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
||
23211 | if test $ac_header_dirent = dirent.h; then |
||
23212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
||
23213 | $as_echo_n "checking for library containing opendir... " >&6; } |
||
23214 | if ${ac_cv_search_opendir+:} false; then : |
||
23215 | $as_echo_n "(cached) " >&6 |
||
23216 | else |
||
23217 | ac_func_search_save_LIBS=$LIBS |
||
23218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23219 | /* end confdefs.h. */ |
||
23220 | |||
23221 | /* Override any GCC internal prototype to avoid an error. |
||
23222 | Use char because int might match the return type of a GCC |
||
23223 | builtin and then its argument prototype would still apply. */ |
||
23224 | #ifdef __cplusplus |
||
23225 | extern "C" |
||
23226 | #endif |
||
23227 | char opendir (); |
||
23228 | int |
||
23229 | main () |
||
23230 | { |
||
23231 | return opendir (); |
||
23232 | ; |
||
23233 | return 0; |
||
23234 | } |
||
23235 | _ACEOF |
||
23236 | for ac_lib in '' dir; do |
||
23237 | if test -z "$ac_lib"; then |
||
23238 | ac_res="none required" |
||
23239 | else |
||
23240 | ac_res=-l$ac_lib |
||
23241 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
23242 | fi |
||
23243 | if ac_fn_c_try_link "$LINENO"; then : |
||
23244 | ac_cv_search_opendir=$ac_res |
||
23245 | fi |
||
23246 | rm -f core conftest.err conftest.$ac_objext \ |
||
23247 | conftest$ac_exeext |
||
23248 | if ${ac_cv_search_opendir+:} false; then : |
||
23249 | break |
||
23250 | fi |
||
23251 | done |
||
23252 | if ${ac_cv_search_opendir+:} false; then : |
||
23253 | |||
23254 | else |
||
23255 | ac_cv_search_opendir=no |
||
23256 | fi |
||
23257 | rm conftest.$ac_ext |
||
23258 | LIBS=$ac_func_search_save_LIBS |
||
23259 | fi |
||
23260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
||
23261 | $as_echo "$ac_cv_search_opendir" >&6; } |
||
23262 | ac_res=$ac_cv_search_opendir |
||
23263 | if test "$ac_res" != no; then : |
||
23264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
23265 | |||
23266 | fi |
||
23267 | |||
23268 | else |
||
23269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
||
23270 | $as_echo_n "checking for library containing opendir... " >&6; } |
||
23271 | if ${ac_cv_search_opendir+:} false; then : |
||
23272 | $as_echo_n "(cached) " >&6 |
||
23273 | else |
||
23274 | ac_func_search_save_LIBS=$LIBS |
||
23275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23276 | /* end confdefs.h. */ |
||
23277 | |||
23278 | /* Override any GCC internal prototype to avoid an error. |
||
23279 | Use char because int might match the return type of a GCC |
||
23280 | builtin and then its argument prototype would still apply. */ |
||
23281 | #ifdef __cplusplus |
||
23282 | extern "C" |
||
23283 | #endif |
||
23284 | char opendir (); |
||
23285 | int |
||
23286 | main () |
||
23287 | { |
||
23288 | return opendir (); |
||
23289 | ; |
||
23290 | return 0; |
||
23291 | } |
||
23292 | _ACEOF |
||
23293 | for ac_lib in '' x; do |
||
23294 | if test -z "$ac_lib"; then |
||
23295 | ac_res="none required" |
||
23296 | else |
||
23297 | ac_res=-l$ac_lib |
||
23298 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
23299 | fi |
||
23300 | if ac_fn_c_try_link "$LINENO"; then : |
||
23301 | ac_cv_search_opendir=$ac_res |
||
23302 | fi |
||
23303 | rm -f core conftest.err conftest.$ac_objext \ |
||
23304 | conftest$ac_exeext |
||
23305 | if ${ac_cv_search_opendir+:} false; then : |
||
23306 | break |
||
23307 | fi |
||
23308 | done |
||
23309 | if ${ac_cv_search_opendir+:} false; then : |
||
23310 | |||
23311 | else |
||
23312 | ac_cv_search_opendir=no |
||
23313 | fi |
||
23314 | rm conftest.$ac_ext |
||
23315 | LIBS=$ac_func_search_save_LIBS |
||
23316 | fi |
||
23317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
||
23318 | $as_echo "$ac_cv_search_opendir" >&6; } |
||
23319 | ac_res=$ac_cv_search_opendir |
||
23320 | if test "$ac_res" != no; then : |
||
23321 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
23322 | |||
23323 | fi |
||
23324 | |||
23325 | fi |
||
23326 | |||
23327 | |||
23328 | |||
23329 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" " |
||
23330 | #include <sys/types.h> |
||
23331 | #ifdef HAVE_DIRENT_H |
||
23332 | # include <dirent.h> |
||
23333 | #else |
||
23334 | # define dirent direct |
||
23335 | # ifdef HAVE_SYS_NDIR_H |
||
23336 | # include <sys/ndir.h> |
||
23337 | # endif |
||
23338 | # ifdef HAVE_SYS_DIR_H |
||
23339 | # include <sys/dir.h> |
||
23340 | # endif |
||
23341 | # ifdef HAVE_NDIR_H |
||
23342 | # include <ndir.h> |
||
23343 | # endif |
||
23344 | #endif |
||
23345 | |||
23346 | " |
||
23347 | if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : |
||
23348 | |||
23349 | cat >>confdefs.h <<_ACEOF |
||
23350 | #define HAVE_STRUCT_DIRENT_D_TYPE 1 |
||
23351 | _ACEOF |
||
23352 | |||
23353 | |||
23354 | fi |
||
23355 | |||
23356 | |||
23357 | |||
23358 | # Checks for libcharset |
||
23359 | |||
23360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
||
23361 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
||
23362 | if ${am_cv_langinfo_codeset+:} false; then : |
||
23363 | $as_echo_n "(cached) " >&6 |
||
23364 | else |
||
23365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23366 | /* end confdefs.h. */ |
||
23367 | #include <langinfo.h> |
||
23368 | int |
||
23369 | main () |
||
23370 | { |
||
23371 | char* cs = nl_langinfo(CODESET); |
||
23372 | ; |
||
23373 | return 0; |
||
23374 | } |
||
23375 | _ACEOF |
||
23376 | if ac_fn_c_try_link "$LINENO"; then : |
||
23377 | am_cv_langinfo_codeset=yes |
||
23378 | else |
||
23379 | am_cv_langinfo_codeset=no |
||
23380 | fi |
||
23381 | rm -f core conftest.err conftest.$ac_objext \ |
||
23382 | conftest$ac_exeext conftest.$ac_ext |
||
23383 | |||
23384 | fi |
||
23385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
||
23386 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
||
23387 | if test $am_cv_langinfo_codeset = yes; then |
||
23388 | |||
23389 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
||
23390 | |||
23391 | fi |
||
23392 | |||
23393 | |||
23394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
||
23395 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
||
23396 | if ${ac_cv_gnu_library_2_1+:} false; then : |
||
23397 | $as_echo_n "(cached) " >&6 |
||
23398 | else |
||
23399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23400 | /* end confdefs.h. */ |
||
23401 | |||
23402 | #include <features.h> |
||
23403 | #ifdef __GNU_LIBRARY__ |
||
23404 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
||
23405 | Lucky GNU user |
||
23406 | #endif |
||
23407 | #endif |
||
23408 | |||
23409 | _ACEOF |
||
23410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
23411 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
||
23412 | ac_cv_gnu_library_2_1=yes |
||
23413 | else |
||
23414 | ac_cv_gnu_library_2_1=no |
||
23415 | fi |
||
23416 | rm -f conftest* |
||
23417 | |||
23418 | |||
23419 | |||
23420 | fi |
||
23421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
||
23422 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
||
23423 | |||
23424 | GLIBC21="$ac_cv_gnu_library_2_1" |
||
23425 | |||
23426 | |||
23427 | |||
23428 | # check additional type sizes |
||
23429 | # The cast to long int works around a bug in the HP C Compiler |
||
23430 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
23431 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
23432 | # This bug is HP SR number 8606223364. |
||
23433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
||
23434 | $as_echo_n "checking size of size_t... " >&6; } |
||
23435 | if ${ac_cv_sizeof_size_t+:} false; then : |
||
23436 | $as_echo_n "(cached) " >&6 |
||
23437 | else |
||
23438 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
||
23439 | |||
23440 | else |
||
23441 | if test "$ac_cv_type_size_t" = yes; then |
||
23442 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
23443 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
23444 | as_fn_error 77 "cannot compute sizeof (size_t) |
||
23445 | See \`config.log' for more details" "$LINENO" 5; } |
||
23446 | else |
||
23447 | ac_cv_sizeof_size_t=0 |
||
23448 | fi |
||
23449 | fi |
||
23450 | |||
23451 | fi |
||
23452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
||
23453 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
||
23454 | |||
23455 | |||
23456 | |||
23457 | cat >>confdefs.h <<_ACEOF |
||
23458 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
||
23459 | _ACEOF |
||
23460 | |||
23461 | |||
23462 | |||
23463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5 |
||
23464 | $as_echo_n "checking for the appropriate definition for size_t... " >&6; } |
||
23465 | |||
23466 | case $ac_cv_sizeof_size_t in |
||
23467 | $ac_cv_sizeof_short) |
||
23468 | glib_size_type=short |
||
23469 | ;; |
||
23470 | $ac_cv_sizeof_int) |
||
23471 | glib_size_type=int |
||
23472 | ;; |
||
23473 | $ac_cv_sizeof_long) |
||
23474 | glib_size_type=long |
||
23475 | ;; |
||
23476 | $ac_cv_sizeof_long_long) |
||
23477 | glib_size_type='long long' |
||
23478 | ;; |
||
23479 | $ac_cv_sizeof__int64) |
||
23480 | glib_size_type='__int64' |
||
23481 | ;; |
||
23482 | *) as_fn_error $? "No type matching size_t in size" "$LINENO" 5 |
||
23483 | ;; |
||
23484 | esac |
||
23485 | |||
23486 | if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int && |
||
23487 | test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long; then : |
||
23488 | |||
23489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23490 | /* end confdefs.h. */ |
||
23491 | |||
23492 | #if defined(_AIX) && !defined(__GNUC__) |
||
23493 | #pragma options langlvl=stdc89 |
||
23494 | #endif |
||
23495 | #include <stddef.h> |
||
23496 | int main () |
||
23497 | { |
||
23498 | size_t s = 1; |
||
23499 | unsigned int *size_int = &s; |
||
23500 | return (int)*size_int; |
||
23501 | } |
||
23502 | |||
23503 | _ACEOF |
||
23504 | rm -f conftest.$ac_objext |
||
23505 | glib_ac_compile_save="$ac_compile" |
||
23506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' |
||
23507 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
23508 | (eval $ac_compile) 2>conftest.err |
||
23509 | ac_status=$? |
||
23510 | if test -s conftest.err; then |
||
23511 | grep -v '^ *+' conftest.err >conftest.er1 |
||
23512 | cat conftest.er1 >&5 |
||
23513 | mv -f conftest.er1 conftest.err |
||
23514 | fi |
||
23515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23516 | test $ac_status = 0; } && |
||
23517 | { ac_try='(if test -s conftest.err; then false ; else true; fi)' |
||
23518 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
||
23519 | (eval $ac_try) 2>&5 |
||
23520 | ac_status=$? |
||
23521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23522 | test $ac_status = 0; }; }; then : |
||
23523 | glib_size_type=int |
||
23524 | else |
||
23525 | echo "$as_me: failed program was:" >&5 |
||
23526 | cat conftest.$ac_ext >&5 |
||
23527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23528 | /* end confdefs.h. */ |
||
23529 | |||
23530 | #if defined(_AIX) && !defined(__GNUC__) |
||
23531 | #pragma options langlvl=stdc89 |
||
23532 | #endif |
||
23533 | #include <stddef.h> |
||
23534 | int main () |
||
23535 | { |
||
23536 | size_t s = 1; |
||
23537 | unsigned long *size_long = &s; |
||
23538 | return (int)*size_long; |
||
23539 | } |
||
23540 | |||
23541 | _ACEOF |
||
23542 | rm -f conftest.$ac_objext |
||
23543 | glib_ac_compile_save="$ac_compile" |
||
23544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' |
||
23545 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
23546 | (eval $ac_compile) 2>conftest.err |
||
23547 | ac_status=$? |
||
23548 | if test -s conftest.err; then |
||
23549 | grep -v '^ *+' conftest.err >conftest.er1 |
||
23550 | cat conftest.er1 >&5 |
||
23551 | mv -f conftest.er1 conftest.err |
||
23552 | fi |
||
23553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23554 | test $ac_status = 0; } && |
||
23555 | { ac_try='(if test -s conftest.err; then false ; else true; fi)' |
||
23556 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
||
23557 | (eval $ac_try) 2>&5 |
||
23558 | ac_status=$? |
||
23559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23560 | test $ac_status = 0; }; }; then : |
||
23561 | glib_size_type=long |
||
23562 | else |
||
23563 | echo "$as_me: failed program was:" >&5 |
||
23564 | cat conftest.$ac_ext >&5 |
||
23565 | fi |
||
23566 | ac_compile="$glib_ac_compile_save" |
||
23567 | rm -f conftest.$ac_objext conftest.err conftest.$ac_ext |
||
23568 | fi |
||
23569 | ac_compile="$glib_ac_compile_save" |
||
23570 | rm -f conftest.$ac_objext conftest.err conftest.$ac_ext |
||
23571 | |||
23572 | fi |
||
23573 | |||
23574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5 |
||
23575 | $as_echo "unsigned $glib_size_type" >&6; } |
||
23576 | |||
23577 | # The cast to long int works around a bug in the HP C Compiler |
||
23578 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
||
23579 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
||
23580 | # This bug is HP SR number 8606223364. |
||
23581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
||
23582 | $as_echo_n "checking size of ssize_t... " >&6; } |
||
23583 | if ${ac_cv_sizeof_ssize_t+:} false; then : |
||
23584 | $as_echo_n "(cached) " >&6 |
||
23585 | else |
||
23586 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : |
||
23587 | |||
23588 | else |
||
23589 | if test "$ac_cv_type_ssize_t" = yes; then |
||
23590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
23591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
23592 | as_fn_error 77 "cannot compute sizeof (ssize_t) |
||
23593 | See \`config.log' for more details" "$LINENO" 5; } |
||
23594 | else |
||
23595 | ac_cv_sizeof_ssize_t=0 |
||
23596 | fi |
||
23597 | fi |
||
23598 | |||
23599 | fi |
||
23600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
||
23601 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } |
||
23602 | |||
23603 | |||
23604 | |||
23605 | cat >>confdefs.h <<_ACEOF |
||
23606 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t |
||
23607 | _ACEOF |
||
23608 | |||
23609 | |||
23610 | |||
23611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for ssize_t" >&5 |
||
23612 | $as_echo_n "checking for the appropriate definition for ssize_t... " >&6; } |
||
23613 | |||
23614 | case $ac_cv_sizeof_ssize_t in |
||
23615 | $ac_cv_sizeof_short) |
||
23616 | glib_ssize_type=short |
||
23617 | ;; |
||
23618 | $ac_cv_sizeof_int) |
||
23619 | glib_ssize_type=int |
||
23620 | ;; |
||
23621 | $ac_cv_sizeof_long) |
||
23622 | glib_ssize_type=long |
||
23623 | ;; |
||
23624 | $ac_cv_sizeof_long_long) |
||
23625 | glib_ssize_type='long long' |
||
23626 | ;; |
||
23627 | $ac_cv_sizeof__int64) |
||
23628 | glib_ssize_type='__int64' |
||
23629 | ;; |
||
23630 | *) as_fn_error $? "No type matching ssize_t in size" "$LINENO" 5 |
||
23631 | ;; |
||
23632 | esac |
||
23633 | |||
23634 | if test $ac_cv_sizeof_ssize_t = $ac_cv_sizeof_int && |
||
23635 | test $ac_cv_sizeof_ssize_t = $ac_cv_sizeof_long; then : |
||
23636 | |||
23637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23638 | /* end confdefs.h. */ |
||
23639 | |||
23640 | #if defined(_AIX) && !defined(__GNUC__) |
||
23641 | #pragma options langlvl=stdc89 |
||
23642 | #endif |
||
23643 | #include <stddef.h> |
||
23644 | #ifdef HAVE_INTTYPES_H |
||
23645 | # include <inttypes.h> |
||
23646 | #endif |
||
23647 | #ifdef HAVE_STDINT_H |
||
23648 | # include <stdint.h> |
||
23649 | #endif |
||
23650 | #include <sys/types.h> |
||
23651 | int main () |
||
23652 | { |
||
23653 | ssize_t s = 1; |
||
23654 | int *size_int = &s; |
||
23655 | return (int)*size_int; |
||
23656 | } |
||
23657 | |||
23658 | _ACEOF |
||
23659 | rm -f conftest.$ac_objext |
||
23660 | glib_ac_compile_save="$ac_compile" |
||
23661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' |
||
23662 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
23663 | (eval $ac_compile) 2>conftest.err |
||
23664 | ac_status=$? |
||
23665 | if test -s conftest.err; then |
||
23666 | grep -v '^ *+' conftest.err >conftest.er1 |
||
23667 | cat conftest.er1 >&5 |
||
23668 | mv -f conftest.er1 conftest.err |
||
23669 | fi |
||
23670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23671 | test $ac_status = 0; } && |
||
23672 | { ac_try='(if test -s conftest.err; then false ; else true; fi)' |
||
23673 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
||
23674 | (eval $ac_try) 2>&5 |
||
23675 | ac_status=$? |
||
23676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23677 | test $ac_status = 0; }; }; then : |
||
23678 | glib_ssize_type=int |
||
23679 | else |
||
23680 | echo "$as_me: failed program was:" >&5 |
||
23681 | cat conftest.$ac_ext >&5 |
||
23682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
23683 | /* end confdefs.h. */ |
||
23684 | |||
23685 | #if defined(_AIX) && !defined(__GNUC__) |
||
23686 | #pragma options langlvl=stdc89 |
||
23687 | #endif |
||
23688 | #include <stddef.h> |
||
23689 | #ifdef HAVE_INTTYPES_H |
||
23690 | # include <inttypes.h> |
||
23691 | #endif |
||
23692 | #ifdef HAVE_STDINT_H |
||
23693 | # include <stdint.h> |
||
23694 | #endif |
||
23695 | #include <sys/types.h> |
||
23696 | int main () |
||
23697 | { |
||
23698 | ssize_t s = 1; |
||
23699 | long *size_long = &s; |
||
23700 | return (int)*size_long; |
||
23701 | } |
||
23702 | |||
23703 | _ACEOF |
||
23704 | rm -f conftest.$ac_objext |
||
23705 | glib_ac_compile_save="$ac_compile" |
||
23706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' |
||
23707 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
||
23708 | (eval $ac_compile) 2>conftest.err |
||
23709 | ac_status=$? |
||
23710 | if test -s conftest.err; then |
||
23711 | grep -v '^ *+' conftest.err >conftest.er1 |
||
23712 | cat conftest.er1 >&5 |
||
23713 | mv -f conftest.er1 conftest.err |
||
23714 | fi |
||
23715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23716 | test $ac_status = 0; } && |
||
23717 | { ac_try='(if test -s conftest.err; then false ; else true; fi)' |
||
23718 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
||
23719 | (eval $ac_try) 2>&5 |
||
23720 | ac_status=$? |
||
23721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
23722 | test $ac_status = 0; }; }; then : |
||
23723 | glib_ssize_type=long |
||
23724 | else |
||
23725 | echo "$as_me: failed program was:" >&5 |
||
23726 | cat conftest.$ac_ext >&5 |
||
23727 | fi |
||
23728 | ac_compile="$glib_ac_compile_save" |
||
23729 | rm -f conftest.$ac_objext conftest.err conftest.$ac_ext |
||
23730 | fi |
||
23731 | ac_compile="$glib_ac_compile_save" |
||
23732 | rm -f conftest.$ac_objext conftest.err conftest.$ac_ext |
||
23733 | |||
23734 | fi |
||
23735 | |||
23736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ssize_type" >&5 |
||
23737 | $as_echo "$glib_ssize_type" >&6; } |
||
23738 | |||
23739 | # Check for some functions |
||
23740 | for ac_func in lstat strsignal vsnprintf stpcpy strcasecmp strncasecmp poll vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem |
||
23741 | do : |
||
23742 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
23743 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
23744 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
23745 | cat >>confdefs.h <<_ACEOF |
||
23746 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
23747 | _ACEOF |
||
23748 | |||
23749 | fi |
||
23750 | done |
||
23751 | |||
23752 | for ac_func in lchmod lchown fchmod fchown utimes getresuid |
||
23753 | do : |
||
23754 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
23755 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
23756 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
23757 | cat >>confdefs.h <<_ACEOF |
||
23758 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
23759 | _ACEOF |
||
23760 | |||
23761 | fi |
||
23762 | done |
||
23763 | |||
23764 | for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat fallocate |
||
23765 | do : |
||
23766 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
23767 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
23768 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
23769 | cat >>confdefs.h <<_ACEOF |
||
23770 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
23771 | _ACEOF |
||
23772 | |||
23773 | fi |
||
23774 | done |
||
23775 | |||
23776 | case $host_os in aix*) ac_cv_func_splice=no ;; esac # AIX splice() is something else |
||
23777 | for ac_func in splice |
||
23778 | do : |
||
23779 | ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" |
||
23780 | if test "x$ac_cv_func_splice" = xyes; then : |
||
23781 | cat >>confdefs.h <<_ACEOF |
||
23782 | #define HAVE_SPLICE 1 |
||
23783 | _ACEOF |
||
23784 | |||
23785 | fi |
||
23786 | done |
||
23787 | |||
23788 | for ac_func in prlimit |
||
23789 | do : |
||
23790 | ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit" |
||
23791 | if test "x$ac_cv_func_prlimit" = xyes; then : |
||
23792 | cat >>confdefs.h <<_ACEOF |
||
23793 | #define HAVE_PRLIMIT 1 |
||
23794 | _ACEOF |
||
23795 | |||
23796 | fi |
||
23797 | done |
||
23798 | |||
23799 | |||
23800 | # To avoid finding a compatibility unusable statfs, which typically |
||
23801 | # successfully compiles, but warns to use the newer statvfs interface: |
||
23802 | if test $ac_cv_header_sys_statvfs_h = yes; then : |
||
23803 | for ac_func in statvfs |
||
23804 | do : |
||
23805 | ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" |
||
23806 | if test "x$ac_cv_func_statvfs" = xyes; then : |
||
23807 | cat >>confdefs.h <<_ACEOF |
||
23808 | #define HAVE_STATVFS 1 |
||
23809 | _ACEOF |
||
23810 | |||
23811 | fi |
||
23812 | done |
||
23813 | |||
23814 | fi |
||
23815 | if test $ac_cv_header_sys_statfs_h = yes -o $ac_cv_header_sys_mount_h = yes; then : |
||
23816 | for ac_func in statfs |
||
23817 | do : |
||
23818 | ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs" |
||
23819 | if test "x$ac_cv_func_statfs" = xyes; then : |
||
23820 | cat >>confdefs.h <<_ACEOF |
||
23821 | #define HAVE_STATFS 1 |
||
23822 | _ACEOF |
||
23823 | |||
23824 | fi |
||
23825 | done |
||
23826 | |||
23827 | fi |
||
23828 | |||
23829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5 |
||
23830 | $as_echo_n "checking whether to use statfs or statvfs... " >&6; } |
||
23831 | # Some systems have both statfs and statvfs, pick the most "native" for these |
||
23832 | if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then : |
||
23833 | |||
23834 | # on solaris and irix, statfs doesn't even have the f_bavail field |
||
23835 | if test x$ac_cv_member_struct_statfs_f_bavail = xno; then : |
||
23836 | ac_cv_func_statfs=no |
||
23837 | else |
||
23838 | # else, at least on linux, statfs is the actual syscall |
||
23839 | ac_cv_func_statvfs=no |
||
23840 | fi |
||
23841 | |||
23842 | fi |
||
23843 | |||
23844 | if test x$ac_cv_func_statfs = xyes; then : |
||
23845 | |||
23846 | |||
23847 | $as_echo "#define USE_STATFS 1" >>confdefs.h |
||
23848 | |||
23849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5 |
||
23850 | $as_echo "statfs" >&6; } |
||
23851 | |||
23852 | elif test x$ac_cv_func_statvfs = xyes; then : |
||
23853 | |||
23854 | |||
23855 | $as_echo "#define USE_STATVFS 1" >>confdefs.h |
||
23856 | |||
23857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5 |
||
23858 | $as_echo "statvfs" >&6; } |
||
23859 | |||
23860 | else |
||
23861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5 |
||
23862 | $as_echo "neither" >&6; } |
||
23863 | fi |
||
23864 | |||
23865 | for ac_header in crt_externs.h |
||
23866 | do : |
||
23867 | ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default" |
||
23868 | if test "x$ac_cv_header_crt_externs_h" = xyes; then : |
||
23869 | cat >>confdefs.h <<_ACEOF |
||
23870 | #define HAVE_CRT_EXTERNS_H 1 |
||
23871 | _ACEOF |
||
23872 | |||
23873 | fi |
||
23874 | |||
23875 | done |
||
23876 | |||
23877 | for ac_func in _NSGetEnviron |
||
23878 | do : |
||
23879 | ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron" |
||
23880 | if test "x$ac_cv_func__NSGetEnviron" = xyes; then : |
||
23881 | cat >>confdefs.h <<_ACEOF |
||
23882 | #define HAVE__NSGETENVIRON 1 |
||
23883 | _ACEOF |
||
23884 | |||
23885 | fi |
||
23886 | done |
||
23887 | |||
23888 | |||
23889 | for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l |
||
23890 | do : |
||
23891 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
23892 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
23893 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
23894 | cat >>confdefs.h <<_ACEOF |
||
23895 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
23896 | _ACEOF |
||
23897 | |||
23898 | fi |
||
23899 | done |
||
23900 | |||
23901 | |||
23902 | # Internet address families |
||
23903 | if test $glib_native_win32 = yes; then |
||
23904 | glib_inet_includes=" |
||
23905 | #include <winsock2.h> |
||
23906 | " |
||
23907 | else |
||
23908 | glib_inet_includes=" |
||
23909 | #include <sys/types.h> |
||
23910 | #include <sys/socket.h> |
||
23911 | " |
||
23912 | fi |
||
23913 | |||
23914 | glib_failed=false |
||
23915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5 |
||
23916 | $as_echo_n "checking value of AF_INET... " >&6; } |
||
23917 | if ${glib_cv_value_AF_INET+:} false; then : |
||
23918 | $as_echo_n "(cached) " >&6 |
||
23919 | else |
||
23920 | if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET" "$glib_inet_includes"; then : |
||
23921 | |||
23922 | else |
||
23923 | glib_failed=true |
||
23924 | fi |
||
23925 | |||
23926 | |||
23927 | fi |
||
23928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5 |
||
23929 | $as_echo "$glib_cv_value_AF_INET" >&6; } |
||
23930 | |||
23931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5 |
||
23932 | $as_echo_n "checking value of AF_INET6... " >&6; } |
||
23933 | if ${glib_cv_value_AF_INET6+:} false; then : |
||
23934 | $as_echo_n "(cached) " >&6 |
||
23935 | else |
||
23936 | if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6" "$glib_inet_includes"; then : |
||
23937 | |||
23938 | else |
||
23939 | glib_failed=true |
||
23940 | fi |
||
23941 | |||
23942 | |||
23943 | fi |
||
23944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5 |
||
23945 | $as_echo "$glib_cv_value_AF_INET6" >&6; } |
||
23946 | |||
23947 | # winsock defines this even though it doesn't support it |
||
23948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5 |
||
23949 | $as_echo_n "checking value of AF_UNIX... " >&6; } |
||
23950 | if ${glib_cv_value_AF_UNIX+:} false; then : |
||
23951 | $as_echo_n "(cached) " >&6 |
||
23952 | else |
||
23953 | if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX" "$glib_inet_includes"; then : |
||
23954 | |||
23955 | else |
||
23956 | glib_failed=true |
||
23957 | fi |
||
23958 | |||
23959 | |||
23960 | fi |
||
23961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5 |
||
23962 | $as_echo "$glib_cv_value_AF_UNIX" >&6; } |
||
23963 | |||
23964 | if $glib_failed ; then |
||
23965 | as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5 |
||
23966 | fi |
||
23967 | |||
23968 | glib_failed=false |
||
23969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5 |
||
23970 | $as_echo_n "checking value of MSG_PEEK... " >&6; } |
||
23971 | if ${glib_cv_value_MSG_PEEK+:} false; then : |
||
23972 | $as_echo_n "(cached) " >&6 |
||
23973 | else |
||
23974 | if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK" "$glib_inet_includes"; then : |
||
23975 | |||
23976 | else |
||
23977 | glib_failed=true |
||
23978 | fi |
||
23979 | |||
23980 | |||
23981 | fi |
||
23982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5 |
||
23983 | $as_echo "$glib_cv_value_MSG_PEEK" >&6; } |
||
23984 | |||
23985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5 |
||
23986 | $as_echo_n "checking value of MSG_OOB... " >&6; } |
||
23987 | if ${glib_cv_value_MSG_OOB+:} false; then : |
||
23988 | $as_echo_n "(cached) " >&6 |
||
23989 | else |
||
23990 | if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB" "$glib_inet_includes"; then : |
||
23991 | |||
23992 | else |
||
23993 | glib_failed=true |
||
23994 | fi |
||
23995 | |||
23996 | |||
23997 | fi |
||
23998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5 |
||
23999 | $as_echo "$glib_cv_value_MSG_OOB" >&6; } |
||
24000 | |||
24001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5 |
||
24002 | $as_echo_n "checking value of MSG_DONTROUTE... " >&6; } |
||
24003 | if ${glib_cv_value_MSG_DONTROUTE+:} false; then : |
||
24004 | $as_echo_n "(cached) " >&6 |
||
24005 | else |
||
24006 | if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE" "$glib_inet_includes"; then : |
||
24007 | |||
24008 | else |
||
24009 | glib_failed=true |
||
24010 | fi |
||
24011 | |||
24012 | |||
24013 | fi |
||
24014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5 |
||
24015 | $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; } |
||
24016 | |||
24017 | if $glib_failed ; then |
||
24018 | as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5 |
||
24019 | fi |
||
24020 | |||
24021 | for ac_func in getprotobyname_r endservent if_nametoindex if_indextoname sendmmsg recvmmsg |
||
24022 | do : |
||
24023 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
24024 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
24025 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
24026 | cat >>confdefs.h <<_ACEOF |
||
24027 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
24028 | _ACEOF |
||
24029 | |||
24030 | fi |
||
24031 | done |
||
24032 | |||
24033 | |||
24034 | if test $glib_native_win32 = yes; then : |
||
24035 | |||
24036 | # <wspiapi.h> in the Windows SDK and in mingw-w64 has wrappers for |
||
24037 | # inline workarounds for getaddrinfo, getnameinfo and freeaddrinfo if |
||
24038 | # they aren't present at run-time (on Windows 2000). |
||
24039 | ac_fn_c_check_header_mongrel "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default" |
||
24040 | if test "x$ac_cv_header_wspiapi_h" = xyes; then : |
||
24041 | WSPIAPI_INCLUDE="#include <wspiapi.h>" |
||
24042 | fi |
||
24043 | |||
24044 | |||
24045 | |||
24046 | |||
24047 | else |
||
24048 | |||
24049 | # Android does not have C_IN in public headers, we define it wherever necessary |
||
24050 | if test $glib_native_android != yes; then : |
||
24051 | |||
24052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if arpa/nameser_compat.h is needed" >&5 |
||
24053 | $as_echo_n "checking if arpa/nameser_compat.h is needed... " >&6; } |
||
24054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24055 | /* end confdefs.h. */ |
||
24056 | #include <sys/types.h> |
||
24057 | #include <arpa/nameser.h> |
||
24058 | int |
||
24059 | main () |
||
24060 | { |
||
24061 | int qclass = C_IN; |
||
24062 | ; |
||
24063 | return 0; |
||
24064 | } |
||
24065 | _ACEOF |
||
24066 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
24068 | $as_echo "no" >&6; } |
||
24069 | else |
||
24070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24071 | /* end confdefs.h. */ |
||
24072 | #include <sys/types.h> |
||
24073 | #include <arpa/nameser.h> |
||
24074 | #include <arpa/nameser_compat.h> |
||
24075 | int |
||
24076 | main () |
||
24077 | { |
||
24078 | int qclass = C_IN; |
||
24079 | ; |
||
24080 | return 0; |
||
24081 | } |
||
24082 | _ACEOF |
||
24083 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
24085 | $as_echo "yes" >&6; } |
||
24086 | NAMESER_COMPAT_INCLUDE="#include <arpa/nameser_compat.h>" |
||
24087 | else |
||
24088 | as_fn_error $? "could not compile test program either way" "$LINENO" 5 |
||
24089 | fi |
||
24090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24091 | fi |
||
24092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24093 | fi |
||
24094 | |||
24095 | |||
24096 | # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150 |
||
24097 | NETWORK_LIBS="" |
||
24098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5 |
||
24099 | $as_echo_n "checking for res_query... " >&6; } |
||
24100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24101 | /* end confdefs.h. */ |
||
24102 | #include <sys/types.h> |
||
24103 | #include <netinet/in.h> |
||
24104 | #include <arpa/nameser.h> |
||
24105 | #include <resolv.h> |
||
24106 | |||
24107 | int |
||
24108 | main () |
||
24109 | { |
||
24110 | |||
24111 | res_query("test", 0, 0, (void *)0, 0); |
||
24112 | |||
24113 | ; |
||
24114 | return 0; |
||
24115 | } |
||
24116 | _ACEOF |
||
24117 | if ac_fn_c_try_link "$LINENO"; then : |
||
24118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
24119 | $as_echo "yes" >&6; } |
||
24120 | else |
||
24121 | save_libs="$LIBS" |
||
24122 | LIBS="-lresolv $LIBS" |
||
24123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24124 | /* end confdefs.h. */ |
||
24125 | #include <sys/types.h> |
||
24126 | #include <netinet/in.h> |
||
24127 | #include <arpa/nameser.h> |
||
24128 | #include <resolv.h> |
||
24129 | |||
24130 | int |
||
24131 | main () |
||
24132 | { |
||
24133 | |||
24134 | res_query("test", 0, 0, (void *)0, 0); |
||
24135 | |||
24136 | ; |
||
24137 | return 0; |
||
24138 | } |
||
24139 | _ACEOF |
||
24140 | if ac_fn_c_try_link "$LINENO"; then : |
||
24141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5 |
||
24142 | $as_echo "in -lresolv" >&6; } |
||
24143 | NETWORK_LIBS="-lresolv $NETWORK_LIBS" |
||
24144 | else |
||
24145 | LIBS="-lbind $save_libs" |
||
24146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24147 | /* end confdefs.h. */ |
||
24148 | #include <resolv.h> |
||
24149 | int |
||
24150 | main () |
||
24151 | { |
||
24152 | res_query("test", 0, 0, (void *)0, 0); |
||
24153 | ; |
||
24154 | return 0; |
||
24155 | } |
||
24156 | _ACEOF |
||
24157 | if ac_fn_c_try_link "$LINENO"; then : |
||
24158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5 |
||
24159 | $as_echo "in -lbind" >&6; } |
||
24160 | NETWORK_LIBS="-lbind $NETWORK_LIBS" |
||
24161 | else |
||
24162 | as_fn_error $? "not found" "$LINENO" 5 |
||
24163 | fi |
||
24164 | rm -f core conftest.err conftest.$ac_objext \ |
||
24165 | conftest$ac_exeext conftest.$ac_ext |
||
24166 | fi |
||
24167 | rm -f core conftest.err conftest.$ac_objext \ |
||
24168 | conftest$ac_exeext conftest.$ac_ext |
||
24169 | LIBS="$save_libs" |
||
24170 | fi |
||
24171 | rm -f core conftest.err conftest.$ac_objext \ |
||
24172 | conftest$ac_exeext conftest.$ac_ext |
||
24173 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
||
24174 | if test "x$ac_cv_func_socket" = xyes; then : |
||
24175 | : |
||
24176 | else |
||
24177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
||
24178 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
||
24179 | if ${ac_cv_lib_socket_socket+:} false; then : |
||
24180 | $as_echo_n "(cached) " >&6 |
||
24181 | else |
||
24182 | ac_check_lib_save_LIBS=$LIBS |
||
24183 | LIBS="-lsocket $LIBS" |
||
24184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24185 | /* end confdefs.h. */ |
||
24186 | |||
24187 | /* Override any GCC internal prototype to avoid an error. |
||
24188 | Use char because int might match the return type of a GCC |
||
24189 | builtin and then its argument prototype would still apply. */ |
||
24190 | #ifdef __cplusplus |
||
24191 | extern "C" |
||
24192 | #endif |
||
24193 | char socket (); |
||
24194 | int |
||
24195 | main () |
||
24196 | { |
||
24197 | return socket (); |
||
24198 | ; |
||
24199 | return 0; |
||
24200 | } |
||
24201 | _ACEOF |
||
24202 | if ac_fn_c_try_link "$LINENO"; then : |
||
24203 | ac_cv_lib_socket_socket=yes |
||
24204 | else |
||
24205 | ac_cv_lib_socket_socket=no |
||
24206 | fi |
||
24207 | rm -f core conftest.err conftest.$ac_objext \ |
||
24208 | conftest$ac_exeext conftest.$ac_ext |
||
24209 | LIBS=$ac_check_lib_save_LIBS |
||
24210 | fi |
||
24211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
||
24212 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
||
24213 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
||
24214 | NETWORK_LIBS="-lsocket $NETWORK_LIBS" |
||
24215 | else |
||
24216 | as_fn_error $? "Could not find socket()" "$LINENO" 5 |
||
24217 | fi |
||
24218 | |||
24219 | fi |
||
24220 | |||
24221 | save_libs="$LIBS" |
||
24222 | LIBS="$LIBS $NETWORK_LIBS" |
||
24223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init" >&5 |
||
24224 | $as_echo_n "checking for res_init... " >&6; } |
||
24225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24226 | /* end confdefs.h. */ |
||
24227 | #include <sys/types.h> |
||
24228 | #include <netinet/in.h> |
||
24229 | #include <arpa/nameser.h> |
||
24230 | #include <resolv.h> |
||
24231 | |||
24232 | int |
||
24233 | main () |
||
24234 | { |
||
24235 | |||
24236 | res_init(); |
||
24237 | |||
24238 | ; |
||
24239 | return 0; |
||
24240 | } |
||
24241 | _ACEOF |
||
24242 | if ac_fn_c_try_link "$LINENO"; then : |
||
24243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
24244 | $as_echo "yes" >&6; } |
||
24245 | |||
24246 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h |
||
24247 | |||
24248 | |||
24249 | else |
||
24250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
24251 | $as_echo "no" >&6; } |
||
24252 | fi |
||
24253 | rm -f core conftest.err conftest.$ac_objext \ |
||
24254 | conftest$ac_exeext conftest.$ac_ext |
||
24255 | LIBS="$save_libs" |
||
24256 | |||
24257 | fi |
||
24258 | |||
24259 | |||
24260 | ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h> |
||
24261 | " |
||
24262 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
||
24263 | |||
24264 | $as_echo "#define HAVE_NETLINK 1" >>confdefs.h |
||
24265 | |||
24266 | fi |
||
24267 | |||
24268 | |||
24269 | if test "$ac_cv_header_linux_netlink_h" = "yes"; then |
||
24270 | HAVE_NETLINK_TRUE= |
||
24271 | HAVE_NETLINK_FALSE='#' |
||
24272 | else |
||
24273 | HAVE_NETLINK_TRUE='#' |
||
24274 | HAVE_NETLINK_FALSE= |
||
24275 | fi |
||
24276 | |||
24277 | |||
24278 | ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h> |
||
24279 | " |
||
24280 | if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then : |
||
24281 | |||
24282 | |||
24283 | $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h |
||
24284 | |||
24285 | fi |
||
24286 | |||
24287 | |||
24288 | case $host in |
||
24289 | *-*-solaris* ) |
||
24290 | |||
24291 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
||
24292 | |||
24293 | |||
24294 | $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h |
||
24295 | |||
24296 | |||
24297 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
||
24298 | |||
24299 | ;; |
||
24300 | esac |
||
24301 | |||
24302 | if test "$ac_cv_func_statfs" = yes; then : |
||
24303 | |||
24304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5 |
||
24305 | $as_echo_n "checking number of arguments to statfs()... " >&6; } |
||
24306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24307 | /* end confdefs.h. */ |
||
24308 | #include <unistd.h> |
||
24309 | #ifdef HAVE_SYS_PARAM_H |
||
24310 | #include <sys/param.h> |
||
24311 | #endif |
||
24312 | #ifdef HAVE_SYS_VFS_H |
||
24313 | #include <sys/vfs.h> |
||
24314 | #endif |
||
24315 | #ifdef HAVE_SYS_MOUNT_H |
||
24316 | #include <sys/mount.h> |
||
24317 | #endif |
||
24318 | #ifdef HAVE_SYS_STATFS_H |
||
24319 | #include <sys/statfs.h> |
||
24320 | #endif |
||
24321 | int |
||
24322 | main () |
||
24323 | { |
||
24324 | struct statfs st; |
||
24325 | statfs("/", &st); |
||
24326 | ; |
||
24327 | return 0; |
||
24328 | } |
||
24329 | _ACEOF |
||
24330 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24331 | |||
24332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5 |
||
24333 | $as_echo "2" >&6; } |
||
24334 | |||
24335 | $as_echo "#define STATFS_ARGS 2" >>confdefs.h |
||
24336 | |||
24337 | else |
||
24338 | |||
24339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24340 | /* end confdefs.h. */ |
||
24341 | #include <unistd.h> |
||
24342 | #ifdef HAVE_SYS_PARAM_H |
||
24343 | #include <sys/param.h> |
||
24344 | #endif |
||
24345 | #ifdef HAVE_SYS_VFS_H |
||
24346 | #include <sys/vfs.h> |
||
24347 | #endif |
||
24348 | #ifdef HAVE_SYS_MOUNT_H |
||
24349 | #include <sys/mount.h> |
||
24350 | #endif |
||
24351 | #ifdef HAVE_SYS_STATFS_H |
||
24352 | #include <sys/statfs.h> |
||
24353 | #endif |
||
24354 | int |
||
24355 | main () |
||
24356 | { |
||
24357 | struct statfs st; |
||
24358 | statfs("/", &st, sizeof (st), 0); |
||
24359 | ; |
||
24360 | return 0; |
||
24361 | } |
||
24362 | _ACEOF |
||
24363 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24364 | |||
24365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5 |
||
24366 | $as_echo "4" >&6; } |
||
24367 | |||
24368 | $as_echo "#define STATFS_ARGS 4" >>confdefs.h |
||
24369 | |||
24370 | else |
||
24371 | |||
24372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
||
24373 | $as_echo "unknown" >&6; } |
||
24374 | as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5 |
||
24375 | fi |
||
24376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24377 | fi |
||
24378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24379 | |||
24380 | fi |
||
24381 | |||
24382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking open() option O_DIRECTORY" >&5 |
||
24383 | $as_echo_n "checking open() option O_DIRECTORY... " >&6; } |
||
24384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24385 | /* end confdefs.h. */ |
||
24386 | #include <fcntl.h> |
||
24387 | #include <sys/types.h> |
||
24388 | #include <sys/stat.h> |
||
24389 | int |
||
24390 | main () |
||
24391 | { |
||
24392 | open(0, O_DIRECTORY, 0); |
||
24393 | ; |
||
24394 | return 0; |
||
24395 | } |
||
24396 | _ACEOF |
||
24397 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24398 | |||
24399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
24400 | $as_echo "yes" >&6; } |
||
24401 | |||
24402 | $as_echo "#define HAVE_OPEN_O_DIRECTORY 1" >>confdefs.h |
||
24403 | |||
24404 | else |
||
24405 | |||
24406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
24407 | $as_echo "no" >&6; } |
||
24408 | fi |
||
24409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24410 | |||
24411 | # |
||
24412 | # Check whether to use an included printf |
||
24413 | # |
||
24414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5 |
||
24415 | $as_echo_n "checking for C99 vsnprintf... " >&6; } |
||
24416 | if ${ac_cv_func_vsnprintf_c99+:} false; then : |
||
24417 | $as_echo_n "(cached) " >&6 |
||
24418 | else |
||
24419 | if test "$cross_compiling" = yes; then : |
||
24420 | ac_cv_func_vsnprintf_c99=no |
||
24421 | else |
||
24422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24423 | /* end confdefs.h. */ |
||
24424 | #include <stdio.h> |
||
24425 | #include <stdarg.h> |
||
24426 | |||
24427 | int |
||
24428 | doit(char * s, ...) |
||
24429 | { |
||
24430 | char buffer[32]; |
||
24431 | va_list args; |
||
24432 | int r; |
||
24433 | |||
24434 | va_start(args, s); |
||
24435 | r = vsnprintf(buffer, 5, s, args); |
||
24436 | va_end(args); |
||
24437 | |||
24438 | if (r != 7) |
||
24439 | exit(1); |
||
24440 | |||
24441 | /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf() |
||
24442 | implementation. The above will return 7 but if you replace |
||
24443 | the size of the buffer with 0, it borks! */ |
||
24444 | va_start(args, s); |
||
24445 | r = vsnprintf(buffer, 0, s, args); |
||
24446 | va_end(args); |
||
24447 | |||
24448 | if (r != 7) |
||
24449 | exit(1); |
||
24450 | |||
24451 | exit(0); |
||
24452 | } |
||
24453 | |||
24454 | int |
||
24455 | main(void) |
||
24456 | { |
||
24457 | doit("1234567"); |
||
24458 | exit(1); |
||
24459 | } |
||
24460 | _ACEOF |
||
24461 | if ac_fn_c_try_run "$LINENO"; then : |
||
24462 | ac_cv_func_vsnprintf_c99=yes |
||
24463 | else |
||
24464 | ac_cv_func_vsnprintf_c99=no |
||
24465 | fi |
||
24466 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
24467 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
24468 | fi |
||
24469 | |||
24470 | fi |
||
24471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5 |
||
24472 | $as_echo "$ac_cv_func_vsnprintf_c99" >&6; } |
||
24473 | if test $ac_cv_func_vsnprintf_c99 = yes; then |
||
24474 | |||
24475 | $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h |
||
24476 | |||
24477 | fi |
||
24478 | |||
24479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5 |
||
24480 | $as_echo_n "checking whether printf supports positional parameters... " >&6; } |
||
24481 | if ${ac_cv_func_printf_unix98+:} false; then : |
||
24482 | $as_echo_n "(cached) " >&6 |
||
24483 | else |
||
24484 | if test "$cross_compiling" = yes; then : |
||
24485 | ac_cv_func_printf_unix98=no |
||
24486 | else |
||
24487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24488 | /* end confdefs.h. */ |
||
24489 | #include <stdio.h> |
||
24490 | |||
24491 | int |
||
24492 | main (void) |
||
24493 | { |
||
24494 | char buffer[128]; |
||
24495 | |||
24496 | sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3); |
||
24497 | if (strcmp ("2 3 1", buffer) == 0) |
||
24498 | exit (0); |
||
24499 | exit (1); |
||
24500 | } |
||
24501 | _ACEOF |
||
24502 | if ac_fn_c_try_run "$LINENO"; then : |
||
24503 | ac_cv_func_printf_unix98=yes |
||
24504 | else |
||
24505 | ac_cv_func_printf_unix98=no |
||
24506 | fi |
||
24507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
24508 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
24509 | fi |
||
24510 | |||
24511 | fi |
||
24512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5 |
||
24513 | $as_echo "$ac_cv_func_printf_unix98" >&6; } |
||
24514 | if test $ac_cv_func_printf_unix98 = yes; then |
||
24515 | |||
24516 | $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h |
||
24517 | |||
24518 | fi |
||
24519 | |||
24520 | |||
24521 | # Check whether --enable-included-printf was given. |
||
24522 | if test "${enable_included_printf+set}" = set; then : |
||
24523 | enableval=$enable_included_printf; enable_included_printf="$enableval" |
||
24524 | fi |
||
24525 | |||
24526 | |||
24527 | need_included_printf=no |
||
24528 | if test "x$enable_included_printf" = "xyes" ; then |
||
24529 | need_included_printf=yes |
||
24530 | fi |
||
24531 | if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then |
||
24532 | need_included_printf=yes |
||
24533 | fi |
||
24534 | if test "$ac_cv_func_printf_unix98" != "yes" ; then |
||
24535 | need_included_printf=yes |
||
24536 | fi |
||
24537 | if test "x$ac_cv_sizeof_long_long" = "x8" && |
||
24538 | test -z "$glib_cv_long_long_format" ; then |
||
24539 | need_included_printf=yes |
||
24540 | fi |
||
24541 | |||
24542 | if test "x$enable_included_printf" = "xno" && |
||
24543 | test "x$need_included_printf" = "xyes" ; then |
||
24544 | as_fn_error $? " |
||
24545 | *** Your C library's printf doesn't appear to have the features that |
||
24546 | *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5 |
||
24547 | fi |
||
24548 | |||
24549 | enable_included_printf=$need_included_printf |
||
24550 | |||
24551 | if test "$enable_included_printf" != "yes"; then |
||
24552 | HAVE_GOOD_PRINTF_TRUE= |
||
24553 | HAVE_GOOD_PRINTF_FALSE='#' |
||
24554 | else |
||
24555 | HAVE_GOOD_PRINTF_TRUE='#' |
||
24556 | HAVE_GOOD_PRINTF_FALSE= |
||
24557 | fi |
||
24558 | |||
24559 | if test "$enable_included_printf" != "yes"; then : |
||
24560 | |||
24561 | |||
24562 | $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h |
||
24563 | |||
24564 | |||
24565 | else |
||
24566 | |||
24567 | if test -z "$glib_cv_long_long_format" ; then |
||
24568 | glib_cv_long_long_format="ll" |
||
24569 | fi |
||
24570 | $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h |
||
24571 | |||
24572 | |||
24573 | fi |
||
24574 | |||
24575 | # Checks needed for gnulib vasnprintf |
||
24576 | |||
24577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
||
24578 | $as_echo_n "checking for signed... " >&6; } |
||
24579 | if ${bh_cv_c_signed+:} false; then : |
||
24580 | $as_echo_n "(cached) " >&6 |
||
24581 | else |
||
24582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24583 | /* end confdefs.h. */ |
||
24584 | |||
24585 | int |
||
24586 | main () |
||
24587 | { |
||
24588 | signed char x; |
||
24589 | ; |
||
24590 | return 0; |
||
24591 | } |
||
24592 | _ACEOF |
||
24593 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24594 | bh_cv_c_signed=yes |
||
24595 | else |
||
24596 | bh_cv_c_signed=no |
||
24597 | fi |
||
24598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24599 | fi |
||
24600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
||
24601 | $as_echo "$bh_cv_c_signed" >&6; } |
||
24602 | if test $bh_cv_c_signed = no; then |
||
24603 | |||
24604 | $as_echo "#define signed /**/" >>confdefs.h |
||
24605 | |||
24606 | fi |
||
24607 | |||
24608 | |||
24609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
||
24610 | $as_echo_n "checking for long long... " >&6; } |
||
24611 | if ${ac_cv_type_long_long+:} false; then : |
||
24612 | $as_echo_n "(cached) " >&6 |
||
24613 | else |
||
24614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24615 | /* end confdefs.h. */ |
||
24616 | long long ll = 1LL; int i = 63; |
||
24617 | int |
||
24618 | main () |
||
24619 | { |
||
24620 | long long llmax = (long long) -1; |
||
24621 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
||
24622 | ; |
||
24623 | return 0; |
||
24624 | } |
||
24625 | _ACEOF |
||
24626 | if ac_fn_c_try_link "$LINENO"; then : |
||
24627 | ac_cv_type_long_long=yes |
||
24628 | else |
||
24629 | ac_cv_type_long_long=no |
||
24630 | fi |
||
24631 | rm -f core conftest.err conftest.$ac_objext \ |
||
24632 | conftest$ac_exeext conftest.$ac_ext |
||
24633 | fi |
||
24634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
||
24635 | $as_echo "$ac_cv_type_long_long" >&6; } |
||
24636 | if test $ac_cv_type_long_long = yes; then |
||
24637 | |||
24638 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
||
24639 | |||
24640 | fi |
||
24641 | |||
24642 | |||
24643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
||
24644 | $as_echo_n "checking for long double... " >&6; } |
||
24645 | if ${gt_cv_c_long_double+:} false; then : |
||
24646 | $as_echo_n "(cached) " >&6 |
||
24647 | else |
||
24648 | if test "$GCC" = yes; then |
||
24649 | gt_cv_c_long_double=yes |
||
24650 | else |
||
24651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24652 | /* end confdefs.h. */ |
||
24653 | |||
24654 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
||
24655 | long double foo = 0.0; |
||
24656 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
||
24657 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
||
24658 | |||
24659 | int |
||
24660 | main () |
||
24661 | { |
||
24662 | |||
24663 | ; |
||
24664 | return 0; |
||
24665 | } |
||
24666 | _ACEOF |
||
24667 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24668 | gt_cv_c_long_double=yes |
||
24669 | else |
||
24670 | gt_cv_c_long_double=no |
||
24671 | fi |
||
24672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24673 | fi |
||
24674 | fi |
||
24675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
||
24676 | $as_echo "$gt_cv_c_long_double" >&6; } |
||
24677 | if test $gt_cv_c_long_double = yes; then |
||
24678 | |||
24679 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
||
24680 | |||
24681 | fi |
||
24682 | |||
24683 | |||
24684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
||
24685 | $as_echo_n "checking for wchar_t... " >&6; } |
||
24686 | if ${gt_cv_c_wchar_t+:} false; then : |
||
24687 | $as_echo_n "(cached) " >&6 |
||
24688 | else |
||
24689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24690 | /* end confdefs.h. */ |
||
24691 | #include <stddef.h> |
||
24692 | wchar_t foo = (wchar_t)'\0'; |
||
24693 | int |
||
24694 | main () |
||
24695 | { |
||
24696 | |||
24697 | ; |
||
24698 | return 0; |
||
24699 | } |
||
24700 | _ACEOF |
||
24701 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24702 | gt_cv_c_wchar_t=yes |
||
24703 | else |
||
24704 | gt_cv_c_wchar_t=no |
||
24705 | fi |
||
24706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24707 | fi |
||
24708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
||
24709 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
||
24710 | if test $gt_cv_c_wchar_t = yes; then |
||
24711 | |||
24712 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
||
24713 | |||
24714 | fi |
||
24715 | |||
24716 | |||
24717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
||
24718 | $as_echo_n "checking for wint_t... " >&6; } |
||
24719 | if ${gt_cv_c_wint_t+:} false; then : |
||
24720 | $as_echo_n "(cached) " >&6 |
||
24721 | else |
||
24722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24723 | /* end confdefs.h. */ |
||
24724 | #include <wchar.h> |
||
24725 | wint_t foo = (wchar_t)'\0'; |
||
24726 | int |
||
24727 | main () |
||
24728 | { |
||
24729 | |||
24730 | ; |
||
24731 | return 0; |
||
24732 | } |
||
24733 | _ACEOF |
||
24734 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24735 | gt_cv_c_wint_t=yes |
||
24736 | else |
||
24737 | gt_cv_c_wint_t=no |
||
24738 | fi |
||
24739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24740 | fi |
||
24741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
||
24742 | $as_echo "$gt_cv_c_wint_t" >&6; } |
||
24743 | if test $gt_cv_c_wint_t = yes; then |
||
24744 | |||
24745 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
||
24746 | |||
24747 | fi |
||
24748 | |||
24749 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
||
24750 | if test "x$ac_cv_type_size_t" = xyes; then : |
||
24751 | |||
24752 | else |
||
24753 | |||
24754 | cat >>confdefs.h <<_ACEOF |
||
24755 | #define size_t unsigned int |
||
24756 | _ACEOF |
||
24757 | |||
24758 | fi |
||
24759 | |||
24760 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
||
24761 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
||
24762 | |||
24763 | cat >>confdefs.h <<_ACEOF |
||
24764 | #define HAVE_PTRDIFF_T 1 |
||
24765 | _ACEOF |
||
24766 | |||
24767 | |||
24768 | fi |
||
24769 | |||
24770 | |||
24771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
||
24772 | $as_echo_n "checking for inttypes.h... " >&6; } |
||
24773 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
||
24774 | $as_echo_n "(cached) " >&6 |
||
24775 | else |
||
24776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24777 | /* end confdefs.h. */ |
||
24778 | #include <sys/types.h> |
||
24779 | #include <inttypes.h> |
||
24780 | int |
||
24781 | main () |
||
24782 | { |
||
24783 | uintmax_t i = (uintmax_t) -1; |
||
24784 | ; |
||
24785 | return 0; |
||
24786 | } |
||
24787 | _ACEOF |
||
24788 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24789 | jm_ac_cv_header_inttypes_h=yes |
||
24790 | else |
||
24791 | jm_ac_cv_header_inttypes_h=no |
||
24792 | fi |
||
24793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24794 | fi |
||
24795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
||
24796 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
||
24797 | if test $jm_ac_cv_header_inttypes_h = yes; then |
||
24798 | |||
24799 | cat >>confdefs.h <<_ACEOF |
||
24800 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
||
24801 | _ACEOF |
||
24802 | |||
24803 | fi |
||
24804 | |||
24805 | |||
24806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
||
24807 | $as_echo_n "checking for stdint.h... " >&6; } |
||
24808 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
||
24809 | $as_echo_n "(cached) " >&6 |
||
24810 | else |
||
24811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24812 | /* end confdefs.h. */ |
||
24813 | #include <sys/types.h> |
||
24814 | #include <stdint.h> |
||
24815 | int |
||
24816 | main () |
||
24817 | { |
||
24818 | uintmax_t i = (uintmax_t) -1; |
||
24819 | ; |
||
24820 | return 0; |
||
24821 | } |
||
24822 | _ACEOF |
||
24823 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24824 | jm_ac_cv_header_stdint_h=yes |
||
24825 | else |
||
24826 | jm_ac_cv_header_stdint_h=no |
||
24827 | fi |
||
24828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24829 | fi |
||
24830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
||
24831 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
||
24832 | if test $jm_ac_cv_header_stdint_h = yes; then |
||
24833 | |||
24834 | cat >>confdefs.h <<_ACEOF |
||
24835 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
||
24836 | _ACEOF |
||
24837 | |||
24838 | fi |
||
24839 | |||
24840 | |||
24841 | |||
24842 | |||
24843 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
||
24844 | |||
24845 | test $ac_cv_type_long_long = yes \ |
||
24846 | && ac_type='long long' \ |
||
24847 | || ac_type='long' |
||
24848 | |||
24849 | cat >>confdefs.h <<_ACEOF |
||
24850 | #define intmax_t $ac_type |
||
24851 | _ACEOF |
||
24852 | |||
24853 | else |
||
24854 | |||
24855 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
||
24856 | |||
24857 | fi |
||
24858 | |||
24859 | for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
||
24860 | do : |
||
24861 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
24862 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
24863 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
24864 | cat >>confdefs.h <<_ACEOF |
||
24865 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
24866 | _ACEOF |
||
24867 | |||
24868 | fi |
||
24869 | done |
||
24870 | |||
24871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5 |
||
24872 | $as_echo_n "checking for C99 snprintf... " >&6; } |
||
24873 | if ${ac_cv_func_snprintf_c99+:} false; then : |
||
24874 | $as_echo_n "(cached) " >&6 |
||
24875 | else |
||
24876 | if test "$cross_compiling" = yes; then : |
||
24877 | ac_cv_func_snprintf_c99=no |
||
24878 | else |
||
24879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24880 | /* end confdefs.h. */ |
||
24881 | #include <stdio.h> |
||
24882 | #include <stdarg.h> |
||
24883 | |||
24884 | int |
||
24885 | doit() |
||
24886 | { |
||
24887 | char buffer[32]; |
||
24888 | va_list args; |
||
24889 | int r; |
||
24890 | |||
24891 | r = snprintf(buffer, 5, "1234567"); |
||
24892 | |||
24893 | if (r != 7) |
||
24894 | exit(1); |
||
24895 | |||
24896 | r = snprintf(buffer, 0, "1234567"); |
||
24897 | |||
24898 | if (r != 7) |
||
24899 | exit(1); |
||
24900 | |||
24901 | r = snprintf(NULL, 0, "1234567"); |
||
24902 | |||
24903 | if (r != 7) |
||
24904 | exit(1); |
||
24905 | |||
24906 | exit(0); |
||
24907 | } |
||
24908 | |||
24909 | int |
||
24910 | main(void) |
||
24911 | { |
||
24912 | doit(); |
||
24913 | exit(1); |
||
24914 | } |
||
24915 | _ACEOF |
||
24916 | if ac_fn_c_try_run "$LINENO"; then : |
||
24917 | ac_cv_func_snprintf_c99=yes |
||
24918 | else |
||
24919 | ac_cv_func_snprintf_c99=no |
||
24920 | fi |
||
24921 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
24922 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
24923 | fi |
||
24924 | |||
24925 | fi |
||
24926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5 |
||
24927 | $as_echo "$ac_cv_func_snprintf_c99" >&6; } |
||
24928 | if test $ac_cv_func_snprintf_c99 = yes; then |
||
24929 | |||
24930 | $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h |
||
24931 | |||
24932 | fi |
||
24933 | |||
24934 | |||
24935 | # Check if <sys/select.h> needs to be included for fd_set |
||
24936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5 |
||
24937 | $as_echo_n "checking for fd_set... " >&6; } |
||
24938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24939 | /* end confdefs.h. */ |
||
24940 | #include <sys/types.h> |
||
24941 | int |
||
24942 | main () |
||
24943 | { |
||
24944 | fd_set readMask, writeMask; |
||
24945 | ; |
||
24946 | return 0; |
||
24947 | } |
||
24948 | _ACEOF |
||
24949 | if ac_fn_c_try_compile "$LINENO"; then : |
||
24950 | gtk_ok=yes |
||
24951 | else |
||
24952 | gtk_ok=no |
||
24953 | fi |
||
24954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
24955 | if test "$gtk_ok" = "yes"; then : |
||
24956 | |||
24957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5 |
||
24958 | $as_echo "yes, found in sys/types.h" >&6; } |
||
24959 | |||
24960 | else |
||
24961 | |||
24962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
24963 | /* end confdefs.h. */ |
||
24964 | #include <sys/select.h> |
||
24965 | |||
24966 | _ACEOF |
||
24967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
24968 | $EGREP "fd_set" >/dev/null 2>&1; then : |
||
24969 | gtk_ok=yes |
||
24970 | fi |
||
24971 | rm -f conftest* |
||
24972 | |||
24973 | if test "$gtk_ok" = "yes"; then |
||
24974 | # *** FIXME: give it a different name |
||
24975 | |||
24976 | $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
||
24977 | |||
24978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5 |
||
24979 | $as_echo "yes, found in sys/select.h" >&6; } |
||
24980 | else |
||
24981 | |||
24982 | $as_echo "#define NO_FD_SET 1" >>confdefs.h |
||
24983 | |||
24984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
24985 | $as_echo "no" >&6; } |
||
24986 | fi |
||
24987 | |||
24988 | fi |
||
24989 | |||
24990 | |||
24991 | ac_ext=c |
||
24992 | ac_cpp='$CPP $CPPFLAGS' |
||
24993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
24994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
24995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
24996 | |||
24997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5 |
||
24998 | $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; } |
||
24999 | if ${glib_cv_langinfo_codeset+:} false; then : |
||
25000 | $as_echo_n "(cached) " >&6 |
||
25001 | else |
||
25002 | |||
25003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25004 | /* end confdefs.h. */ |
||
25005 | #include <langinfo.h> |
||
25006 | int |
||
25007 | main () |
||
25008 | { |
||
25009 | char *codeset = nl_langinfo (CODESET); |
||
25010 | ; |
||
25011 | return 0; |
||
25012 | } |
||
25013 | _ACEOF |
||
25014 | if ac_fn_c_try_link "$LINENO"; then : |
||
25015 | glib_cv_langinfo_codeset=yes |
||
25016 | else |
||
25017 | glib_cv_langinfo_codeset=no |
||
25018 | fi |
||
25019 | rm -f core conftest.err conftest.$ac_objext \ |
||
25020 | conftest$ac_exeext conftest.$ac_ext |
||
25021 | fi |
||
25022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5 |
||
25023 | $as_echo "$glib_cv_langinfo_codeset" >&6; } |
||
25024 | if test x$glib_cv_langinfo_codeset = xyes; then |
||
25025 | |||
25026 | $as_echo "#define HAVE_CODESET 1" >>confdefs.h |
||
25027 | |||
25028 | fi |
||
25029 | |||
25030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5 |
||
25031 | $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; } |
||
25032 | if ${glib_cv_langinfo_time+:} false; then : |
||
25033 | $as_echo_n "(cached) " >&6 |
||
25034 | else |
||
25035 | |||
25036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25037 | /* end confdefs.h. */ |
||
25038 | #include <langinfo.h> |
||
25039 | int |
||
25040 | main () |
||
25041 | { |
||
25042 | char *str; |
||
25043 | str = nl_langinfo (PM_STR); |
||
25044 | str = nl_langinfo (D_T_FMT); |
||
25045 | str = nl_langinfo (D_FMT); |
||
25046 | str = nl_langinfo (T_FMT); |
||
25047 | str = nl_langinfo (T_FMT_AMPM); |
||
25048 | str = nl_langinfo (MON_1); |
||
25049 | str = nl_langinfo (ABMON_12); |
||
25050 | str = nl_langinfo (DAY_1); |
||
25051 | str = nl_langinfo (ABDAY_7); |
||
25052 | ; |
||
25053 | return 0; |
||
25054 | } |
||
25055 | _ACEOF |
||
25056 | if ac_fn_c_try_link "$LINENO"; then : |
||
25057 | glib_cv_langinfo_time=yes |
||
25058 | else |
||
25059 | glib_cv_langinfo_time=no |
||
25060 | fi |
||
25061 | rm -f core conftest.err conftest.$ac_objext \ |
||
25062 | conftest$ac_exeext conftest.$ac_ext |
||
25063 | fi |
||
25064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5 |
||
25065 | $as_echo "$glib_cv_langinfo_time" >&6; } |
||
25066 | if test x$glib_cv_langinfo_time = xyes; then |
||
25067 | |||
25068 | $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h |
||
25069 | |||
25070 | fi |
||
25071 | |||
25072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5 |
||
25073 | $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; } |
||
25074 | if ${glib_cv_langinfo_outdigit+:} false; then : |
||
25075 | $as_echo_n "(cached) " >&6 |
||
25076 | else |
||
25077 | |||
25078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25079 | /* end confdefs.h. */ |
||
25080 | #include <langinfo.h> |
||
25081 | int |
||
25082 | main () |
||
25083 | { |
||
25084 | char *str; |
||
25085 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB); |
||
25086 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB); |
||
25087 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB); |
||
25088 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB); |
||
25089 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB); |
||
25090 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB); |
||
25091 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB); |
||
25092 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB); |
||
25093 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB); |
||
25094 | str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB); |
||
25095 | ; |
||
25096 | return 0; |
||
25097 | } |
||
25098 | _ACEOF |
||
25099 | if ac_fn_c_try_link "$LINENO"; then : |
||
25100 | glib_cv_langinfo_outdigit=yes |
||
25101 | else |
||
25102 | glib_cv_langinfo_outdigit=no |
||
25103 | fi |
||
25104 | rm -f core conftest.err conftest.$ac_objext \ |
||
25105 | conftest$ac_exeext conftest.$ac_ext |
||
25106 | fi |
||
25107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5 |
||
25108 | $as_echo "$glib_cv_langinfo_outdigit" >&6; } |
||
25109 | if test x$glib_cv_langinfo_outdigit = xyes; then |
||
25110 | |||
25111 | $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h |
||
25112 | |||
25113 | fi |
||
25114 | ac_ext=c |
||
25115 | ac_cpp='$CPP $CPPFLAGS' |
||
25116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
25117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
25118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
25119 | |||
25120 | |||
25121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5 |
||
25122 | $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; } |
||
25123 | if ${glib_cv_compliant_posix_memalign+:} false; then : |
||
25124 | $as_echo_n "(cached) " >&6 |
||
25125 | else |
||
25126 | |||
25127 | glib_cv_compliant_posix_memalign=0 |
||
25128 | if test "$ac_cv_func_posix_memalign" = "yes" ; then |
||
25129 | if test "$cross_compiling" = yes; then : |
||
25130 | : |
||
25131 | else |
||
25132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25133 | /* end confdefs.h. */ |
||
25134 | |||
25135 | #define _XOPEN_SOURCE 600 |
||
25136 | #include <stdlib.h> /* posix_memalign() should be defined here */ |
||
25137 | /* some systems break if #include <malloc.h> used */ |
||
25138 | static void test_memalign (size_t boundary, size_t size) { |
||
25139 | void *mem = 0; |
||
25140 | if (posix_memalign (&mem, boundary, size) != 0 || !mem) |
||
25141 | exit (1); |
||
25142 | else |
||
25143 | free (mem); |
||
25144 | } |
||
25145 | int main() { |
||
25146 | test_memalign ( 128, 128 - 2 * sizeof (void*)); |
||
25147 | test_memalign ( 256, 256 - 2 * sizeof (void*)); |
||
25148 | test_memalign ( 512, 512 - 2 * sizeof (void*)); |
||
25149 | test_memalign ( 1024, 1024 - 2 * sizeof (void*)); |
||
25150 | test_memalign ( 2048, 2048 - 2 * sizeof (void*)); |
||
25151 | test_memalign ( 4096, 4096 - 2 * sizeof (void*)); |
||
25152 | test_memalign ( 8192, 8192 - 2 * sizeof (void*)); |
||
25153 | test_memalign (16384, 16384 - 2 * sizeof (void*)); |
||
25154 | test_memalign (32768, 32768 - 2 * sizeof (void*)); |
||
25155 | exit (0); /* success */ |
||
25156 | } |
||
25157 | |||
25158 | _ACEOF |
||
25159 | if ac_fn_c_try_run "$LINENO"; then : |
||
25160 | glib_cv_compliant_posix_memalign=1 |
||
25161 | fi |
||
25162 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
25163 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
25164 | fi |
||
25165 | |||
25166 | : |
||
25167 | fi |
||
25168 | |||
25169 | fi |
||
25170 | |||
25171 | if test "$glib_cv_compliant_posix_memalign" = "1"; then : |
||
25172 | |||
25173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
25174 | $as_echo "yes" >&6; } |
||
25175 | |||
25176 | $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h |
||
25177 | |||
25178 | |||
25179 | else |
||
25180 | |||
25181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
25182 | $as_echo "no" >&6; } |
||
25183 | |||
25184 | fi |
||
25185 | |||
25186 | |||
25187 | # Check for strlcpy |
||
25188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5 |
||
25189 | $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; } |
||
25190 | if ${glib_cv_have_strlcpy+:} false; then : |
||
25191 | $as_echo_n "(cached) " >&6 |
||
25192 | else |
||
25193 | |||
25194 | if test "$cross_compiling" = yes; then : |
||
25195 | glib_cv_have_strlcpy=no |
||
25196 | else |
||
25197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25198 | /* end confdefs.h. */ |
||
25199 | #include <stdlib.h> |
||
25200 | #include <string.h> |
||
25201 | int main() { |
||
25202 | char p[10]; |
||
25203 | (void) strlcpy (p, "hi", 10); |
||
25204 | if (strlcat (p, "bye", 0) != 3) |
||
25205 | return 1; |
||
25206 | return 0; |
||
25207 | } |
||
25208 | _ACEOF |
||
25209 | if ac_fn_c_try_run "$LINENO"; then : |
||
25210 | glib_cv_have_strlcpy=yes |
||
25211 | else |
||
25212 | glib_cv_have_strlcpy=no |
||
25213 | fi |
||
25214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
25215 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
25216 | fi |
||
25217 | |||
25218 | fi |
||
25219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5 |
||
25220 | $as_echo "$glib_cv_have_strlcpy" >&6; } |
||
25221 | if test "$glib_cv_have_strlcpy" = "yes"; then |
||
25222 | |||
25223 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
||
25224 | |||
25225 | fi |
||
25226 | |||
25227 | |||
25228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5 |
||
25229 | $as_echo_n "checking for an implementation of va_copy()... " >&6; } |
||
25230 | if ${glib_cv_va_copy+:} false; then : |
||
25231 | $as_echo_n "(cached) " >&6 |
||
25232 | else |
||
25233 | |||
25234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25235 | /* end confdefs.h. */ |
||
25236 | #include <stdarg.h> |
||
25237 | #include <stdlib.h> |
||
25238 | void f (int i, ...) { |
||
25239 | va_list args1, args2; |
||
25240 | va_start (args1, i); |
||
25241 | va_copy (args2, args1); |
||
25242 | if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) |
||
25243 | exit (1); |
||
25244 | va_end (args1); va_end (args2); |
||
25245 | } |
||
25246 | int main() { |
||
25247 | f (0, 42); |
||
25248 | return 0; |
||
25249 | } |
||
25250 | _ACEOF |
||
25251 | if ac_fn_c_try_link "$LINENO"; then : |
||
25252 | glib_cv_va_copy=yes |
||
25253 | else |
||
25254 | glib_cv_va_copy=no |
||
25255 | fi |
||
25256 | rm -f core conftest.err conftest.$ac_objext \ |
||
25257 | conftest$ac_exeext conftest.$ac_ext |
||
25258 | |||
25259 | fi |
||
25260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5 |
||
25261 | $as_echo "$glib_cv_va_copy" >&6; } |
||
25262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5 |
||
25263 | $as_echo_n "checking for an implementation of __va_copy()... " >&6; } |
||
25264 | if ${glib_cv___va_copy+:} false; then : |
||
25265 | $as_echo_n "(cached) " >&6 |
||
25266 | else |
||
25267 | |||
25268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25269 | /* end confdefs.h. */ |
||
25270 | #include <stdarg.h> |
||
25271 | #include <stdlib.h> |
||
25272 | void f (int i, ...) { |
||
25273 | va_list args1, args2; |
||
25274 | va_start (args1, i); |
||
25275 | __va_copy (args2, args1); |
||
25276 | if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) |
||
25277 | exit (1); |
||
25278 | va_end (args1); va_end (args2); |
||
25279 | } |
||
25280 | int main() { |
||
25281 | f (0, 42); |
||
25282 | return 0; |
||
25283 | } |
||
25284 | _ACEOF |
||
25285 | if ac_fn_c_try_link "$LINENO"; then : |
||
25286 | glib_cv___va_copy=yes |
||
25287 | else |
||
25288 | glib_cv___va_copy=no |
||
25289 | fi |
||
25290 | rm -f core conftest.err conftest.$ac_objext \ |
||
25291 | conftest$ac_exeext conftest.$ac_ext |
||
25292 | |||
25293 | fi |
||
25294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5 |
||
25295 | $as_echo "$glib_cv___va_copy" >&6; } |
||
25296 | |||
25297 | if test "x$glib_cv_va_copy" = "xyes"; then |
||
25298 | g_va_copy_func=va_copy |
||
25299 | else if test "x$glib_cv___va_copy" = "xyes"; then |
||
25300 | g_va_copy_func=__va_copy |
||
25301 | fi |
||
25302 | fi |
||
25303 | |||
25304 | if test -n "$g_va_copy_func"; then |
||
25305 | |||
25306 | cat >>confdefs.h <<_ACEOF |
||
25307 | #define G_VA_COPY $g_va_copy_func |
||
25308 | _ACEOF |
||
25309 | |||
25310 | fi |
||
25311 | |||
25312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5 |
||
25313 | $as_echo_n "checking whether va_lists can be copied by value... " >&6; } |
||
25314 | if ${glib_cv_va_val_copy+:} false; then : |
||
25315 | $as_echo_n "(cached) " >&6 |
||
25316 | else |
||
25317 | |||
25318 | if test "$cross_compiling" = yes; then : |
||
25319 | glib_cv_va_val_copy=yes |
||
25320 | else |
||
25321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25322 | /* end confdefs.h. */ |
||
25323 | #include <stdarg.h> |
||
25324 | #include <stdlib.h> |
||
25325 | void f (int i, ...) { |
||
25326 | va_list args1, args2; |
||
25327 | va_start (args1, i); |
||
25328 | args2 = args1; |
||
25329 | if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) |
||
25330 | exit (1); |
||
25331 | va_end (args1); va_end (args2); |
||
25332 | } |
||
25333 | int main() { |
||
25334 | f (0, 42); |
||
25335 | return 0; |
||
25336 | } |
||
25337 | _ACEOF |
||
25338 | if ac_fn_c_try_run "$LINENO"; then : |
||
25339 | glib_cv_va_val_copy=yes |
||
25340 | else |
||
25341 | glib_cv_va_val_copy=no |
||
25342 | fi |
||
25343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
25344 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
25345 | fi |
||
25346 | |||
25347 | |||
25348 | fi |
||
25349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5 |
||
25350 | $as_echo "$glib_cv_va_val_copy" >&6; } |
||
25351 | |||
25352 | if test "x$glib_cv_va_val_copy" = "xno"; then : |
||
25353 | |||
25354 | |||
25355 | $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h |
||
25356 | |||
25357 | |||
25358 | fi |
||
25359 | |||
25360 | G_MODULE_LIBS= |
||
25361 | G_MODULE_LIBS_EXTRA= |
||
25362 | G_MODULE_PLUGIN_LIBS= |
||
25363 | if test x"$glib_native_win32" = xyes; then |
||
25364 | G_MODULE_LDFLAGS= |
||
25365 | else |
||
25366 | export SED |
||
25367 | G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` |
||
25368 | fi |
||
25369 | G_MODULE_NEED_USCORE=0 |
||
25370 | G_MODULE_BROKEN_RTLD_GLOBAL=0 |
||
25371 | G_MODULE_HAVE_DLERROR=0 |
||
25372 | if test -z "$G_MODULE_IMPL"; then |
||
25373 | case "$host" in |
||
25374 | *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;; |
||
25375 | esac |
||
25376 | fi |
||
25377 | if test -z "$G_MODULE_IMPL"; then |
||
25378 | case "$host" in |
||
25379 | *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;; |
||
25380 | esac |
||
25381 | fi |
||
25382 | if test -z "$G_MODULE_IMPL"; then : |
||
25383 | |||
25384 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
||
25385 | if test "x$ac_cv_func_dlopen" = xyes; then : |
||
25386 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
||
25387 | if test "x$ac_cv_func_dlsym" = xyes; then : |
||
25388 | G_MODULE_IMPL=G_MODULE_IMPL_DL |
||
25389 | fi |
||
25390 | |||
25391 | fi |
||
25392 | |||
25393 | |||
25394 | fi |
||
25395 | if test -z "$G_MODULE_IMPL" ; then : |
||
25396 | |||
25397 | ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule" |
||
25398 | if test "x$ac_cv_func_NSLinkModule" = xyes; then : |
||
25399 | G_MODULE_IMPL=G_MODULE_IMPL_DYLD |
||
25400 | G_MODULE_NEED_USCORE=1 |
||
25401 | fi |
||
25402 | |||
25403 | |||
25404 | fi |
||
25405 | if test -z "$G_MODULE_IMPL"; then : |
||
25406 | |||
25407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
||
25408 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
||
25409 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
||
25410 | $as_echo_n "(cached) " >&6 |
||
25411 | else |
||
25412 | ac_check_lib_save_LIBS=$LIBS |
||
25413 | LIBS="-ldl $LIBS" |
||
25414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25415 | /* end confdefs.h. */ |
||
25416 | |||
25417 | /* Override any GCC internal prototype to avoid an error. |
||
25418 | Use char because int might match the return type of a GCC |
||
25419 | builtin and then its argument prototype would still apply. */ |
||
25420 | #ifdef __cplusplus |
||
25421 | extern "C" |
||
25422 | #endif |
||
25423 | char dlopen (); |
||
25424 | int |
||
25425 | main () |
||
25426 | { |
||
25427 | return dlopen (); |
||
25428 | ; |
||
25429 | return 0; |
||
25430 | } |
||
25431 | _ACEOF |
||
25432 | if ac_fn_c_try_link "$LINENO"; then : |
||
25433 | ac_cv_lib_dl_dlopen=yes |
||
25434 | else |
||
25435 | ac_cv_lib_dl_dlopen=no |
||
25436 | fi |
||
25437 | rm -f core conftest.err conftest.$ac_objext \ |
||
25438 | conftest$ac_exeext conftest.$ac_ext |
||
25439 | LIBS=$ac_check_lib_save_LIBS |
||
25440 | fi |
||
25441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
||
25442 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
||
25443 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
||
25444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
||
25445 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
||
25446 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
||
25447 | $as_echo_n "(cached) " >&6 |
||
25448 | else |
||
25449 | ac_check_lib_save_LIBS=$LIBS |
||
25450 | LIBS="-ldl $LIBS" |
||
25451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25452 | /* end confdefs.h. */ |
||
25453 | |||
25454 | /* Override any GCC internal prototype to avoid an error. |
||
25455 | Use char because int might match the return type of a GCC |
||
25456 | builtin and then its argument prototype would still apply. */ |
||
25457 | #ifdef __cplusplus |
||
25458 | extern "C" |
||
25459 | #endif |
||
25460 | char dlsym (); |
||
25461 | int |
||
25462 | main () |
||
25463 | { |
||
25464 | return dlsym (); |
||
25465 | ; |
||
25466 | return 0; |
||
25467 | } |
||
25468 | _ACEOF |
||
25469 | if ac_fn_c_try_link "$LINENO"; then : |
||
25470 | ac_cv_lib_dl_dlsym=yes |
||
25471 | else |
||
25472 | ac_cv_lib_dl_dlsym=no |
||
25473 | fi |
||
25474 | rm -f core conftest.err conftest.$ac_objext \ |
||
25475 | conftest$ac_exeext conftest.$ac_ext |
||
25476 | LIBS=$ac_check_lib_save_LIBS |
||
25477 | fi |
||
25478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
||
25479 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
||
25480 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
||
25481 | G_MODULE_LIBS=-ldl |
||
25482 | G_MODULE_IMPL=G_MODULE_IMPL_DL |
||
25483 | fi |
||
25484 | |||
25485 | fi |
||
25486 | |||
25487 | |||
25488 | fi |
||
25489 | if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL" ; then : |
||
25490 | |||
25491 | LIBS_orig="$LIBS" |
||
25492 | LDFLAGS_orig="$LDFLAGS" |
||
25493 | LIBS="$G_MODULE_LIBS $LIBS" |
||
25494 | LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS" |
||
25495 | echo "void glib_plugin_test(void) { }" > plugin.c |
||
25496 | ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \ |
||
25497 | ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1 |
||
25498 | ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \ |
||
25499 | ${LDFLAGS} -module -o plugin.la -export-dynamic \ |
||
25500 | -shrext ".o" -avoid-version plugin.lo \ |
||
25501 | -rpath /dont/care >/dev/null 2>&1 |
||
25502 | eval `./libtool --config | grep ^objdir` |
||
25503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5 |
||
25504 | $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; } |
||
25505 | if ${glib_cv_rtldglobal_broken+:} false; then : |
||
25506 | $as_echo_n "(cached) " >&6 |
||
25507 | else |
||
25508 | |||
25509 | if test "$cross_compiling" = yes; then : |
||
25510 | glib_cv_rtldglobal_broken=no |
||
25511 | else |
||
25512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25513 | /* end confdefs.h. */ |
||
25514 | |||
25515 | #include <dlfcn.h> |
||
25516 | #ifndef RTLD_GLOBAL |
||
25517 | # define RTLD_GLOBAL 0 |
||
25518 | #endif |
||
25519 | #ifndef RTLD_LAZY |
||
25520 | # define RTLD_LAZY 0 |
||
25521 | #endif |
||
25522 | int glib_plugin_test; |
||
25523 | int main () { |
||
25524 | void *handle, *global, *local; |
||
25525 | global = &glib_plugin_test; |
||
25526 | handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY); |
||
25527 | if (!handle) return 0; |
||
25528 | local = dlsym (handle, "glib_plugin_test"); |
||
25529 | return global == local; |
||
25530 | } |
||
25531 | _ACEOF |
||
25532 | if ac_fn_c_try_run "$LINENO"; then : |
||
25533 | glib_cv_rtldglobal_broken=no |
||
25534 | else |
||
25535 | glib_cv_rtldglobal_broken=yes |
||
25536 | fi |
||
25537 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
25538 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
25539 | fi |
||
25540 | |||
25541 | rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.* |
||
25542 | rmdir ${objdir} 2>/dev/null |
||
25543 | |||
25544 | fi |
||
25545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5 |
||
25546 | $as_echo "$glib_cv_rtldglobal_broken" >&6; } |
||
25547 | if test "x$glib_cv_rtldglobal_broken" = "xyes"; then |
||
25548 | G_MODULE_BROKEN_RTLD_GLOBAL=1 |
||
25549 | else |
||
25550 | G_MODULE_BROKEN_RTLD_GLOBAL=0 |
||
25551 | fi |
||
25552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5 |
||
25553 | $as_echo_n "checking for preceeding underscore in symbols... " >&6; } |
||
25554 | if ${glib_cv_uscore+:} false; then : |
||
25555 | $as_echo_n "(cached) " >&6 |
||
25556 | else |
||
25557 | |||
25558 | if test "$cross_compiling" = yes; then : |
||
25559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
25560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
25561 | as_fn_error $? "cannot run test program while cross compiling |
||
25562 | See \`config.log' for more details" "$LINENO" 5; } |
||
25563 | else |
||
25564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25565 | /* end confdefs.h. */ |
||
25566 | #include <dlfcn.h> |
||
25567 | int glib_underscore_test (void) { return 42; } |
||
25568 | int main() { |
||
25569 | void *f1 = (void*)0, *f2 = (void*)0, *handle; |
||
25570 | handle = dlopen ((void*)0, 0); |
||
25571 | if (handle) { |
||
25572 | f1 = dlsym (handle, "glib_underscore_test"); |
||
25573 | f2 = dlsym (handle, "_glib_underscore_test"); |
||
25574 | } return (!f2 || f1); |
||
25575 | } |
||
25576 | _ACEOF |
||
25577 | if ac_fn_c_try_run "$LINENO"; then : |
||
25578 | glib_cv_uscore=yes |
||
25579 | else |
||
25580 | glib_cv_uscore=no |
||
25581 | fi |
||
25582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
25583 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
25584 | fi |
||
25585 | |||
25586 | rm -f plugin.c plugin.$ac_objext plugin.lo |
||
25587 | |||
25588 | fi |
||
25589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5 |
||
25590 | $as_echo "$glib_cv_uscore" >&6; } |
||
25591 | if test "x${glib_cv_uscore+set}" != "xset" ; then |
||
25592 | as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5 |
||
25593 | fi |
||
25594 | |||
25595 | if test "x$glib_cv_uscore" = "xyes"; then |
||
25596 | G_MODULE_NEED_USCORE=1 |
||
25597 | else |
||
25598 | G_MODULE_NEED_USCORE=0 |
||
25599 | fi |
||
25600 | |||
25601 | LDFLAGS="$LDFLAGS_orig" |
||
25602 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
||
25603 | if test "x$ac_cv_func_dlerror" = xyes; then : |
||
25604 | G_MODULE_HAVE_DLERROR=1 |
||
25605 | else |
||
25606 | G_MODULE_HAVE_DLERROR=0 |
||
25607 | fi |
||
25608 | |||
25609 | LIBS="$LIBS_orig" |
||
25610 | |||
25611 | fi |
||
25612 | if test -z "$G_MODULE_IMPL"; then |
||
25613 | G_MODULE_IMPL=0 |
||
25614 | G_MODULE_SUPPORTED=false |
||
25615 | else |
||
25616 | G_MODULE_SUPPORTED=true |
||
25617 | fi |
||
25618 | |||
25619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5 |
||
25620 | $as_echo_n "checking for the suffix of module shared libraries... " >&6; } |
||
25621 | export SED |
||
25622 | shrext_cmds=`./libtool --config | grep '^shrext_cmds='` |
||
25623 | eval $shrext_cmds |
||
25624 | module=yes eval std_shrext=$shrext_cmds |
||
25625 | # chop the initial dot |
||
25626 | glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'` |
||
25627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5 |
||
25628 | $as_echo ".$glib_gmodule_suffix" >&6; } |
||
25629 | # any reason it may fail? |
||
25630 | if test "x$glib_gmodule_suffix" = x; then |
||
25631 | as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5 |
||
25632 | fi |
||
25633 | |||
25634 | |||
25635 | |||
25636 | |||
25637 | |||
25638 | |||
25639 | |||
25640 | |||
25641 | |||
25642 | |||
25643 | |||
25644 | |||
25645 | |||
25646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5 |
||
25647 | $as_echo_n "checking for gspawn implementation... " >&6; } |
||
25648 | case "$host" in |
||
25649 | *-*-mingw*) |
||
25650 | GSPAWN=gspawn-win32.lo |
||
25651 | ;; |
||
25652 | *) |
||
25653 | GSPAWN=gspawn.lo |
||
25654 | ;; |
||
25655 | esac |
||
25656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5 |
||
25657 | $as_echo "$GSPAWN" >&6; } |
||
25658 | |||
25659 | |||
25660 | |||
25661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5 |
||
25662 | $as_echo_n "checking for GIOChannel implementation... " >&6; } |
||
25663 | case "$host" in |
||
25664 | *-*-mingw*) |
||
25665 | GIO=giowin32.lo |
||
25666 | ;; |
||
25667 | *) |
||
25668 | GIO=giounix.lo |
||
25669 | ;; |
||
25670 | esac |
||
25671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5 |
||
25672 | $as_echo "$GIO" >&6; } |
||
25673 | |||
25674 | |||
25675 | |||
25676 | |||
25677 | # Check whether --with-gio-module-dir was given. |
||
25678 | if test "${with_gio_module_dir+set}" = set; then : |
||
25679 | withval=$with_gio_module_dir; |
||
25680 | else |
||
25681 | with_gio_module_dir='${libdir}/gio/modules' |
||
25682 | fi |
||
25683 | |||
25684 | GIO_MODULE_DIR=$with_gio_module_dir |
||
25685 | |||
25686 | |||
25687 | # Check whether --enable-selinux was given. |
||
25688 | if test "${enable_selinux+set}" = set; then : |
||
25689 | enableval=$enable_selinux; |
||
25690 | fi |
||
25691 | |||
25692 | msg_selinux=no |
||
25693 | SELINUX_LIBS= |
||
25694 | if test "x$enable_selinux" != "xno"; then : |
||
25695 | |||
25696 | |||
25697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
||
25698 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
||
25699 | if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : |
||
25700 | $as_echo_n "(cached) " >&6 |
||
25701 | else |
||
25702 | ac_check_lib_save_LIBS=$LIBS |
||
25703 | LIBS="-lselinux $LIBS" |
||
25704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25705 | /* end confdefs.h. */ |
||
25706 | |||
25707 | /* Override any GCC internal prototype to avoid an error. |
||
25708 | Use char because int might match the return type of a GCC |
||
25709 | builtin and then its argument prototype would still apply. */ |
||
25710 | #ifdef __cplusplus |
||
25711 | extern "C" |
||
25712 | #endif |
||
25713 | char is_selinux_enabled (); |
||
25714 | int |
||
25715 | main () |
||
25716 | { |
||
25717 | return is_selinux_enabled (); |
||
25718 | ; |
||
25719 | return 0; |
||
25720 | } |
||
25721 | _ACEOF |
||
25722 | if ac_fn_c_try_link "$LINENO"; then : |
||
25723 | ac_cv_lib_selinux_is_selinux_enabled=yes |
||
25724 | else |
||
25725 | ac_cv_lib_selinux_is_selinux_enabled=no |
||
25726 | fi |
||
25727 | rm -f core conftest.err conftest.$ac_objext \ |
||
25728 | conftest$ac_exeext conftest.$ac_ext |
||
25729 | LIBS=$ac_check_lib_save_LIBS |
||
25730 | fi |
||
25731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
||
25732 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
||
25733 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : |
||
25734 | for ac_header in selinux/selinux.h |
||
25735 | do : |
||
25736 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
||
25737 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : |
||
25738 | cat >>confdefs.h <<_ACEOF |
||
25739 | #define HAVE_SELINUX_SELINUX_H 1 |
||
25740 | _ACEOF |
||
25741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5 |
||
25742 | $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; } |
||
25743 | if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then : |
||
25744 | $as_echo_n "(cached) " >&6 |
||
25745 | else |
||
25746 | ac_check_lib_save_LIBS=$LIBS |
||
25747 | LIBS="-lselinux $LIBS" |
||
25748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25749 | /* end confdefs.h. */ |
||
25750 | |||
25751 | /* Override any GCC internal prototype to avoid an error. |
||
25752 | Use char because int might match the return type of a GCC |
||
25753 | builtin and then its argument prototype would still apply. */ |
||
25754 | #ifdef __cplusplus |
||
25755 | extern "C" |
||
25756 | #endif |
||
25757 | char lgetfilecon_raw (); |
||
25758 | int |
||
25759 | main () |
||
25760 | { |
||
25761 | return lgetfilecon_raw (); |
||
25762 | ; |
||
25763 | return 0; |
||
25764 | } |
||
25765 | _ACEOF |
||
25766 | if ac_fn_c_try_link "$LINENO"; then : |
||
25767 | ac_cv_lib_selinux_lgetfilecon_raw=yes |
||
25768 | else |
||
25769 | ac_cv_lib_selinux_lgetfilecon_raw=no |
||
25770 | fi |
||
25771 | rm -f core conftest.err conftest.$ac_objext \ |
||
25772 | conftest$ac_exeext conftest.$ac_ext |
||
25773 | LIBS=$ac_check_lib_save_LIBS |
||
25774 | fi |
||
25775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5 |
||
25776 | $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; } |
||
25777 | if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then : |
||
25778 | |||
25779 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
||
25780 | |||
25781 | SELINUX_LIBS="-lselinux" |
||
25782 | msg_selinux=yes |
||
25783 | fi |
||
25784 | |||
25785 | |||
25786 | fi |
||
25787 | |||
25788 | done |
||
25789 | |||
25790 | |||
25791 | fi |
||
25792 | |||
25793 | |||
25794 | fi |
||
25795 | |||
25796 | |||
25797 | inotify_support=no |
||
25798 | for ac_header in sys/inotify.h |
||
25799 | do : |
||
25800 | ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
||
25801 | if test "x$ac_cv_header_sys_inotify_h" = xyes; then : |
||
25802 | cat >>confdefs.h <<_ACEOF |
||
25803 | #define HAVE_SYS_INOTIFY_H 1 |
||
25804 | _ACEOF |
||
25805 | |||
25806 | for ac_func in inotify_init1 |
||
25807 | do : |
||
25808 | ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1" |
||
25809 | if test "x$ac_cv_func_inotify_init1" = xyes; then : |
||
25810 | cat >>confdefs.h <<_ACEOF |
||
25811 | #define HAVE_INOTIFY_INIT1 1 |
||
25812 | _ACEOF |
||
25813 | inotify_support=yes |
||
25814 | else |
||
25815 | inotify_support=no |
||
25816 | fi |
||
25817 | done |
||
25818 | |||
25819 | |||
25820 | fi |
||
25821 | |||
25822 | done |
||
25823 | |||
25824 | |||
25825 | if test "$inotify_support" = "yes"; then |
||
25826 | HAVE_INOTIFY_TRUE= |
||
25827 | HAVE_INOTIFY_FALSE='#' |
||
25828 | else |
||
25829 | HAVE_INOTIFY_TRUE='#' |
||
25830 | HAVE_INOTIFY_FALSE= |
||
25831 | fi |
||
25832 | |||
25833 | |||
25834 | kqueue_support=no |
||
25835 | for ac_header in sys/event.h |
||
25836 | do : |
||
25837 | ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
||
25838 | if test "x$ac_cv_header_sys_event_h" = xyes; then : |
||
25839 | cat >>confdefs.h <<_ACEOF |
||
25840 | #define HAVE_SYS_EVENT_H 1 |
||
25841 | _ACEOF |
||
25842 | |||
25843 | for ac_func in kqueue kevent |
||
25844 | do : |
||
25845 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
25846 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
25847 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
25848 | cat >>confdefs.h <<_ACEOF |
||
25849 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
25850 | _ACEOF |
||
25851 | kqueue_support=yes |
||
25852 | fi |
||
25853 | done |
||
25854 | |||
25855 | |||
25856 | fi |
||
25857 | |||
25858 | done |
||
25859 | |||
25860 | |||
25861 | if test "$kqueue_support" = "yes"; then |
||
25862 | HAVE_KQUEUE_TRUE= |
||
25863 | HAVE_KQUEUE_FALSE='#' |
||
25864 | else |
||
25865 | HAVE_KQUEUE_TRUE='#' |
||
25866 | HAVE_KQUEUE_FALSE= |
||
25867 | fi |
||
25868 | |||
25869 | |||
25870 | |||
25871 | should_disable_fam=no |
||
25872 | |||
25873 | # Check whether --enable-fam was given. |
||
25874 | if test "${enable_fam+set}" = set; then : |
||
25875 | enableval=$enable_fam; |
||
25876 | if test "x$enable_fam" = "xno"; then |
||
25877 | should_disable_fam=yes |
||
25878 | fi |
||
25879 | |||
25880 | |||
25881 | fi |
||
25882 | |||
25883 | fam_support=no |
||
25884 | FAM_LIBS= |
||
25885 | if test "x$should_disable_fam" = "xno"; then |
||
25886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5 |
||
25887 | $as_echo_n "checking for FAMOpen in -lfam... " >&6; } |
||
25888 | if ${ac_cv_lib_fam_FAMOpen+:} false; then : |
||
25889 | $as_echo_n "(cached) " >&6 |
||
25890 | else |
||
25891 | ac_check_lib_save_LIBS=$LIBS |
||
25892 | LIBS="-lfam $LIBS" |
||
25893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25894 | /* end confdefs.h. */ |
||
25895 | |||
25896 | /* Override any GCC internal prototype to avoid an error. |
||
25897 | Use char because int might match the return type of a GCC |
||
25898 | builtin and then its argument prototype would still apply. */ |
||
25899 | #ifdef __cplusplus |
||
25900 | extern "C" |
||
25901 | #endif |
||
25902 | char FAMOpen (); |
||
25903 | int |
||
25904 | main () |
||
25905 | { |
||
25906 | return FAMOpen (); |
||
25907 | ; |
||
25908 | return 0; |
||
25909 | } |
||
25910 | _ACEOF |
||
25911 | if ac_fn_c_try_link "$LINENO"; then : |
||
25912 | ac_cv_lib_fam_FAMOpen=yes |
||
25913 | else |
||
25914 | ac_cv_lib_fam_FAMOpen=no |
||
25915 | fi |
||
25916 | rm -f core conftest.err conftest.$ac_objext \ |
||
25917 | conftest$ac_exeext conftest.$ac_ext |
||
25918 | LIBS=$ac_check_lib_save_LIBS |
||
25919 | fi |
||
25920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5 |
||
25921 | $as_echo "$ac_cv_lib_fam_FAMOpen" >&6; } |
||
25922 | if test "x$ac_cv_lib_fam_FAMOpen" = xyes; then : |
||
25923 | for ac_header in fam.h |
||
25924 | do : |
||
25925 | ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default" |
||
25926 | if test "x$ac_cv_header_fam_h" = xyes; then : |
||
25927 | cat >>confdefs.h <<_ACEOF |
||
25928 | #define HAVE_FAM_H 1 |
||
25929 | _ACEOF |
||
25930 | |||
25931 | $as_echo "#define HAVE_FAM /**/" >>confdefs.h |
||
25932 | |||
25933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMNoExists in -lfam" >&5 |
||
25934 | $as_echo_n "checking for FAMNoExists in -lfam... " >&6; } |
||
25935 | if ${ac_cv_lib_fam_FAMNoExists+:} false; then : |
||
25936 | $as_echo_n "(cached) " >&6 |
||
25937 | else |
||
25938 | ac_check_lib_save_LIBS=$LIBS |
||
25939 | LIBS="-lfam $LIBS" |
||
25940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
25941 | /* end confdefs.h. */ |
||
25942 | |||
25943 | /* Override any GCC internal prototype to avoid an error. |
||
25944 | Use char because int might match the return type of a GCC |
||
25945 | builtin and then its argument prototype would still apply. */ |
||
25946 | #ifdef __cplusplus |
||
25947 | extern "C" |
||
25948 | #endif |
||
25949 | char FAMNoExists (); |
||
25950 | int |
||
25951 | main () |
||
25952 | { |
||
25953 | return FAMNoExists (); |
||
25954 | ; |
||
25955 | return 0; |
||
25956 | } |
||
25957 | _ACEOF |
||
25958 | if ac_fn_c_try_link "$LINENO"; then : |
||
25959 | ac_cv_lib_fam_FAMNoExists=yes |
||
25960 | else |
||
25961 | ac_cv_lib_fam_FAMNoExists=no |
||
25962 | fi |
||
25963 | rm -f core conftest.err conftest.$ac_objext \ |
||
25964 | conftest$ac_exeext conftest.$ac_ext |
||
25965 | LIBS=$ac_check_lib_save_LIBS |
||
25966 | fi |
||
25967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMNoExists" >&5 |
||
25968 | $as_echo "$ac_cv_lib_fam_FAMNoExists" >&6; } |
||
25969 | if test "x$ac_cv_lib_fam_FAMNoExists" = xyes; then : |
||
25970 | |||
25971 | $as_echo "#define HAVE_FAM_NO_EXISTS /**/" >>confdefs.h |
||
25972 | |||
25973 | fi |
||
25974 | |||
25975 | FAM_LIBS="-lfam" |
||
25976 | fam_support=yes |
||
25977 | else |
||
25978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (header files not found) ***" >&5 |
||
25979 | $as_echo "$as_me: WARNING: *** FAM support will not be built (header files not found) ***" >&2;} |
||
25980 | fi |
||
25981 | |||
25982 | done |
||
25983 | |||
25984 | else |
||
25985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (FAM library not found) ***" >&5 |
||
25986 | $as_echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) ***" >&2;} |
||
25987 | fi |
||
25988 | |||
25989 | |||
25990 | fi |
||
25991 | if test "$fam_support" = "yes"; then |
||
25992 | HAVE_FAM_TRUE= |
||
25993 | HAVE_FAM_FALSE='#' |
||
25994 | else |
||
25995 | HAVE_FAM_TRUE='#' |
||
25996 | HAVE_FAM_FALSE= |
||
25997 | fi |
||
25998 | |||
25999 | |||
26000 | |||
26001 | # Check whether --enable-xattr was given. |
||
26002 | if test "${enable_xattr+set}" = set; then : |
||
26003 | enableval=$enable_xattr; |
||
26004 | fi |
||
26005 | |||
26006 | msg_xattr=no |
||
26007 | XATTR_LIBS= |
||
26008 | if test "x$enable_xattr" != "xno"; then : |
||
26009 | |||
26010 | |||
26011 | |||
26012 | |||
26013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5 |
||
26014 | $as_echo_n "checking for getxattr in -lc... " >&6; } |
||
26015 | if ${ac_cv_lib_c_getxattr+:} false; then : |
||
26016 | $as_echo_n "(cached) " >&6 |
||
26017 | else |
||
26018 | ac_check_lib_save_LIBS=$LIBS |
||
26019 | LIBS="-lc $LIBS" |
||
26020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26021 | /* end confdefs.h. */ |
||
26022 | |||
26023 | /* Override any GCC internal prototype to avoid an error. |
||
26024 | Use char because int might match the return type of a GCC |
||
26025 | builtin and then its argument prototype would still apply. */ |
||
26026 | #ifdef __cplusplus |
||
26027 | extern "C" |
||
26028 | #endif |
||
26029 | char getxattr (); |
||
26030 | int |
||
26031 | main () |
||
26032 | { |
||
26033 | return getxattr (); |
||
26034 | ; |
||
26035 | return 0; |
||
26036 | } |
||
26037 | _ACEOF |
||
26038 | if ac_fn_c_try_link "$LINENO"; then : |
||
26039 | ac_cv_lib_c_getxattr=yes |
||
26040 | else |
||
26041 | ac_cv_lib_c_getxattr=no |
||
26042 | fi |
||
26043 | rm -f core conftest.err conftest.$ac_objext \ |
||
26044 | conftest$ac_exeext conftest.$ac_ext |
||
26045 | LIBS=$ac_check_lib_save_LIBS |
||
26046 | fi |
||
26047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5 |
||
26048 | $as_echo "$ac_cv_lib_c_getxattr" >&6; } |
||
26049 | if test "x$ac_cv_lib_c_getxattr" = xyes; then : |
||
26050 | for ac_header in sys/xattr.h |
||
26051 | do : |
||
26052 | ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
||
26053 | if test "x$ac_cv_header_sys_xattr_h" = xyes; then : |
||
26054 | cat >>confdefs.h <<_ACEOF |
||
26055 | #define HAVE_SYS_XATTR_H 1 |
||
26056 | _ACEOF |
||
26057 | |||
26058 | $as_echo "#define HAVE_XATTR 1" >>confdefs.h |
||
26059 | |||
26060 | msg_xattr=yes |
||
26061 | fi |
||
26062 | |||
26063 | done |
||
26064 | |||
26065 | |||
26066 | fi |
||
26067 | |||
26068 | |||
26069 | if test "x$msg_xattr" != "xyes"; then : |
||
26070 | |||
26071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5 |
||
26072 | $as_echo_n "checking for getxattr in -lattr... " >&6; } |
||
26073 | if ${ac_cv_lib_attr_getxattr+:} false; then : |
||
26074 | $as_echo_n "(cached) " >&6 |
||
26075 | else |
||
26076 | ac_check_lib_save_LIBS=$LIBS |
||
26077 | LIBS="-lattr $LIBS" |
||
26078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26079 | /* end confdefs.h. */ |
||
26080 | |||
26081 | /* Override any GCC internal prototype to avoid an error. |
||
26082 | Use char because int might match the return type of a GCC |
||
26083 | builtin and then its argument prototype would still apply. */ |
||
26084 | #ifdef __cplusplus |
||
26085 | extern "C" |
||
26086 | #endif |
||
26087 | char getxattr (); |
||
26088 | int |
||
26089 | main () |
||
26090 | { |
||
26091 | return getxattr (); |
||
26092 | ; |
||
26093 | return 0; |
||
26094 | } |
||
26095 | _ACEOF |
||
26096 | if ac_fn_c_try_link "$LINENO"; then : |
||
26097 | ac_cv_lib_attr_getxattr=yes |
||
26098 | else |
||
26099 | ac_cv_lib_attr_getxattr=no |
||
26100 | fi |
||
26101 | rm -f core conftest.err conftest.$ac_objext \ |
||
26102 | conftest$ac_exeext conftest.$ac_ext |
||
26103 | LIBS=$ac_check_lib_save_LIBS |
||
26104 | fi |
||
26105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5 |
||
26106 | $as_echo "$ac_cv_lib_attr_getxattr" >&6; } |
||
26107 | if test "x$ac_cv_lib_attr_getxattr" = xyes; then : |
||
26108 | for ac_header in attr/xattr.h |
||
26109 | do : |
||
26110 | ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" |
||
26111 | if test "x$ac_cv_header_attr_xattr_h" = xyes; then : |
||
26112 | cat >>confdefs.h <<_ACEOF |
||
26113 | #define HAVE_ATTR_XATTR_H 1 |
||
26114 | _ACEOF |
||
26115 | |||
26116 | $as_echo "#define HAVE_XATTR 1" >>confdefs.h |
||
26117 | |||
26118 | XATTR_LIBS="-lattr" |
||
26119 | msg_xattr=yes |
||
26120 | fi |
||
26121 | |||
26122 | done |
||
26123 | |||
26124 | |||
26125 | fi |
||
26126 | |||
26127 | |||
26128 | fi |
||
26129 | |||
26130 | if test "x$msg_xattr" = "xyes"; then : |
||
26131 | |||
26132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5 |
||
26133 | $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; } |
||
26134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26135 | /* end confdefs.h. */ |
||
26136 | |||
26137 | #include <stdio.h> |
||
26138 | #ifdef HAVE_SYS_TYPES_H |
||
26139 | #include <sys/types.h> |
||
26140 | #endif |
||
26141 | #ifdef HAVE_SYS_XATTR_H |
||
26142 | #include <sys/xattr.h> |
||
26143 | #elif HAVE_ATTR_XATTR_H |
||
26144 | #include <attr/xattr.h> |
||
26145 | #endif |
||
26146 | |||
26147 | int |
||
26148 | main () |
||
26149 | { |
||
26150 | ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW); |
||
26151 | ; |
||
26152 | return 0; |
||
26153 | } |
||
26154 | _ACEOF |
||
26155 | if ac_fn_c_try_compile "$LINENO"; then : |
||
26156 | |||
26157 | |||
26158 | $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h |
||
26159 | |||
26160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
26161 | $as_echo "yes" >&6; } |
||
26162 | |||
26163 | else |
||
26164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
26165 | $as_echo "no" >&6; } |
||
26166 | |||
26167 | fi |
||
26168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
26169 | |||
26170 | fi |
||
26171 | |||
26172 | fi |
||
26173 | |||
26174 | |||
26175 | # Check whether --enable-libelf was given. |
||
26176 | if test "${enable_libelf+set}" = set; then : |
||
26177 | enableval=$enable_libelf; |
||
26178 | fi |
||
26179 | |||
26180 | if test "x$enable_libelf" != "xno"; then : |
||
26181 | |||
26182 | |||
26183 | pkg_failed=no |
||
26184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBELF" >&5 |
||
26185 | $as_echo_n "checking for LIBELF... " >&6; } |
||
26186 | |||
26187 | if test -n "$LIBELF_CFLAGS"; then |
||
26188 | pkg_cv_LIBELF_CFLAGS="$LIBELF_CFLAGS" |
||
26189 | elif test -n "$PKG_CONFIG"; then |
||
26190 | if test -n "$PKG_CONFIG" && \ |
||
26191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf >= 0.8.12\""; } >&5 |
||
26192 | ($PKG_CONFIG --exists --print-errors "libelf >= 0.8.12") 2>&5 |
||
26193 | ac_status=$? |
||
26194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
26195 | test $ac_status = 0; }; then |
||
26196 | pkg_cv_LIBELF_CFLAGS=`$PKG_CONFIG --cflags "libelf >= 0.8.12" 2>/dev/null` |
||
26197 | test "x$?" != "x0" && pkg_failed=yes |
||
26198 | else |
||
26199 | pkg_failed=yes |
||
26200 | fi |
||
26201 | else |
||
26202 | pkg_failed=untried |
||
26203 | fi |
||
26204 | if test -n "$LIBELF_LIBS"; then |
||
26205 | pkg_cv_LIBELF_LIBS="$LIBELF_LIBS" |
||
26206 | elif test -n "$PKG_CONFIG"; then |
||
26207 | if test -n "$PKG_CONFIG" && \ |
||
26208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf >= 0.8.12\""; } >&5 |
||
26209 | ($PKG_CONFIG --exists --print-errors "libelf >= 0.8.12") 2>&5 |
||
26210 | ac_status=$? |
||
26211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
26212 | test $ac_status = 0; }; then |
||
26213 | pkg_cv_LIBELF_LIBS=`$PKG_CONFIG --libs "libelf >= 0.8.12" 2>/dev/null` |
||
26214 | test "x$?" != "x0" && pkg_failed=yes |
||
26215 | else |
||
26216 | pkg_failed=yes |
||
26217 | fi |
||
26218 | else |
||
26219 | pkg_failed=untried |
||
26220 | fi |
||
26221 | |||
26222 | |||
26223 | |||
26224 | if test $pkg_failed = yes; then |
||
26225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
26226 | $as_echo "no" >&6; } |
||
26227 | |||
26228 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
26229 | _pkg_short_errors_supported=yes |
||
26230 | else |
||
26231 | _pkg_short_errors_supported=no |
||
26232 | fi |
||
26233 | if test $_pkg_short_errors_supported = yes; then |
||
26234 | LIBELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelf >= 0.8.12" 2>&1` |
||
26235 | else |
||
26236 | LIBELF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelf >= 0.8.12" 2>&1` |
||
26237 | fi |
||
26238 | # Put the nasty error message in config.log where it belongs |
||
26239 | echo "$LIBELF_PKG_ERRORS" >&5 |
||
26240 | |||
26241 | have_libelf=maybe |
||
26242 | elif test $pkg_failed = untried; then |
||
26243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
26244 | $as_echo "no" >&6; } |
||
26245 | have_libelf=maybe |
||
26246 | else |
||
26247 | LIBELF_CFLAGS=$pkg_cv_LIBELF_CFLAGS |
||
26248 | LIBELF_LIBS=$pkg_cv_LIBELF_LIBS |
||
26249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
26250 | $as_echo "yes" >&6; } |
||
26251 | have_libelf=yes |
||
26252 | fi |
||
26253 | if test $have_libelf = maybe ; then : |
||
26254 | |||
26255 | glib_save_LIBS=$LIBS |
||
26256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
||
26257 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } |
||
26258 | if ${ac_cv_lib_elf_elf_begin+:} false; then : |
||
26259 | $as_echo_n "(cached) " >&6 |
||
26260 | else |
||
26261 | ac_check_lib_save_LIBS=$LIBS |
||
26262 | LIBS="-lelf $LIBS" |
||
26263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26264 | /* end confdefs.h. */ |
||
26265 | |||
26266 | /* Override any GCC internal prototype to avoid an error. |
||
26267 | Use char because int might match the return type of a GCC |
||
26268 | builtin and then its argument prototype would still apply. */ |
||
26269 | #ifdef __cplusplus |
||
26270 | extern "C" |
||
26271 | #endif |
||
26272 | char elf_begin (); |
||
26273 | int |
||
26274 | main () |
||
26275 | { |
||
26276 | return elf_begin (); |
||
26277 | ; |
||
26278 | return 0; |
||
26279 | } |
||
26280 | _ACEOF |
||
26281 | if ac_fn_c_try_link "$LINENO"; then : |
||
26282 | ac_cv_lib_elf_elf_begin=yes |
||
26283 | else |
||
26284 | ac_cv_lib_elf_elf_begin=no |
||
26285 | fi |
||
26286 | rm -f core conftest.err conftest.$ac_objext \ |
||
26287 | conftest$ac_exeext conftest.$ac_ext |
||
26288 | LIBS=$ac_check_lib_save_LIBS |
||
26289 | fi |
||
26290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
||
26291 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } |
||
26292 | if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : |
||
26293 | : |
||
26294 | else |
||
26295 | have_libelf=no |
||
26296 | fi |
||
26297 | |||
26298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5 |
||
26299 | $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; } |
||
26300 | if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then : |
||
26301 | $as_echo_n "(cached) " >&6 |
||
26302 | else |
||
26303 | ac_check_lib_save_LIBS=$LIBS |
||
26304 | LIBS="-lelf $LIBS" |
||
26305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26306 | /* end confdefs.h. */ |
||
26307 | |||
26308 | /* Override any GCC internal prototype to avoid an error. |
||
26309 | Use char because int might match the return type of a GCC |
||
26310 | builtin and then its argument prototype would still apply. */ |
||
26311 | #ifdef __cplusplus |
||
26312 | extern "C" |
||
26313 | #endif |
||
26314 | char elf_getshdrstrndx (); |
||
26315 | int |
||
26316 | main () |
||
26317 | { |
||
26318 | return elf_getshdrstrndx (); |
||
26319 | ; |
||
26320 | return 0; |
||
26321 | } |
||
26322 | _ACEOF |
||
26323 | if ac_fn_c_try_link "$LINENO"; then : |
||
26324 | ac_cv_lib_elf_elf_getshdrstrndx=yes |
||
26325 | else |
||
26326 | ac_cv_lib_elf_elf_getshdrstrndx=no |
||
26327 | fi |
||
26328 | rm -f core conftest.err conftest.$ac_objext \ |
||
26329 | conftest$ac_exeext conftest.$ac_ext |
||
26330 | LIBS=$ac_check_lib_save_LIBS |
||
26331 | fi |
||
26332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5 |
||
26333 | $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; } |
||
26334 | if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then : |
||
26335 | : |
||
26336 | else |
||
26337 | have_libelf=no |
||
26338 | fi |
||
26339 | |||
26340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrnum in -lelf" >&5 |
||
26341 | $as_echo_n "checking for elf_getshdrnum in -lelf... " >&6; } |
||
26342 | if ${ac_cv_lib_elf_elf_getshdrnum+:} false; then : |
||
26343 | $as_echo_n "(cached) " >&6 |
||
26344 | else |
||
26345 | ac_check_lib_save_LIBS=$LIBS |
||
26346 | LIBS="-lelf $LIBS" |
||
26347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26348 | /* end confdefs.h. */ |
||
26349 | |||
26350 | /* Override any GCC internal prototype to avoid an error. |
||
26351 | Use char because int might match the return type of a GCC |
||
26352 | builtin and then its argument prototype would still apply. */ |
||
26353 | #ifdef __cplusplus |
||
26354 | extern "C" |
||
26355 | #endif |
||
26356 | char elf_getshdrnum (); |
||
26357 | int |
||
26358 | main () |
||
26359 | { |
||
26360 | return elf_getshdrnum (); |
||
26361 | ; |
||
26362 | return 0; |
||
26363 | } |
||
26364 | _ACEOF |
||
26365 | if ac_fn_c_try_link "$LINENO"; then : |
||
26366 | ac_cv_lib_elf_elf_getshdrnum=yes |
||
26367 | else |
||
26368 | ac_cv_lib_elf_elf_getshdrnum=no |
||
26369 | fi |
||
26370 | rm -f core conftest.err conftest.$ac_objext \ |
||
26371 | conftest$ac_exeext conftest.$ac_ext |
||
26372 | LIBS=$ac_check_lib_save_LIBS |
||
26373 | fi |
||
26374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrnum" >&5 |
||
26375 | $as_echo "$ac_cv_lib_elf_elf_getshdrnum" >&6; } |
||
26376 | if test "x$ac_cv_lib_elf_elf_getshdrnum" = xyes; then : |
||
26377 | : |
||
26378 | else |
||
26379 | have_libelf=no |
||
26380 | fi |
||
26381 | |||
26382 | ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default" |
||
26383 | if test "x$ac_cv_header_libelf_h" = xyes; then : |
||
26384 | : |
||
26385 | else |
||
26386 | have_libelf=no |
||
26387 | fi |
||
26388 | |||
26389 | |||
26390 | LIBS=$glib_save_LIBS |
||
26391 | |||
26392 | if test $have_libelf != no; then |
||
26393 | LIBELF_LIBS=-lelf |
||
26394 | have_libelf=yes |
||
26395 | fi |
||
26396 | |||
26397 | fi |
||
26398 | |||
26399 | fi |
||
26400 | |||
26401 | if test x$have_libelf = xyes; then |
||
26402 | |||
26403 | $as_echo "#define HAVE_LIBELF 1" >>confdefs.h |
||
26404 | |||
26405 | fi |
||
26406 | |||
26407 | |||
26408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5 |
||
26409 | $as_echo_n "checking for platform-dependent source... " >&6; } |
||
26410 | case "$host" in |
||
26411 | *-*-cygwin*|*-*-mingw*) |
||
26412 | PLATFORMDEP=gwin32.lo |
||
26413 | ;; |
||
26414 | *) |
||
26415 | PLATFORMDEP= |
||
26416 | ;; |
||
26417 | esac |
||
26418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5 |
||
26419 | $as_echo "$PLATFORMDEP" >&6; } |
||
26420 | |||
26421 | |||
26422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5 |
||
26423 | $as_echo_n "checking whether to compile timeloop... " >&6; } |
||
26424 | case "$host" in |
||
26425 | *-*-cygwin*|*-*-mingw*|*-*-minix) |
||
26426 | enable_timeloop=no |
||
26427 | ;; |
||
26428 | *) |
||
26429 | enable_timeloop=yes |
||
26430 | ;; |
||
26431 | esac |
||
26432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5 |
||
26433 | $as_echo "$enable_timeloop" >&6; } |
||
26434 | if test x$enable_timeloop = xyes; then |
||
26435 | ENABLE_TIMELOOP_TRUE= |
||
26436 | ENABLE_TIMELOOP_FALSE='#' |
||
26437 | else |
||
26438 | ENABLE_TIMELOOP_TRUE='#' |
||
26439 | ENABLE_TIMELOOP_FALSE= |
||
26440 | fi |
||
26441 | |||
26442 | |||
26443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5 |
||
26444 | $as_echo_n "checking if building for some Win32 platform... " >&6; } |
||
26445 | case "$host" in |
||
26446 | *-*-mingw*|*-*-cygwin*) |
||
26447 | platform_win32=yes |
||
26448 | ;; |
||
26449 | *) |
||
26450 | platform_win32=no |
||
26451 | ;; |
||
26452 | esac |
||
26453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5 |
||
26454 | $as_echo "$platform_win32" >&6; } |
||
26455 | if test x$platform_win32 = xyes; then |
||
26456 | PLATFORM_WIN32_TRUE= |
||
26457 | PLATFORM_WIN32_FALSE='#' |
||
26458 | else |
||
26459 | PLATFORM_WIN32_TRUE='#' |
||
26460 | PLATFORM_WIN32_FALSE= |
||
26461 | fi |
||
26462 | |||
26463 | |||
26464 | |||
26465 | |||
26466 | # Check whether --with-threads was given. |
||
26467 | if test "${with_threads+set}" = set; then : |
||
26468 | withval=$with_threads; |
||
26469 | else |
||
26470 | with_threads=yes |
||
26471 | fi |
||
26472 | |||
26473 | |||
26474 | |||
26475 | THREAD_NO_IMPLEMENTATION="No thread implementation found." |
||
26476 | |||
26477 | FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your |
||
26478 | platform (normally it's "_REENTRANT"). I'll not use any flag on |
||
26479 | compilation now, but then your programs might not work. |
||
26480 | Please provide information on how it is done on your system." |
||
26481 | |||
26482 | LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation |
||
26483 | " |
||
26484 | |||
26485 | LIBS_NOT_FOUND_2=". Please choose another thread implementation or |
||
26486 | provide information on your thread implementation." |
||
26487 | |||
26488 | FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)' |
||
26489 | functions will not be MT-safe during their first call because |
||
26490 | there is no working 'getpwuid_r' on your system." |
||
26491 | |||
26492 | FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe |
||
26493 | because there is no 'localtime_r' on your system." |
||
26494 | |||
26495 | AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when |
||
26496 | linking threaded applications. As GLib cannot do that |
||
26497 | automatically, you will get an linkg error everytime you are |
||
26498 | not using the right compiler. In that case you have to relink |
||
26499 | with the right compiler. Ususally just '_r' is appended |
||
26500 | to the compiler name." |
||
26501 | |||
26502 | |||
26503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5 |
||
26504 | $as_echo_n "checking for thread implementation... " >&6; } |
||
26505 | |||
26506 | have_threads=no |
||
26507 | if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then : |
||
26508 | |||
26509 | if test "x$have_threads" = xno; then : |
||
26510 | |||
26511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26512 | /* end confdefs.h. */ |
||
26513 | #include <pthread.h> |
||
26514 | int |
||
26515 | main () |
||
26516 | { |
||
26517 | pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; |
||
26518 | ; |
||
26519 | return 0; |
||
26520 | } |
||
26521 | _ACEOF |
||
26522 | if ac_fn_c_try_compile "$LINENO"; then : |
||
26523 | have_threads=posix |
||
26524 | fi |
||
26525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
26526 | |||
26527 | fi |
||
26528 | # Tru64Unix requires -pthread to find pthread.h. See #103020 |
||
26529 | if test "x$have_threads" = xno; then |
||
26530 | glib_save_CPPFLAGS="$CPPFLAGS" |
||
26531 | CPPFLAGS="$CPPFLAGS -pthread" |
||
26532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26533 | /* end confdefs.h. */ |
||
26534 | #include <pthread.h> |
||
26535 | int |
||
26536 | main () |
||
26537 | { |
||
26538 | pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; |
||
26539 | ; |
||
26540 | return 0; |
||
26541 | } |
||
26542 | _ACEOF |
||
26543 | if ac_fn_c_try_compile "$LINENO"; then : |
||
26544 | have_threads=posix |
||
26545 | fi |
||
26546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
26547 | CPPFLAGS="$glib_save_CPPFLAGS" |
||
26548 | fi |
||
26549 | |||
26550 | fi |
||
26551 | if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then |
||
26552 | case $host in |
||
26553 | *-*-mingw*) |
||
26554 | have_threads=win32 |
||
26555 | ;; |
||
26556 | esac |
||
26557 | fi |
||
26558 | |||
26559 | if test "x$have_threads" = xno; then |
||
26560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5 |
||
26561 | $as_echo "none available" >&6; } |
||
26562 | as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5 |
||
26563 | else |
||
26564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5 |
||
26565 | $as_echo "$have_threads" >&6; } |
||
26566 | fi |
||
26567 | |||
26568 | |||
26569 | |||
26570 | G_THREAD_LIBS= |
||
26571 | G_THREAD_LIBS_EXTRA= |
||
26572 | G_THREAD_CFLAGS= |
||
26573 | |||
26574 | |||
26575 | |||
26576 | if test x"$have_threads" = xposix; then : |
||
26577 | |||
26578 | # First we test for posix, whether -pthread or -pthreads do the trick as |
||
26579 | # both CPPFLAG and LIBS. |
||
26580 | # One of them does for most gcc versions and some other platforms/compilers |
||
26581 | # too and could be considered as the canonical way to go. |
||
26582 | case $host in |
||
26583 | *-*-cygwin*|*-*-darwin*) |
||
26584 | # skip cygwin and darwin -pthread or -pthreads test |
||
26585 | ;; |
||
26586 | *-solaris*) |
||
26587 | # These compiler/linker flags work with both Sun Studio and gcc |
||
26588 | # Sun Studio expands -mt to -D_REENTRANT and -lthread |
||
26589 | # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread |
||
26590 | G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS" |
||
26591 | G_THREAD_LIBS="-lpthread -lthread" |
||
26592 | ;; |
||
26593 | *) |
||
26594 | for flag in pthread pthreads mt; do |
||
26595 | glib_save_CFLAGS="$CFLAGS" |
||
26596 | CFLAGS="$CFLAGS -$flag" |
||
26597 | if test "$cross_compiling" = yes; then : |
||
26598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26599 | /* end confdefs.h. */ |
||
26600 | |||
26601 | #include <pthread.h> |
||
26602 | int check_me = 0; |
||
26603 | void* func(void* data) {check_me = 42; return &check_me;} |
||
26604 | int main() |
||
26605 | { pthread_t t; |
||
26606 | void *ret; |
||
26607 | pthread_create (&t, 0, func, 0); |
||
26608 | pthread_join (t, &ret); |
||
26609 | return (check_me != 42 || ret != &check_me); |
||
26610 | } |
||
26611 | _ACEOF |
||
26612 | if ac_fn_c_try_link "$LINENO"; then : |
||
26613 | glib_flag_works=yes |
||
26614 | else |
||
26615 | glib_flag_works=no |
||
26616 | fi |
||
26617 | rm -f core conftest.err conftest.$ac_objext \ |
||
26618 | conftest$ac_exeext conftest.$ac_ext |
||
26619 | else |
||
26620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26621 | /* end confdefs.h. */ |
||
26622 | |||
26623 | #include <pthread.h> |
||
26624 | int check_me = 0; |
||
26625 | void* func(void* data) {check_me = 42; return &check_me;} |
||
26626 | int main() |
||
26627 | { pthread_t t; |
||
26628 | void *ret; |
||
26629 | pthread_create (&t, 0, func, 0); |
||
26630 | pthread_join (t, &ret); |
||
26631 | return (check_me != 42 || ret != &check_me); |
||
26632 | } |
||
26633 | _ACEOF |
||
26634 | if ac_fn_c_try_run "$LINENO"; then : |
||
26635 | glib_flag_works=yes |
||
26636 | else |
||
26637 | glib_flag_works=no |
||
26638 | fi |
||
26639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
26640 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
26641 | fi |
||
26642 | |||
26643 | CFLAGS="$glib_save_CFLAGS" |
||
26644 | if test $glib_flag_works = yes ; then |
||
26645 | G_THREAD_CFLAGS=-$flag |
||
26646 | G_THREAD_LIBS=-$flag |
||
26647 | break; |
||
26648 | fi |
||
26649 | done |
||
26650 | ;; |
||
26651 | esac |
||
26652 | |||
26653 | fi |
||
26654 | |||
26655 | if test x"$G_THREAD_CFLAGS" = x; then : |
||
26656 | |||
26657 | |||
26658 | # The canonical -pthread[s] does not work. Try something different. |
||
26659 | |||
26660 | case $host in |
||
26661 | *-aix*) |
||
26662 | if test x"$GCC" = xyes; then |
||
26663 | # GCC 3.0 and above needs -pthread. |
||
26664 | # Should be coverd by the case above. |
||
26665 | # GCC 2.x and below needs -mthreads |
||
26666 | G_THREAD_CFLAGS="-mthreads" |
||
26667 | G_THREAD_LIBS=$G_THREAD_CFLAGS |
||
26668 | else |
||
26669 | # We are probably using the aix compiler. Normaly a |
||
26670 | # program would have to be compiled with the _r variant |
||
26671 | # of the corresponding compiler, but we as GLib cannot |
||
26672 | # do that: but the good news is that for compiling the |
||
26673 | # only difference is the added -D_THREAD_SAFE compile |
||
26674 | # option. This is according to the "C for AIX User's |
||
26675 | # Guide". |
||
26676 | G_THREAD_CFLAGS="-D_THREAD_SAFE" |
||
26677 | fi |
||
26678 | ;; |
||
26679 | *-sysv5uw7*) # UnixWare 7 |
||
26680 | # We are not using gcc with -pthread. Catched above. |
||
26681 | G_THREAD_CFLAGS="-Kthread" |
||
26682 | G_THREAD_LIBS=$G_THREAD_CFLAGS |
||
26683 | ;; |
||
26684 | *-mingw*) |
||
26685 | # No flag needed when using MSVCRT.DLL |
||
26686 | G_THREAD_CFLAGS="" |
||
26687 | ;; |
||
26688 | *) |
||
26689 | G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise |
||
26690 | ;; |
||
26691 | esac |
||
26692 | |||
26693 | fi |
||
26694 | |||
26695 | # if we are not finding the localtime_r function, then we probably are |
||
26696 | # not using the proper multithread flag |
||
26697 | |||
26698 | glib_save_CPPFLAGS="$CPPFLAGS" |
||
26699 | CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS" |
||
26700 | |||
26701 | # First we test, whether localtime_r is declared in time.h |
||
26702 | # directly. Then we test whether a macro localtime_r exists, in |
||
26703 | # which case localtime_r in the test program is replaced and thus |
||
26704 | # if we still find localtime_r in the output, it is not defined as |
||
26705 | # a macro. |
||
26706 | |||
26707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26708 | /* end confdefs.h. */ |
||
26709 | #include <time.h> |
||
26710 | _ACEOF |
||
26711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
26712 | $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then : |
||
26713 | |||
26714 | else |
||
26715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26716 | /* end confdefs.h. */ |
||
26717 | #include <time.h> |
||
26718 | localtime_r(a,b) |
||
26719 | _ACEOF |
||
26720 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
26721 | $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then : |
||
26722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5 |
||
26723 | $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;} |
||
26724 | fi |
||
26725 | rm -f conftest* |
||
26726 | |||
26727 | fi |
||
26728 | rm -f conftest* |
||
26729 | |||
26730 | |||
26731 | CPPFLAGS="$glib_save_CPPFLAGS" |
||
26732 | |||
26733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5 |
||
26734 | $as_echo_n "checking thread related cflags... " >&6; } |
||
26735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5 |
||
26736 | $as_echo "$G_THREAD_CFLAGS" >&6; } |
||
26737 | CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS" |
||
26738 | |||
26739 | |||
26740 | if test x$have_threads = xposix; then : |
||
26741 | |||
26742 | glib_save_CPPFLAGS="$CPPFLAGS" |
||
26743 | CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES" |
||
26744 | if test x"$G_THREAD_LIBS" = x ; then : |
||
26745 | |||
26746 | case $host in |
||
26747 | *-aix*) |
||
26748 | # We are not using gcc (would have set G_THREAD_LIBS) and thus |
||
26749 | # probably using the aix compiler. |
||
26750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5 |
||
26751 | $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;} |
||
26752 | ;; |
||
26753 | *) |
||
26754 | G_THREAD_LIBS=error |
||
26755 | glib_save_LIBS="$LIBS" |
||
26756 | for thread_lib in "" pthread pthread32 pthreads thread; do |
||
26757 | if test x"$thread_lib" = x; then |
||
26758 | add_thread_lib="" |
||
26759 | IN="" |
||
26760 | else |
||
26761 | add_thread_lib="-l$thread_lib" |
||
26762 | IN=" in -l$thread_lib" |
||
26763 | fi |
||
26764 | if test x"$have_threads" = xposix; then |
||
26765 | defattr=0 |
||
26766 | else |
||
26767 | defattr=pthread_attr_default |
||
26768 | fi |
||
26769 | |||
26770 | LIBS="$add_thread_lib $glib_save_LIBS" |
||
26771 | |||
26772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5 |
||
26773 | $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; } |
||
26774 | if test "$cross_compiling" = yes; then : |
||
26775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26776 | /* end confdefs.h. */ |
||
26777 | |||
26778 | #include <pthread.h> |
||
26779 | int check_me = 0; |
||
26780 | void* func(void* data) {check_me = 42; return &check_me;} |
||
26781 | int main() |
||
26782 | { pthread_t t; |
||
26783 | void *ret; |
||
26784 | pthread_create (&t, $defattr, func, 0); |
||
26785 | pthread_join (t, &ret); |
||
26786 | return (check_me != 42 || ret != &check_me); |
||
26787 | } |
||
26788 | _ACEOF |
||
26789 | if ac_fn_c_try_link "$LINENO"; then : |
||
26790 | glib_result=yes |
||
26791 | else |
||
26792 | glib_result=no |
||
26793 | fi |
||
26794 | rm -f core conftest.err conftest.$ac_objext \ |
||
26795 | conftest$ac_exeext conftest.$ac_ext |
||
26796 | else |
||
26797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26798 | /* end confdefs.h. */ |
||
26799 | |||
26800 | #include <pthread.h> |
||
26801 | int check_me = 0; |
||
26802 | void* func(void* data) {check_me = 42; return &check_me;} |
||
26803 | int main() |
||
26804 | { pthread_t t; |
||
26805 | void *ret; |
||
26806 | pthread_create (&t, $defattr, func, 0); |
||
26807 | pthread_join (t, &ret); |
||
26808 | return (check_me != 42 || ret != &check_me); |
||
26809 | } |
||
26810 | _ACEOF |
||
26811 | if ac_fn_c_try_run "$LINENO"; then : |
||
26812 | glib_result=yes |
||
26813 | else |
||
26814 | glib_result=no |
||
26815 | fi |
||
26816 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
26817 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
26818 | fi |
||
26819 | |||
26820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5 |
||
26821 | $as_echo "$glib_result" >&6; } |
||
26822 | |||
26823 | if test "$glib_result" = "yes" ; then |
||
26824 | G_THREAD_LIBS="$add_thread_lib" |
||
26825 | break |
||
26826 | fi |
||
26827 | done |
||
26828 | if test "x$G_THREAD_LIBS" = xerror; then |
||
26829 | as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5 |
||
26830 | fi |
||
26831 | LIBS="$glib_save_LIBS" |
||
26832 | ;; |
||
26833 | esac |
||
26834 | |||
26835 | fi |
||
26836 | |||
26837 | g_threads_impl="POSIX" |
||
26838 | |||
26839 | $as_echo "#define THREADS_POSIX 1" >>confdefs.h |
||
26840 | |||
26841 | |||
26842 | CPPFLAGS="$glib_save_CPPFLAGS" |
||
26843 | |||
26844 | elif test x$have_threads = xwin32; then : |
||
26845 | |||
26846 | |||
26847 | $as_echo "#define THREADS_WIN32 1" >>confdefs.h |
||
26848 | |||
26849 | g_threads_impl="WIN32" |
||
26850 | |||
26851 | else |
||
26852 | |||
26853 | |||
26854 | $as_echo "#define THREADS_NONE 1" >>confdefs.h |
||
26855 | |||
26856 | g_threads_impl="NONE" |
||
26857 | G_THREAD_LIBS=error |
||
26858 | |||
26859 | fi |
||
26860 | if test "$g_threads_impl" = "POSIX"; then |
||
26861 | THREADS_POSIX_TRUE= |
||
26862 | THREADS_POSIX_FALSE='#' |
||
26863 | else |
||
26864 | THREADS_POSIX_TRUE='#' |
||
26865 | THREADS_POSIX_FALSE= |
||
26866 | fi |
||
26867 | |||
26868 | if test "$g_threads_impl" = "WIN32"; then |
||
26869 | THREADS_WIN32_TRUE= |
||
26870 | THREADS_WIN32_FALSE='#' |
||
26871 | else |
||
26872 | THREADS_WIN32_TRUE='#' |
||
26873 | THREADS_WIN32_FALSE= |
||
26874 | fi |
||
26875 | |||
26876 | if test "$g_threads_impl" = "NONE"; then |
||
26877 | THREADS_NONE_TRUE= |
||
26878 | THREADS_NONE_FALSE='#' |
||
26879 | else |
||
26880 | THREADS_NONE_TRUE='#' |
||
26881 | THREADS_NONE_FALSE= |
||
26882 | fi |
||
26883 | |||
26884 | |||
26885 | if test "x$G_THREAD_LIBS" = xerror; then |
||
26886 | as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5 |
||
26887 | fi |
||
26888 | |||
26889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5 |
||
26890 | $as_echo_n "checking thread related libraries... " >&6; } |
||
26891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5 |
||
26892 | $as_echo "$G_THREAD_LIBS" >&6; } |
||
26893 | |||
26894 | |||
26895 | glib_save_LIBS="$LIBS" |
||
26896 | # we are not doing the following for now, as this might require glib |
||
26897 | # to always be linked with the thread libs on some platforms. |
||
26898 | # LIBS="$LIBS $G_THREAD_LIBS" |
||
26899 | for ac_func in localtime_r gmtime_r getpwuid_r getgrgid_r |
||
26900 | do : |
||
26901 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
26902 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
26903 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
26904 | cat >>confdefs.h <<_ACEOF |
||
26905 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
26906 | _ACEOF |
||
26907 | |||
26908 | fi |
||
26909 | done |
||
26910 | |||
26911 | |||
26912 | LIBS="$G_THREAD_LIBS $LIBS" |
||
26913 | if test x"$have_threads" = xposix; then : |
||
26914 | |||
26915 | glib_save_CPPFLAGS="$CPPFLAGS" |
||
26916 | CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES" |
||
26917 | # This is not AC_CHECK_FUNC to also work with function |
||
26918 | # name mangling in header files. |
||
26919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5 |
||
26920 | $as_echo_n "checking for pthread_attr_setstacksize... " >&6; } |
||
26921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26922 | /* end confdefs.h. */ |
||
26923 | #include <pthread.h> |
||
26924 | int |
||
26925 | main () |
||
26926 | { |
||
26927 | pthread_attr_t t; pthread_attr_setstacksize(&t,0) |
||
26928 | ; |
||
26929 | return 0; |
||
26930 | } |
||
26931 | _ACEOF |
||
26932 | if ac_fn_c_try_link "$LINENO"; then : |
||
26933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
26934 | $as_echo "yes" >&6; } |
||
26935 | |||
26936 | $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h |
||
26937 | |||
26938 | else |
||
26939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
26940 | $as_echo "no" >&6; } |
||
26941 | fi |
||
26942 | rm -f core conftest.err conftest.$ac_objext \ |
||
26943 | conftest$ac_exeext conftest.$ac_ext |
||
26944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5 |
||
26945 | $as_echo_n "checking for pthread_condattr_setclock... " >&6; } |
||
26946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26947 | /* end confdefs.h. */ |
||
26948 | #include <pthread.h> |
||
26949 | int |
||
26950 | main () |
||
26951 | { |
||
26952 | pthread_condattr_t a; pthread_condattr_setclock(&a,0) |
||
26953 | ; |
||
26954 | return 0; |
||
26955 | } |
||
26956 | _ACEOF |
||
26957 | if ac_fn_c_try_link "$LINENO"; then : |
||
26958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
26959 | $as_echo "yes" >&6; } |
||
26960 | |||
26961 | $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h |
||
26962 | |||
26963 | else |
||
26964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
26965 | $as_echo "no" >&6; } |
||
26966 | fi |
||
26967 | rm -f core conftest.err conftest.$ac_objext \ |
||
26968 | conftest$ac_exeext conftest.$ac_ext |
||
26969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_timedwait_relative_np" >&5 |
||
26970 | $as_echo_n "checking for pthread_cond_timedwait_relative_np... " >&6; } |
||
26971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26972 | /* end confdefs.h. */ |
||
26973 | #include <pthread.h> |
||
26974 | int |
||
26975 | main () |
||
26976 | { |
||
26977 | pthread_cond_timedwait_relative_np(NULL, NULL, NULL) |
||
26978 | ; |
||
26979 | return 0; |
||
26980 | } |
||
26981 | _ACEOF |
||
26982 | if ac_fn_c_try_link "$LINENO"; then : |
||
26983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
26984 | $as_echo "yes" >&6; } |
||
26985 | |||
26986 | $as_echo "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h |
||
26987 | |||
26988 | else |
||
26989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
26990 | $as_echo "no" >&6; } |
||
26991 | fi |
||
26992 | rm -f core conftest.err conftest.$ac_objext \ |
||
26993 | conftest$ac_exeext conftest.$ac_ext |
||
26994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 |
||
26995 | $as_echo_n "checking for pthread_setname_np(const char*)... " >&6; } |
||
26996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
26997 | /* end confdefs.h. */ |
||
26998 | #include <pthread.h> |
||
26999 | int |
||
27000 | main () |
||
27001 | { |
||
27002 | pthread_setname_np("example") |
||
27003 | ; |
||
27004 | return 0; |
||
27005 | } |
||
27006 | _ACEOF |
||
27007 | if ac_fn_c_try_link "$LINENO"; then : |
||
27008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
27009 | $as_echo "yes" >&6; } |
||
27010 | |||
27011 | $as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h |
||
27012 | |||
27013 | else |
||
27014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27015 | $as_echo "no" >&6; } |
||
27016 | fi |
||
27017 | rm -f core conftest.err conftest.$ac_objext \ |
||
27018 | conftest$ac_exeext conftest.$ac_ext |
||
27019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 |
||
27020 | $as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } |
||
27021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27022 | /* end confdefs.h. */ |
||
27023 | #include <pthread.h> |
||
27024 | int |
||
27025 | main () |
||
27026 | { |
||
27027 | pthread_setname_np(pthread_self(), "example") |
||
27028 | ; |
||
27029 | return 0; |
||
27030 | } |
||
27031 | _ACEOF |
||
27032 | if ac_fn_c_try_link "$LINENO"; then : |
||
27033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
27034 | $as_echo "yes" >&6; } |
||
27035 | |||
27036 | $as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h |
||
27037 | |||
27038 | else |
||
27039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27040 | $as_echo "no" >&6; } |
||
27041 | fi |
||
27042 | rm -f core conftest.err conftest.$ac_objext \ |
||
27043 | conftest$ac_exeext conftest.$ac_ext |
||
27044 | CPPFLAGS="$glib_save_CPPFLAGS" |
||
27045 | |||
27046 | fi |
||
27047 | |||
27048 | LIBS="$glib_save_LIBS" |
||
27049 | |||
27050 | # now spit out all the warnings. |
||
27051 | if test "$ac_cv_func_getpwuid_r" != "yes"; then |
||
27052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5 |
||
27053 | $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;} |
||
27054 | fi |
||
27055 | if test "$ac_cv_func_localtime_r" != "yes"; then |
||
27056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5 |
||
27057 | $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;} |
||
27058 | fi |
||
27059 | |||
27060 | # |
||
27061 | # Hack to deal with: |
||
27062 | # |
||
27063 | # a) GCC < 3.3 for Linux doesn't include -lpthread when |
||
27064 | # building shared libraries with linux. |
||
27065 | # b) FreeBSD doesn't do this either. |
||
27066 | # |
||
27067 | case $host in |
||
27068 | *android*) |
||
27069 | G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS" |
||
27070 | ;; |
||
27071 | *-*-freebsd*|*-*-linux*) |
||
27072 | G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`" |
||
27073 | ;; |
||
27074 | *) |
||
27075 | G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS" |
||
27076 | ;; |
||
27077 | esac |
||
27078 | |||
27079 | |||
27080 | |||
27081 | |||
27082 | |||
27083 | |||
27084 | for ac_func in clock_gettime |
||
27085 | do : |
||
27086 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
||
27087 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
||
27088 | cat >>confdefs.h <<_ACEOF |
||
27089 | #define HAVE_CLOCK_GETTIME 1 |
||
27090 | _ACEOF |
||
27091 | |||
27092 | else |
||
27093 | |||
27094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
||
27095 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
||
27096 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
||
27097 | $as_echo_n "(cached) " >&6 |
||
27098 | else |
||
27099 | ac_check_lib_save_LIBS=$LIBS |
||
27100 | LIBS="-lrt $LIBS" |
||
27101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27102 | /* end confdefs.h. */ |
||
27103 | |||
27104 | /* Override any GCC internal prototype to avoid an error. |
||
27105 | Use char because int might match the return type of a GCC |
||
27106 | builtin and then its argument prototype would still apply. */ |
||
27107 | #ifdef __cplusplus |
||
27108 | extern "C" |
||
27109 | #endif |
||
27110 | char clock_gettime (); |
||
27111 | int |
||
27112 | main () |
||
27113 | { |
||
27114 | return clock_gettime (); |
||
27115 | ; |
||
27116 | return 0; |
||
27117 | } |
||
27118 | _ACEOF |
||
27119 | if ac_fn_c_try_link "$LINENO"; then : |
||
27120 | ac_cv_lib_rt_clock_gettime=yes |
||
27121 | else |
||
27122 | ac_cv_lib_rt_clock_gettime=no |
||
27123 | fi |
||
27124 | rm -f core conftest.err conftest.$ac_objext \ |
||
27125 | conftest$ac_exeext conftest.$ac_ext |
||
27126 | LIBS=$ac_check_lib_save_LIBS |
||
27127 | fi |
||
27128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
||
27129 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
||
27130 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
||
27131 | |||
27132 | G_THREAD_LIBS="$G_THREAD_LIBS -lrt" |
||
27133 | G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt" |
||
27134 | |||
27135 | fi |
||
27136 | |||
27137 | |||
27138 | fi |
||
27139 | done |
||
27140 | |||
27141 | |||
27142 | |||
27143 | |||
27144 | |||
27145 | |||
27146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5 |
||
27147 | $as_echo_n "checking for lock-free atomic intrinsics... " >&6; } |
||
27148 | if ${glib_cv_g_atomic_lock_free+:} false; then : |
||
27149 | $as_echo_n "(cached) " >&6 |
||
27150 | else |
||
27151 | |||
27152 | case $host in |
||
27153 | *-*-mingw*) |
||
27154 | glib_cv_g_atomic_lock_free=yes |
||
27155 | ;; |
||
27156 | *) |
||
27157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27158 | /* end confdefs.h. */ |
||
27159 | |||
27160 | int |
||
27161 | main () |
||
27162 | { |
||
27163 | volatile int atomic = 2;\ |
||
27164 | __sync_bool_compare_and_swap (&atomic, 2, 3); |
||
27165 | ; |
||
27166 | return 0; |
||
27167 | } |
||
27168 | _ACEOF |
||
27169 | if ac_fn_c_try_link "$LINENO"; then : |
||
27170 | glib_cv_g_atomic_lock_free=yes |
||
27171 | else |
||
27172 | glib_cv_g_atomic_lock_free=no |
||
27173 | fi |
||
27174 | rm -f core conftest.err conftest.$ac_objext \ |
||
27175 | conftest$ac_exeext conftest.$ac_ext |
||
27176 | if test "$glib_cv_g_atomic_lock_free" = "no"; then |
||
27177 | SAVE_CFLAGS="${CFLAGS}" |
||
27178 | CFLAGS="-march=i486" |
||
27179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27180 | /* end confdefs.h. */ |
||
27181 | |||
27182 | int |
||
27183 | main () |
||
27184 | { |
||
27185 | volatile int atomic = 2;\ |
||
27186 | __sync_bool_compare_and_swap (&atomic, 2, 3); |
||
27187 | ; |
||
27188 | return 0; |
||
27189 | } |
||
27190 | _ACEOF |
||
27191 | if ac_fn_c_try_link "$LINENO"; then : |
||
27192 | as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5 |
||
27193 | fi |
||
27194 | rm -f core conftest.err conftest.$ac_objext \ |
||
27195 | conftest$ac_exeext conftest.$ac_ext |
||
27196 | CFLAGS="${SAVE_CFLAGS}" |
||
27197 | fi |
||
27198 | ;; |
||
27199 | esac |
||
27200 | fi |
||
27201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5 |
||
27202 | $as_echo "$glib_cv_g_atomic_lock_free" >&6; } |
||
27203 | |||
27204 | |||
27205 | case $host in |
||
27206 | *-*-mingw*) |
||
27207 | ;; |
||
27208 | *) |
||
27209 | # Some compilers support atomic operations but do not define |
||
27210 | # __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, like clang |
||
27211 | if test x"$glib_cv_g_atomic_lock_free" = xyes; then |
||
27212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27213 | /* end confdefs.h. */ |
||
27214 | |||
27215 | int |
||
27216 | main () |
||
27217 | { |
||
27218 | __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4; |
||
27219 | ; |
||
27220 | return 0; |
||
27221 | } |
||
27222 | _ACEOF |
||
27223 | if ac_fn_c_try_link "$LINENO"; then : |
||
27224 | |||
27225 | else |
||
27226 | |||
27227 | $as_echo "#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1" >>confdefs.h |
||
27228 | |||
27229 | fi |
||
27230 | rm -f core conftest.err conftest.$ac_objext \ |
||
27231 | conftest$ac_exeext conftest.$ac_ext |
||
27232 | fi |
||
27233 | ;; |
||
27234 | esac |
||
27235 | |||
27236 | case $host_cpu in |
||
27237 | i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*) |
||
27238 | glib_memory_barrier_needed=no |
||
27239 | ;; |
||
27240 | sparc*|alpha*|powerpc*|ia64) |
||
27241 | glib_memory_barrier_needed=yes |
||
27242 | ;; |
||
27243 | *) |
||
27244 | glib_memory_barrier_needed=yes |
||
27245 | ;; |
||
27246 | esac |
||
27247 | |||
27248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5 |
||
27249 | $as_echo_n "checking for futex(2) system call... " >&6; } |
||
27250 | if ${glib_cv_futex+:} false; then : |
||
27251 | $as_echo_n "(cached) " >&6 |
||
27252 | else |
||
27253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27254 | /* end confdefs.h. */ |
||
27255 | |||
27256 | #include <linux/futex.h> |
||
27257 | #include <sys/syscall.h> |
||
27258 | #include <unistd.h> |
||
27259 | |||
27260 | int |
||
27261 | main () |
||
27262 | { |
||
27263 | |||
27264 | syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT); |
||
27265 | |||
27266 | ; |
||
27267 | return 0; |
||
27268 | } |
||
27269 | _ACEOF |
||
27270 | if ac_fn_c_try_compile "$LINENO"; then : |
||
27271 | glib_cv_futex=yes |
||
27272 | else |
||
27273 | glib_cv_futex=no |
||
27274 | fi |
||
27275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
27276 | fi |
||
27277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5 |
||
27278 | $as_echo "$glib_cv_futex" >&6; } |
||
27279 | if test x"$glib_cv_futex" = xyes; then |
||
27280 | |||
27281 | $as_echo "#define HAVE_FUTEX 1" >>confdefs.h |
||
27282 | |||
27283 | fi |
||
27284 | |||
27285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5 |
||
27286 | $as_echo_n "checking for eventfd(2) system call... " >&6; } |
||
27287 | if ${glib_cv_eventfd+:} false; then : |
||
27288 | $as_echo_n "(cached) " >&6 |
||
27289 | else |
||
27290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27291 | /* end confdefs.h. */ |
||
27292 | |||
27293 | #include <sys/eventfd.h> |
||
27294 | #include <unistd.h> |
||
27295 | |||
27296 | int |
||
27297 | main () |
||
27298 | { |
||
27299 | |||
27300 | eventfd (0, EFD_CLOEXEC); |
||
27301 | |||
27302 | ; |
||
27303 | return 0; |
||
27304 | } |
||
27305 | _ACEOF |
||
27306 | if ac_fn_c_try_compile "$LINENO"; then : |
||
27307 | glib_cv_eventfd=yes |
||
27308 | else |
||
27309 | glib_cv_eventfd=no |
||
27310 | fi |
||
27311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
27312 | fi |
||
27313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5 |
||
27314 | $as_echo "$glib_cv_eventfd" >&6; } |
||
27315 | if test x"$glib_cv_eventfd" = x"yes"; then |
||
27316 | |||
27317 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
||
27318 | |||
27319 | fi |
||
27320 | if test "$glib_cv_eventfd" = "yes"; then |
||
27321 | HAVE_EVENTFD_TRUE= |
||
27322 | HAVE_EVENTFD_FALSE='#' |
||
27323 | else |
||
27324 | HAVE_EVENTFD_TRUE='#' |
||
27325 | HAVE_EVENTFD_FALSE= |
||
27326 | fi |
||
27327 | |||
27328 | |||
27329 | |||
27330 | glib_poll_includes=" |
||
27331 | #include <sys/types.h> |
||
27332 | #include <poll.h> |
||
27333 | " |
||
27334 | |||
27335 | if test $ac_cv_header_sys_types_h = yes && |
||
27336 | test $ac_cv_func_poll = yes ; then : |
||
27337 | |||
27338 | glib_failed=false |
||
27339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5 |
||
27340 | $as_echo_n "checking value of POLLIN... " >&6; } |
||
27341 | if ${glib_cv_value_POLLIN+:} false; then : |
||
27342 | $as_echo_n "(cached) " >&6 |
||
27343 | else |
||
27344 | if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN" "$glib_poll_includes"; then : |
||
27345 | |||
27346 | else |
||
27347 | glib_failed=true |
||
27348 | fi |
||
27349 | |||
27350 | |||
27351 | fi |
||
27352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5 |
||
27353 | $as_echo "$glib_cv_value_POLLIN" >&6; } |
||
27354 | |||
27355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5 |
||
27356 | $as_echo_n "checking value of POLLOUT... " >&6; } |
||
27357 | if ${glib_cv_value_POLLOUT+:} false; then : |
||
27358 | $as_echo_n "(cached) " >&6 |
||
27359 | else |
||
27360 | if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT" "$glib_poll_includes"; then : |
||
27361 | |||
27362 | else |
||
27363 | glib_failed=true |
||
27364 | fi |
||
27365 | |||
27366 | |||
27367 | fi |
||
27368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5 |
||
27369 | $as_echo "$glib_cv_value_POLLOUT" >&6; } |
||
27370 | |||
27371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5 |
||
27372 | $as_echo_n "checking value of POLLPRI... " >&6; } |
||
27373 | if ${glib_cv_value_POLLPRI+:} false; then : |
||
27374 | $as_echo_n "(cached) " >&6 |
||
27375 | else |
||
27376 | if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI" "$glib_poll_includes"; then : |
||
27377 | |||
27378 | else |
||
27379 | glib_failed=true |
||
27380 | fi |
||
27381 | |||
27382 | |||
27383 | fi |
||
27384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5 |
||
27385 | $as_echo "$glib_cv_value_POLLPRI" >&6; } |
||
27386 | |||
27387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5 |
||
27388 | $as_echo_n "checking value of POLLERR... " >&6; } |
||
27389 | if ${glib_cv_value_POLLERR+:} false; then : |
||
27390 | $as_echo_n "(cached) " >&6 |
||
27391 | else |
||
27392 | if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR" "$glib_poll_includes"; then : |
||
27393 | |||
27394 | else |
||
27395 | glib_failed=true |
||
27396 | fi |
||
27397 | |||
27398 | |||
27399 | fi |
||
27400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5 |
||
27401 | $as_echo "$glib_cv_value_POLLERR" >&6; } |
||
27402 | |||
27403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5 |
||
27404 | $as_echo_n "checking value of POLLHUP... " >&6; } |
||
27405 | if ${glib_cv_value_POLLHUP+:} false; then : |
||
27406 | $as_echo_n "(cached) " >&6 |
||
27407 | else |
||
27408 | if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP" "$glib_poll_includes"; then : |
||
27409 | |||
27410 | else |
||
27411 | glib_failed=true |
||
27412 | fi |
||
27413 | |||
27414 | |||
27415 | fi |
||
27416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5 |
||
27417 | $as_echo "$glib_cv_value_POLLHUP" >&6; } |
||
27418 | |||
27419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5 |
||
27420 | $as_echo_n "checking value of POLLNVAL... " >&6; } |
||
27421 | if ${glib_cv_value_POLLNVAL+:} false; then : |
||
27422 | $as_echo_n "(cached) " >&6 |
||
27423 | else |
||
27424 | if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL" "$glib_poll_includes"; then : |
||
27425 | |||
27426 | else |
||
27427 | glib_failed=true |
||
27428 | fi |
||
27429 | |||
27430 | |||
27431 | fi |
||
27432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5 |
||
27433 | $as_echo "$glib_cv_value_POLLNVAL" >&6; } |
||
27434 | |||
27435 | if $glib_failed ; then |
||
27436 | as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5 |
||
27437 | fi |
||
27438 | |||
27439 | else |
||
27440 | |||
27441 | glib_cv_value_POLLIN=1 |
||
27442 | glib_cv_value_POLLOUT=4 |
||
27443 | glib_cv_value_POLLPRI=2 |
||
27444 | glib_cv_value_POLLERR=8 |
||
27445 | glib_cv_value_POLLHUP=16 |
||
27446 | glib_cv_value_POLLNVAL=32 |
||
27447 | |||
27448 | fi |
||
27449 | |||
27450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5 |
||
27451 | $as_echo_n "checking for broken poll... " >&6; } |
||
27452 | if test "$cross_compiling" = yes; then : |
||
27453 | broken_poll="no (cross compiling)" |
||
27454 | else |
||
27455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27456 | /* end confdefs.h. */ |
||
27457 | |||
27458 | #include <stdlib.h> |
||
27459 | #include <fcntl.h> |
||
27460 | #include <poll.h> |
||
27461 | int main(void) { |
||
27462 | struct pollfd fds[1]; |
||
27463 | int fd; |
||
27464 | fd = open("/dev/null", 1); |
||
27465 | fds[0].fd = fd; |
||
27466 | fds[0].events = POLLIN; |
||
27467 | fds[0].revents = 0; |
||
27468 | if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { |
||
27469 | exit(1); /* Does not work for devices -- fail */ |
||
27470 | } |
||
27471 | exit(0); |
||
27472 | } |
||
27473 | _ACEOF |
||
27474 | if ac_fn_c_try_run "$LINENO"; then : |
||
27475 | broken_poll=no |
||
27476 | else |
||
27477 | broken_poll=yes |
||
27478 | |||
27479 | $as_echo "#define BROKEN_POLL 1" >>confdefs.h |
||
27480 | |||
27481 | fi |
||
27482 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
27483 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
27484 | fi |
||
27485 | |||
27486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5 |
||
27487 | $as_echo "$broken_poll" >&6; } |
||
27488 | |||
27489 | |||
27490 | PCRE_REQUIRED_VERSION=8.13 |
||
27491 | |||
27492 | # Check if we should use the internal or the system-supplied pcre |
||
27493 | |||
27494 | # Check whether --with-pcre was given. |
||
27495 | if test "${with_pcre+set}" = set; then : |
||
27496 | withval=$with_pcre; |
||
27497 | else |
||
27498 | with_pcre=system |
||
27499 | fi |
||
27500 | |||
27501 | |||
27502 | if test "x$with_pcre" = xsystem; then |
||
27503 | USE_SYSTEM_PCRE_TRUE= |
||
27504 | USE_SYSTEM_PCRE_FALSE='#' |
||
27505 | else |
||
27506 | USE_SYSTEM_PCRE_TRUE='#' |
||
27507 | USE_SYSTEM_PCRE_FALSE= |
||
27508 | fi |
||
27509 | |||
27510 | |||
27511 | if test "x$with_pcre" = xsystem; then : |
||
27512 | |||
27513 | |||
27514 | pkg_failed=no |
||
27515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5 |
||
27516 | $as_echo_n "checking for PCRE... " >&6; } |
||
27517 | |||
27518 | if test -n "$PCRE_CFLAGS"; then |
||
27519 | pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS" |
||
27520 | elif test -n "$PKG_CONFIG"; then |
||
27521 | if test -n "$PKG_CONFIG" && \ |
||
27522 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5 |
||
27523 | ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5 |
||
27524 | ac_status=$? |
||
27525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
27526 | test $ac_status = 0; }; then |
||
27527 | pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null` |
||
27528 | test "x$?" != "x0" && pkg_failed=yes |
||
27529 | else |
||
27530 | pkg_failed=yes |
||
27531 | fi |
||
27532 | else |
||
27533 | pkg_failed=untried |
||
27534 | fi |
||
27535 | if test -n "$PCRE_LIBS"; then |
||
27536 | pkg_cv_PCRE_LIBS="$PCRE_LIBS" |
||
27537 | elif test -n "$PKG_CONFIG"; then |
||
27538 | if test -n "$PKG_CONFIG" && \ |
||
27539 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5 |
||
27540 | ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5 |
||
27541 | ac_status=$? |
||
27542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
27543 | test $ac_status = 0; }; then |
||
27544 | pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null` |
||
27545 | test "x$?" != "x0" && pkg_failed=yes |
||
27546 | else |
||
27547 | pkg_failed=yes |
||
27548 | fi |
||
27549 | else |
||
27550 | pkg_failed=untried |
||
27551 | fi |
||
27552 | |||
27553 | |||
27554 | |||
27555 | if test $pkg_failed = yes; then |
||
27556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27557 | $as_echo "no" >&6; } |
||
27558 | |||
27559 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
27560 | _pkg_short_errors_supported=yes |
||
27561 | else |
||
27562 | _pkg_short_errors_supported=no |
||
27563 | fi |
||
27564 | if test $_pkg_short_errors_supported = yes; then |
||
27565 | PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1` |
||
27566 | else |
||
27567 | PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1` |
||
27568 | fi |
||
27569 | # Put the nasty error message in config.log where it belongs |
||
27570 | echo "$PCRE_PKG_ERRORS" >&5 |
||
27571 | |||
27572 | as_fn_error $? "Package requirements (libpcre >= $PCRE_REQUIRED_VERSION) were not met: |
||
27573 | |||
27574 | $PCRE_PKG_ERRORS |
||
27575 | |||
27576 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
||
27577 | installed software in a non-standard prefix. |
||
27578 | |||
27579 | Alternatively, you may set the environment variables PCRE_CFLAGS |
||
27580 | and PCRE_LIBS to avoid the need to call pkg-config. |
||
27581 | See the pkg-config man page for more details." "$LINENO" 5 |
||
27582 | elif test $pkg_failed = untried; then |
||
27583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27584 | $as_echo "no" >&6; } |
||
27585 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
27586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
27587 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
||
27588 | is in your PATH or set the PKG_CONFIG environment variable to the full |
||
27589 | path to pkg-config. |
||
27590 | |||
27591 | Alternatively, you may set the environment variables PCRE_CFLAGS |
||
27592 | and PCRE_LIBS to avoid the need to call pkg-config. |
||
27593 | See the pkg-config man page for more details. |
||
27594 | |||
27595 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
||
27596 | See \`config.log' for more details" "$LINENO" 5; } |
||
27597 | else |
||
27598 | PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS |
||
27599 | PCRE_LIBS=$pkg_cv_PCRE_LIBS |
||
27600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
27601 | $as_echo "yes" >&6; } |
||
27602 | |||
27603 | fi |
||
27604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unicode support in PCRE" >&5 |
||
27605 | $as_echo_n "checking for Unicode support in PCRE... " >&6; } |
||
27606 | if ${glib_cv_pcre_has_unicode+:} false; then : |
||
27607 | $as_echo_n "(cached) " >&6 |
||
27608 | else |
||
27609 | |||
27610 | glib_save_CFLAGS="$CFLAGS" |
||
27611 | glib_save_LIBS="$LIBS" |
||
27612 | CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS" |
||
27613 | if test "$cross_compiling" = yes; then : |
||
27614 | glib_cv_pcre_has_unicode=yes |
||
27615 | else |
||
27616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27617 | /* end confdefs.h. */ |
||
27618 | #include <pcre.h> |
||
27619 | int main () { |
||
27620 | int support; |
||
27621 | pcre_config (PCRE_CONFIG_UTF8, &support); |
||
27622 | if (!support) |
||
27623 | return 1; |
||
27624 | pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support); |
||
27625 | if (!support) |
||
27626 | return 1; |
||
27627 | return 0; |
||
27628 | } |
||
27629 | _ACEOF |
||
27630 | if ac_fn_c_try_run "$LINENO"; then : |
||
27631 | glib_cv_pcre_has_unicode=yes |
||
27632 | else |
||
27633 | glib_cv_pcre_has_unicode=no |
||
27634 | fi |
||
27635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
27636 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
27637 | fi |
||
27638 | |||
27639 | CFLAGS="$glib_save_CFLAGS" |
||
27640 | LIBS="$glib_save_LIBS" |
||
27641 | |||
27642 | fi |
||
27643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_pcre_has_unicode" >&5 |
||
27644 | $as_echo "$glib_cv_pcre_has_unicode" >&6; } |
||
27645 | if test "$glib_cv_pcre_has_unicode" = "no"; then |
||
27646 | as_fn_error $? "*** The system-supplied PCRE does not support Unicode properties or UTF-8." "$LINENO" 5 |
||
27647 | fi |
||
27648 | |||
27649 | |||
27650 | |||
27651 | $as_echo "#define USE_SYSTEM_PCRE /**/" >>confdefs.h |
||
27652 | |||
27653 | PCRE_REQUIRES=libpcre |
||
27654 | |||
27655 | |||
27656 | else |
||
27657 | |||
27658 | # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE |
||
27659 | if test x"$GCC" = xyes; then : |
||
27660 | |||
27661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wno-pointer-sign" >&5 |
||
27662 | $as_echo_n "checking whether compiler understands -Wno-pointer-sign... " >&6; } |
||
27663 | save_CFLAGS="$CFLAGS" |
||
27664 | CFLAGS="$CFLAGS -Wno-pointer-sign" |
||
27665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27666 | /* end confdefs.h. */ |
||
27667 | |||
27668 | int |
||
27669 | main () |
||
27670 | { |
||
27671 | |||
27672 | ; |
||
27673 | return 0; |
||
27674 | } |
||
27675 | _ACEOF |
||
27676 | if ac_fn_c_try_compile "$LINENO"; then : |
||
27677 | PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign" |
||
27678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
27679 | $as_echo "yes" >&6; } |
||
27680 | else |
||
27681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27682 | $as_echo "no" >&6; } |
||
27683 | fi |
||
27684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
27685 | CFLAGS="$save_CFLAGS" |
||
27686 | |||
27687 | fi |
||
27688 | |||
27689 | fi |
||
27690 | |||
27691 | |||
27692 | |||
27693 | case $host in |
||
27694 | *-*-cygwin*) |
||
27695 | G_LIBS_EXTRA="-luser32 -lkernel32" |
||
27696 | ;; |
||
27697 | *-*-mingw*) |
||
27698 | G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi" |
||
27699 | ;; |
||
27700 | *) |
||
27701 | G_LIBS_EXTRA="" |
||
27702 | ;; |
||
27703 | esac |
||
27704 | |||
27705 | |||
27706 | |||
27707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5 |
||
27708 | $as_echo_n "checking for EILSEQ... " >&6; } |
||
27709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
27710 | /* end confdefs.h. */ |
||
27711 | |||
27712 | #include <errno.h> |
||
27713 | |||
27714 | int |
||
27715 | main () |
||
27716 | { |
||
27717 | |||
27718 | int error = EILSEQ; |
||
27719 | |||
27720 | ; |
||
27721 | return 0; |
||
27722 | } |
||
27723 | _ACEOF |
||
27724 | if ac_fn_c_try_compile "$LINENO"; then : |
||
27725 | have_eilseq=yes |
||
27726 | else |
||
27727 | have_eilseq=no |
||
27728 | fi |
||
27729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; |
||
27730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5 |
||
27731 | $as_echo "$have_eilseq" >&6; } |
||
27732 | |||
27733 | if test $cross_compiling = yes; then |
||
27734 | CROSS_COMPILING_TRUE= |
||
27735 | CROSS_COMPILING_FALSE='#' |
||
27736 | else |
||
27737 | CROSS_COMPILING_TRUE='#' |
||
27738 | CROSS_COMPILING_FALSE= |
||
27739 | fi |
||
27740 | |||
27741 | |||
27742 | # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have |
||
27743 | # it on it's own line. |
||
27744 | |||
27745 | |||
27746 | |||
27747 | |||
27748 | gtk_doc_requires="gtk-doc >= 1.20" |
||
27749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 |
||
27750 | $as_echo_n "checking for gtk-doc... " >&6; } |
||
27751 | if test -n "$PKG_CONFIG" && \ |
||
27752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 |
||
27753 | ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 |
||
27754 | ac_status=$? |
||
27755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
27756 | test $ac_status = 0; }; then |
||
27757 | have_gtk_doc=yes |
||
27758 | else |
||
27759 | have_gtk_doc=no |
||
27760 | fi |
||
27761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 |
||
27762 | $as_echo "$have_gtk_doc" >&6; } |
||
27763 | |||
27764 | if test "$have_gtk_doc" = "no"; then |
||
27765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
||
27766 | You will not be able to create source packages with 'make dist' |
||
27767 | because $gtk_doc_requires is not found." >&5 |
||
27768 | $as_echo "$as_me: WARNING: |
||
27769 | You will not be able to create source packages with 'make dist' |
||
27770 | because $gtk_doc_requires is not found." >&2;} |
||
27771 | fi |
||
27772 | |||
27773 | # Extract the first word of "gtkdoc-check", so it can be a program name with args. |
||
27774 | set dummy gtkdoc-check; ac_word=$2 |
||
27775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
27776 | $as_echo_n "checking for $ac_word... " >&6; } |
||
27777 | if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : |
||
27778 | $as_echo_n "(cached) " >&6 |
||
27779 | else |
||
27780 | if test -n "$GTKDOC_CHECK"; then |
||
27781 | ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. |
||
27782 | else |
||
27783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
27784 | for as_dir in $PATH |
||
27785 | do |
||
27786 | IFS=$as_save_IFS |
||
27787 | test -z "$as_dir" && as_dir=. |
||
27788 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
27789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
27790 | ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" |
||
27791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
27792 | break 2 |
||
27793 | fi |
||
27794 | done |
||
27795 | done |
||
27796 | IFS=$as_save_IFS |
||
27797 | |||
27798 | fi |
||
27799 | fi |
||
27800 | GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK |
||
27801 | if test -n "$GTKDOC_CHECK"; then |
||
27802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 |
||
27803 | $as_echo "$GTKDOC_CHECK" >&6; } |
||
27804 | else |
||
27805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27806 | $as_echo "no" >&6; } |
||
27807 | fi |
||
27808 | |||
27809 | |||
27810 | # Extract the first word of "gtkdoc-check", so it can be a program name with args. |
||
27811 | set dummy gtkdoc-check; ac_word=$2 |
||
27812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
27813 | $as_echo_n "checking for $ac_word... " >&6; } |
||
27814 | if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : |
||
27815 | $as_echo_n "(cached) " >&6 |
||
27816 | else |
||
27817 | case $GTKDOC_CHECK_PATH in |
||
27818 | [\\/]* | ?:[\\/]*) |
||
27819 | ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. |
||
27820 | ;; |
||
27821 | *) |
||
27822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
27823 | for as_dir in $PATH |
||
27824 | do |
||
27825 | IFS=$as_save_IFS |
||
27826 | test -z "$as_dir" && as_dir=. |
||
27827 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
27828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
27829 | ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" |
||
27830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
27831 | break 2 |
||
27832 | fi |
||
27833 | done |
||
27834 | done |
||
27835 | IFS=$as_save_IFS |
||
27836 | |||
27837 | ;; |
||
27838 | esac |
||
27839 | fi |
||
27840 | GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH |
||
27841 | if test -n "$GTKDOC_CHECK_PATH"; then |
||
27842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 |
||
27843 | $as_echo "$GTKDOC_CHECK_PATH" >&6; } |
||
27844 | else |
||
27845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27846 | $as_echo "no" >&6; } |
||
27847 | fi |
||
27848 | |||
27849 | |||
27850 | for ac_prog in gtkdoc-rebase |
||
27851 | do |
||
27852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
27853 | set dummy $ac_prog; ac_word=$2 |
||
27854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
27855 | $as_echo_n "checking for $ac_word... " >&6; } |
||
27856 | if ${ac_cv_path_GTKDOC_REBASE+:} false; then : |
||
27857 | $as_echo_n "(cached) " >&6 |
||
27858 | else |
||
27859 | case $GTKDOC_REBASE in |
||
27860 | [\\/]* | ?:[\\/]*) |
||
27861 | ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. |
||
27862 | ;; |
||
27863 | *) |
||
27864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
27865 | for as_dir in $PATH |
||
27866 | do |
||
27867 | IFS=$as_save_IFS |
||
27868 | test -z "$as_dir" && as_dir=. |
||
27869 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
27870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
27871 | ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" |
||
27872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
27873 | break 2 |
||
27874 | fi |
||
27875 | done |
||
27876 | done |
||
27877 | IFS=$as_save_IFS |
||
27878 | |||
27879 | ;; |
||
27880 | esac |
||
27881 | fi |
||
27882 | GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE |
||
27883 | if test -n "$GTKDOC_REBASE"; then |
||
27884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 |
||
27885 | $as_echo "$GTKDOC_REBASE" >&6; } |
||
27886 | else |
||
27887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27888 | $as_echo "no" >&6; } |
||
27889 | fi |
||
27890 | |||
27891 | |||
27892 | test -n "$GTKDOC_REBASE" && break |
||
27893 | done |
||
27894 | test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" |
||
27895 | |||
27896 | # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. |
||
27897 | set dummy gtkdoc-mkpdf; ac_word=$2 |
||
27898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
27899 | $as_echo_n "checking for $ac_word... " >&6; } |
||
27900 | if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : |
||
27901 | $as_echo_n "(cached) " >&6 |
||
27902 | else |
||
27903 | case $GTKDOC_MKPDF in |
||
27904 | [\\/]* | ?:[\\/]*) |
||
27905 | ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. |
||
27906 | ;; |
||
27907 | *) |
||
27908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
27909 | for as_dir in $PATH |
||
27910 | do |
||
27911 | IFS=$as_save_IFS |
||
27912 | test -z "$as_dir" && as_dir=. |
||
27913 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
27914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
27915 | ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" |
||
27916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
27917 | break 2 |
||
27918 | fi |
||
27919 | done |
||
27920 | done |
||
27921 | IFS=$as_save_IFS |
||
27922 | |||
27923 | ;; |
||
27924 | esac |
||
27925 | fi |
||
27926 | GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF |
||
27927 | if test -n "$GTKDOC_MKPDF"; then |
||
27928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 |
||
27929 | $as_echo "$GTKDOC_MKPDF" >&6; } |
||
27930 | else |
||
27931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
27932 | $as_echo "no" >&6; } |
||
27933 | fi |
||
27934 | |||
27935 | |||
27936 | |||
27937 | |||
27938 | # Check whether --with-html-dir was given. |
||
27939 | if test "${with_html_dir+set}" = set; then : |
||
27940 | withval=$with_html_dir; |
||
27941 | else |
||
27942 | with_html_dir='${datadir}/gtk-doc/html' |
||
27943 | fi |
||
27944 | |||
27945 | HTML_DIR="$with_html_dir" |
||
27946 | |||
27947 | |||
27948 | # Check whether --enable-gtk-doc was given. |
||
27949 | if test "${enable_gtk_doc+set}" = set; then : |
||
27950 | enableval=$enable_gtk_doc; |
||
27951 | else |
||
27952 | enable_gtk_doc=no |
||
27953 | fi |
||
27954 | |||
27955 | |||
27956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 |
||
27957 | $as_echo_n "checking whether to build gtk-doc documentation... " >&6; } |
||
27958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 |
||
27959 | $as_echo "$enable_gtk_doc" >&6; } |
||
27960 | |||
27961 | if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then |
||
27962 | as_fn_error $? " |
||
27963 | You must have $gtk_doc_requires installed to build documentation for |
||
27964 | $PACKAGE_NAME. Please install gtk-doc or disable building the |
||
27965 | documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 |
||
27966 | fi |
||
27967 | |||
27968 | if test "x$PACKAGE_NAME" != "xglib"; then |
||
27969 | |||
27970 | pkg_failed=no |
||
27971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 |
||
27972 | $as_echo_n "checking for GTKDOC_DEPS... " >&6; } |
||
27973 | |||
27974 | if test -n "$GTKDOC_DEPS_CFLAGS"; then |
||
27975 | pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" |
||
27976 | elif test -n "$PKG_CONFIG"; then |
||
27977 | if test -n "$PKG_CONFIG" && \ |
||
27978 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 |
||
27979 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 |
||
27980 | ac_status=$? |
||
27981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
27982 | test $ac_status = 0; }; then |
||
27983 | pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` |
||
27984 | test "x$?" != "x0" && pkg_failed=yes |
||
27985 | else |
||
27986 | pkg_failed=yes |
||
27987 | fi |
||
27988 | else |
||
27989 | pkg_failed=untried |
||
27990 | fi |
||
27991 | if test -n "$GTKDOC_DEPS_LIBS"; then |
||
27992 | pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" |
||
27993 | elif test -n "$PKG_CONFIG"; then |
||
27994 | if test -n "$PKG_CONFIG" && \ |
||
27995 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 |
||
27996 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 |
||
27997 | ac_status=$? |
||
27998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
27999 | test $ac_status = 0; }; then |
||
28000 | pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` |
||
28001 | test "x$?" != "x0" && pkg_failed=yes |
||
28002 | else |
||
28003 | pkg_failed=yes |
||
28004 | fi |
||
28005 | else |
||
28006 | pkg_failed=untried |
||
28007 | fi |
||
28008 | |||
28009 | |||
28010 | |||
28011 | if test $pkg_failed = yes; then |
||
28012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28013 | $as_echo "no" >&6; } |
||
28014 | |||
28015 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
28016 | _pkg_short_errors_supported=yes |
||
28017 | else |
||
28018 | _pkg_short_errors_supported=no |
||
28019 | fi |
||
28020 | if test $_pkg_short_errors_supported = yes; then |
||
28021 | GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` |
||
28022 | else |
||
28023 | GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` |
||
28024 | fi |
||
28025 | # Put the nasty error message in config.log where it belongs |
||
28026 | echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 |
||
28027 | |||
28028 | : |
||
28029 | elif test $pkg_failed = untried; then |
||
28030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28031 | $as_echo "no" >&6; } |
||
28032 | : |
||
28033 | else |
||
28034 | GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS |
||
28035 | GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS |
||
28036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
28037 | $as_echo "yes" >&6; } |
||
28038 | |||
28039 | fi |
||
28040 | fi |
||
28041 | |||
28042 | # Check whether --enable-gtk-doc-html was given. |
||
28043 | if test "${enable_gtk_doc_html+set}" = set; then : |
||
28044 | enableval=$enable_gtk_doc_html; |
||
28045 | else |
||
28046 | enable_gtk_doc_html=yes |
||
28047 | fi |
||
28048 | |||
28049 | # Check whether --enable-gtk-doc-pdf was given. |
||
28050 | if test "${enable_gtk_doc_pdf+set}" = set; then : |
||
28051 | enableval=$enable_gtk_doc_pdf; |
||
28052 | else |
||
28053 | enable_gtk_doc_pdf=no |
||
28054 | fi |
||
28055 | |||
28056 | |||
28057 | if test -z "$GTKDOC_MKPDF"; then |
||
28058 | enable_gtk_doc_pdf=no |
||
28059 | fi |
||
28060 | |||
28061 | if test -z "$AM_DEFAULT_VERBOSITY"; then |
||
28062 | AM_DEFAULT_VERBOSITY=1 |
||
28063 | fi |
||
28064 | |||
28065 | |||
28066 | if test x$have_gtk_doc = xyes; then |
||
28067 | HAVE_GTK_DOC_TRUE= |
||
28068 | HAVE_GTK_DOC_FALSE='#' |
||
28069 | else |
||
28070 | HAVE_GTK_DOC_TRUE='#' |
||
28071 | HAVE_GTK_DOC_FALSE= |
||
28072 | fi |
||
28073 | |||
28074 | if test x$enable_gtk_doc = xyes; then |
||
28075 | ENABLE_GTK_DOC_TRUE= |
||
28076 | ENABLE_GTK_DOC_FALSE='#' |
||
28077 | else |
||
28078 | ENABLE_GTK_DOC_TRUE='#' |
||
28079 | ENABLE_GTK_DOC_FALSE= |
||
28080 | fi |
||
28081 | |||
28082 | if test x$enable_gtk_doc_html = xyes; then |
||
28083 | GTK_DOC_BUILD_HTML_TRUE= |
||
28084 | GTK_DOC_BUILD_HTML_FALSE='#' |
||
28085 | else |
||
28086 | GTK_DOC_BUILD_HTML_TRUE='#' |
||
28087 | GTK_DOC_BUILD_HTML_FALSE= |
||
28088 | fi |
||
28089 | |||
28090 | if test x$enable_gtk_doc_pdf = xyes; then |
||
28091 | GTK_DOC_BUILD_PDF_TRUE= |
||
28092 | GTK_DOC_BUILD_PDF_FALSE='#' |
||
28093 | else |
||
28094 | GTK_DOC_BUILD_PDF_TRUE='#' |
||
28095 | GTK_DOC_BUILD_PDF_FALSE= |
||
28096 | fi |
||
28097 | |||
28098 | if test -n "$LIBTOOL"; then |
||
28099 | GTK_DOC_USE_LIBTOOL_TRUE= |
||
28100 | GTK_DOC_USE_LIBTOOL_FALSE='#' |
||
28101 | else |
||
28102 | GTK_DOC_USE_LIBTOOL_TRUE='#' |
||
28103 | GTK_DOC_USE_LIBTOOL_FALSE= |
||
28104 | fi |
||
28105 | |||
28106 | if test -n "$GTKDOC_REBASE"; then |
||
28107 | GTK_DOC_USE_REBASE_TRUE= |
||
28108 | GTK_DOC_USE_REBASE_FALSE='#' |
||
28109 | else |
||
28110 | GTK_DOC_USE_REBASE_TRUE='#' |
||
28111 | GTK_DOC_USE_REBASE_FALSE= |
||
28112 | fi |
||
28113 | |||
28114 | |||
28115 | |||
28116 | |||
28117 | # Check whether --enable-man was given. |
||
28118 | if test "${enable_man+set}" = set; then : |
||
28119 | enableval=$enable_man; |
||
28120 | else |
||
28121 | enable_man=maybe |
||
28122 | fi |
||
28123 | |||
28124 | |||
28125 | if test "$enable_man" != no; then : |
||
28126 | |||
28127 | # Extract the first word of "xsltproc", so it can be a program name with args. |
||
28128 | set dummy xsltproc; ac_word=$2 |
||
28129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28130 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28131 | if ${ac_cv_path_XSLTPROC+:} false; then : |
||
28132 | $as_echo_n "(cached) " >&6 |
||
28133 | else |
||
28134 | case $XSLTPROC in |
||
28135 | [\\/]* | ?:[\\/]*) |
||
28136 | ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. |
||
28137 | ;; |
||
28138 | *) |
||
28139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28140 | for as_dir in $PATH |
||
28141 | do |
||
28142 | IFS=$as_save_IFS |
||
28143 | test -z "$as_dir" && as_dir=. |
||
28144 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28146 | ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" |
||
28147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28148 | break 2 |
||
28149 | fi |
||
28150 | done |
||
28151 | done |
||
28152 | IFS=$as_save_IFS |
||
28153 | |||
28154 | ;; |
||
28155 | esac |
||
28156 | fi |
||
28157 | XSLTPROC=$ac_cv_path_XSLTPROC |
||
28158 | if test -n "$XSLTPROC"; then |
||
28159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 |
||
28160 | $as_echo "$XSLTPROC" >&6; } |
||
28161 | else |
||
28162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28163 | $as_echo "no" >&6; } |
||
28164 | fi |
||
28165 | |||
28166 | |||
28167 | if test -z "$XSLTPROC"; then : |
||
28168 | |||
28169 | if test "$enable_man" = yes; then : |
||
28170 | |||
28171 | as_fn_error $? "xsltproc is required for --enable-man" "$LINENO" 5 |
||
28172 | |||
28173 | fi |
||
28174 | enable_man=no |
||
28175 | |||
28176 | fi |
||
28177 | |||
28178 | fi |
||
28179 | |||
28180 | |||
28181 | # check for the presence of the XML catalog |
||
28182 | |||
28183 | # Check whether --with-xml-catalog was given. |
||
28184 | if test "${with_xml_catalog+set}" = set; then : |
||
28185 | withval=$with_xml_catalog; |
||
28186 | else |
||
28187 | with_xml_catalog=/etc/xml/catalog |
||
28188 | fi |
||
28189 | |||
28190 | jh_found_xmlcatalog=true |
||
28191 | XML_CATALOG_FILE="$with_xml_catalog" |
||
28192 | |||
28193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5 |
||
28194 | $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; } |
||
28195 | if test -f "$XML_CATALOG_FILE"; then |
||
28196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
||
28197 | $as_echo "found" >&6; } |
||
28198 | else |
||
28199 | jh_found_xmlcatalog=false |
||
28200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
||
28201 | $as_echo "not found" >&6; } |
||
28202 | fi |
||
28203 | |||
28204 | # check for the xmlcatalog program |
||
28205 | # Extract the first word of "xmlcatalog", so it can be a program name with args. |
||
28206 | set dummy xmlcatalog; ac_word=$2 |
||
28207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28208 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28209 | if ${ac_cv_path_XMLCATALOG+:} false; then : |
||
28210 | $as_echo_n "(cached) " >&6 |
||
28211 | else |
||
28212 | case $XMLCATALOG in |
||
28213 | [\\/]* | ?:[\\/]*) |
||
28214 | ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path. |
||
28215 | ;; |
||
28216 | *) |
||
28217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28218 | for as_dir in $PATH |
||
28219 | do |
||
28220 | IFS=$as_save_IFS |
||
28221 | test -z "$as_dir" && as_dir=. |
||
28222 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28224 | ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext" |
||
28225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28226 | break 2 |
||
28227 | fi |
||
28228 | done |
||
28229 | done |
||
28230 | IFS=$as_save_IFS |
||
28231 | |||
28232 | test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no" |
||
28233 | ;; |
||
28234 | esac |
||
28235 | fi |
||
28236 | XMLCATALOG=$ac_cv_path_XMLCATALOG |
||
28237 | if test -n "$XMLCATALOG"; then |
||
28238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5 |
||
28239 | $as_echo "$XMLCATALOG" >&6; } |
||
28240 | else |
||
28241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28242 | $as_echo "no" >&6; } |
||
28243 | fi |
||
28244 | |||
28245 | |||
28246 | if test "x$XMLCATALOG" = xno; then |
||
28247 | jh_found_xmlcatalog=false |
||
28248 | fi |
||
28249 | |||
28250 | if $jh_found_xmlcatalog; then |
||
28251 | : |
||
28252 | else |
||
28253 | : |
||
28254 | fi |
||
28255 | |||
28256 | if test "$enable_man" != no ; then : |
||
28257 | |||
28258 | |||
28259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5 |
||
28260 | $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; } |
||
28261 | if $jh_found_xmlcatalog && \ |
||
28262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5 |
||
28263 | ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5 |
||
28264 | ac_status=$? |
||
28265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
28266 | test $ac_status = 0; }; then |
||
28267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
||
28268 | $as_echo "found" >&6; } |
||
28269 | have_docbook_dtd=yes |
||
28270 | else |
||
28271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
||
28272 | $as_echo "not found" >&6; } |
||
28273 | have_docbook_dtd=no |
||
28274 | fi |
||
28275 | |||
28276 | if test "$have_docbook_dtd" != yes; then : |
||
28277 | |||
28278 | if test "$enable_man" = yes ; then : |
||
28279 | |||
28280 | as_fn_error $? "DocBook DTD is required for --enable-man" "$LINENO" 5 |
||
28281 | |||
28282 | fi |
||
28283 | enable_man=no |
||
28284 | |||
28285 | fi |
||
28286 | |||
28287 | fi |
||
28288 | |||
28289 | if test "$enable_man" != no; then : |
||
28290 | |||
28291 | |||
28292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5 |
||
28293 | $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; } |
||
28294 | if $jh_found_xmlcatalog && \ |
||
28295 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5 |
||
28296 | ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5 |
||
28297 | ac_status=$? |
||
28298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
28299 | test $ac_status = 0; }; then |
||
28300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
||
28301 | $as_echo "found" >&6; } |
||
28302 | have_docbook_style=yes |
||
28303 | else |
||
28304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
||
28305 | $as_echo "not found" >&6; } |
||
28306 | have_docbook_style=no |
||
28307 | fi |
||
28308 | |||
28309 | if test "$have_docbook_style" != yes ; then : |
||
28310 | |||
28311 | if test "$enable_man" = yes ; then : |
||
28312 | |||
28313 | as_fn_error $? "DocBook XSL Stylesheets are required for --enable-man" "$LINENO" 5 |
||
28314 | |||
28315 | fi |
||
28316 | enable_man=no |
||
28317 | |||
28318 | fi |
||
28319 | |||
28320 | fi |
||
28321 | |||
28322 | if test "$enable_man" != no; then |
||
28323 | ENABLE_MAN_TRUE= |
||
28324 | ENABLE_MAN_FALSE='#' |
||
28325 | else |
||
28326 | ENABLE_MAN_TRUE='#' |
||
28327 | ENABLE_MAN_FALSE= |
||
28328 | fi |
||
28329 | |||
28330 | |||
28331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate man pages" >&5 |
||
28332 | $as_echo_n "checking whether to generate man pages... " >&6; } |
||
28333 | if test "$enable_man" != no ; then : |
||
28334 | |||
28335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
28336 | $as_echo "yes" >&6; } |
||
28337 | |||
28338 | else |
||
28339 | |||
28340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28341 | $as_echo "no" >&6; } |
||
28342 | |||
28343 | fi |
||
28344 | |||
28345 | |||
28346 | # Check whether --enable-dtrace was given. |
||
28347 | if test "${enable_dtrace+set}" = set; then : |
||
28348 | enableval=$enable_dtrace; |
||
28349 | fi |
||
28350 | |||
28351 | have_dtrace=no |
||
28352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dtrace tracing support" >&5 |
||
28353 | $as_echo_n "checking whether to include dtrace tracing support... " >&6; } |
||
28354 | if test "x$enable_dtrace" != xno; then : |
||
28355 | |||
28356 | if test x$glib_have_carbon = xyes; then |
||
28357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not yet compatible with MacOS dtrace)" >&5 |
||
28358 | $as_echo "no (not yet compatible with MacOS dtrace)" >&6; } |
||
28359 | else |
||
28360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
28361 | $as_echo "yes" >&6; } |
||
28362 | for ac_prog in dtrace |
||
28363 | do |
||
28364 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
28365 | set dummy $ac_prog; ac_word=$2 |
||
28366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28367 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28368 | if ${ac_cv_prog_DTRACE+:} false; then : |
||
28369 | $as_echo_n "(cached) " >&6 |
||
28370 | else |
||
28371 | if test -n "$DTRACE"; then |
||
28372 | ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. |
||
28373 | else |
||
28374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28375 | for as_dir in $PATH |
||
28376 | do |
||
28377 | IFS=$as_save_IFS |
||
28378 | test -z "$as_dir" && as_dir=. |
||
28379 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28380 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28381 | ac_cv_prog_DTRACE="$ac_prog" |
||
28382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28383 | break 2 |
||
28384 | fi |
||
28385 | done |
||
28386 | done |
||
28387 | IFS=$as_save_IFS |
||
28388 | |||
28389 | fi |
||
28390 | fi |
||
28391 | DTRACE=$ac_cv_prog_DTRACE |
||
28392 | if test -n "$DTRACE"; then |
||
28393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
||
28394 | $as_echo "$DTRACE" >&6; } |
||
28395 | else |
||
28396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28397 | $as_echo "no" >&6; } |
||
28398 | fi |
||
28399 | |||
28400 | |||
28401 | test -n "$DTRACE" && break |
||
28402 | done |
||
28403 | |||
28404 | if test -z "$DTRACE"; then |
||
28405 | if test "x$enable_dtrace" = xyes; then |
||
28406 | as_fn_error $? "dtrace not found" "$LINENO" 5 |
||
28407 | fi |
||
28408 | else |
||
28409 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" |
||
28410 | if test "x$ac_cv_header_sys_sdt_h" = xyes; then : |
||
28411 | have_dtrace=yes |
||
28412 | else |
||
28413 | if test "x$enable_dtrace" = xyes; then |
||
28414 | as_fn_error $? "dtrace support needs sys/sdt.h header" "$LINENO" 5 |
||
28415 | fi |
||
28416 | fi |
||
28417 | |||
28418 | |||
28419 | fi |
||
28420 | fi |
||
28421 | |||
28422 | else |
||
28423 | |||
28424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28425 | $as_echo "no" >&6; } |
||
28426 | |||
28427 | fi |
||
28428 | if test "x$have_dtrace" = xyes; then |
||
28429 | |||
28430 | $as_echo "#define HAVE_DTRACE 1" >>confdefs.h |
||
28431 | |||
28432 | fi |
||
28433 | if test x$have_dtrace = xyes ; then |
||
28434 | ENABLE_DTRACE_TRUE= |
||
28435 | ENABLE_DTRACE_FALSE='#' |
||
28436 | else |
||
28437 | ENABLE_DTRACE_TRUE='#' |
||
28438 | ENABLE_DTRACE_FALSE= |
||
28439 | fi |
||
28440 | |||
28441 | |||
28442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include systemtap tracing support" >&5 |
||
28443 | $as_echo_n "checking whether to include systemtap tracing support... " >&6; } |
||
28444 | # Check whether --enable-systemtap was given. |
||
28445 | if test "${enable_systemtap+set}" = set; then : |
||
28446 | enableval=$enable_systemtap; |
||
28447 | fi |
||
28448 | |||
28449 | have_systemtap=no |
||
28450 | if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then |
||
28451 | have_systemtap=yes |
||
28452 | fi |
||
28453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_systemtap}" >&5 |
||
28454 | $as_echo "${have_systemtap}" >&6; } |
||
28455 | |||
28456 | if test x$have_systemtap = xyes; then |
||
28457 | ENABLE_SYSTEMTAP_TRUE= |
||
28458 | ENABLE_SYSTEMTAP_FALSE='#' |
||
28459 | else |
||
28460 | ENABLE_SYSTEMTAP_TRUE='#' |
||
28461 | ENABLE_SYSTEMTAP_FALSE= |
||
28462 | fi |
||
28463 | |||
28464 | |||
28465 | |||
28466 | # Check whether --with-tapset-install-dir was given. |
||
28467 | if test "${with_tapset_install_dir+set}" = set; then : |
||
28468 | withval=$with_tapset_install_dir; if test "x${withval}" = x; then |
||
28469 | ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset" |
||
28470 | else |
||
28471 | ABS_TAPSET_DIR="${withval}" |
||
28472 | fi |
||
28473 | else |
||
28474 | ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset" |
||
28475 | fi |
||
28476 | |||
28477 | |||
28478 | |||
28479 | |||
28480 | # Check whether --enable-coverage was given. |
||
28481 | if test "${enable_coverage+set}" = set; then : |
||
28482 | enableval=$enable_coverage; use_gcov=$enableval |
||
28483 | else |
||
28484 | use_gcov=no |
||
28485 | fi |
||
28486 | |||
28487 | |||
28488 | if test "x$use_gcov" = "xyes"; then : |
||
28489 | |||
28490 | if test "$GCC" != "yes"; then |
||
28491 | as_fn_error $? "GCC is required for --enable-coverage" "$LINENO" 5 |
||
28492 | fi |
||
28493 | |||
28494 | # Extract the first word of "shtool", so it can be a program name with args. |
||
28495 | set dummy shtool; ac_word=$2 |
||
28496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28497 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28498 | if ${ac_cv_prog_SHTOOL+:} false; then : |
||
28499 | $as_echo_n "(cached) " >&6 |
||
28500 | else |
||
28501 | if test -n "$SHTOOL"; then |
||
28502 | ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test. |
||
28503 | else |
||
28504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28505 | for as_dir in $PATH |
||
28506 | do |
||
28507 | IFS=$as_save_IFS |
||
28508 | test -z "$as_dir" && as_dir=. |
||
28509 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28511 | ac_cv_prog_SHTOOL="shtool" |
||
28512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28513 | break 2 |
||
28514 | fi |
||
28515 | done |
||
28516 | done |
||
28517 | IFS=$as_save_IFS |
||
28518 | |||
28519 | fi |
||
28520 | fi |
||
28521 | SHTOOL=$ac_cv_prog_SHTOOL |
||
28522 | if test -n "$SHTOOL"; then |
||
28523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5 |
||
28524 | $as_echo "$SHTOOL" >&6; } |
||
28525 | else |
||
28526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28527 | $as_echo "no" >&6; } |
||
28528 | fi |
||
28529 | |||
28530 | |||
28531 | case `$SHTOOL path $CC` in |
||
28532 | *ccache*) gcc_ccache=yes;; |
||
28533 | *) gcc_ccache=no;; |
||
28534 | esac |
||
28535 | |||
28536 | if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then |
||
28537 | as_fn_error $? "ccache must be disabled when --enable-coverage option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 |
||
28538 | fi |
||
28539 | |||
28540 | ltp_version_list="1.6 1.7 1.8 1.9 1.10" |
||
28541 | # Extract the first word of "lcov", so it can be a program name with args. |
||
28542 | set dummy lcov; ac_word=$2 |
||
28543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28544 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28545 | if ${ac_cv_prog_LTP+:} false; then : |
||
28546 | $as_echo_n "(cached) " >&6 |
||
28547 | else |
||
28548 | if test -n "$LTP"; then |
||
28549 | ac_cv_prog_LTP="$LTP" # Let the user override the test. |
||
28550 | else |
||
28551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28552 | for as_dir in $PATH |
||
28553 | do |
||
28554 | IFS=$as_save_IFS |
||
28555 | test -z "$as_dir" && as_dir=. |
||
28556 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28558 | ac_cv_prog_LTP="lcov" |
||
28559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28560 | break 2 |
||
28561 | fi |
||
28562 | done |
||
28563 | done |
||
28564 | IFS=$as_save_IFS |
||
28565 | |||
28566 | fi |
||
28567 | fi |
||
28568 | LTP=$ac_cv_prog_LTP |
||
28569 | if test -n "$LTP"; then |
||
28570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5 |
||
28571 | $as_echo "$LTP" >&6; } |
||
28572 | else |
||
28573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28574 | $as_echo "no" >&6; } |
||
28575 | fi |
||
28576 | |||
28577 | |||
28578 | # Extract the first word of "genhtml", so it can be a program name with args. |
||
28579 | set dummy genhtml; ac_word=$2 |
||
28580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28581 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28582 | if ${ac_cv_prog_LTP_GENHTML+:} false; then : |
||
28583 | $as_echo_n "(cached) " >&6 |
||
28584 | else |
||
28585 | if test -n "$LTP_GENHTML"; then |
||
28586 | ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test. |
||
28587 | else |
||
28588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28589 | for as_dir in $PATH |
||
28590 | do |
||
28591 | IFS=$as_save_IFS |
||
28592 | test -z "$as_dir" && as_dir=. |
||
28593 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28595 | ac_cv_prog_LTP_GENHTML="genhtml" |
||
28596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28597 | break 2 |
||
28598 | fi |
||
28599 | done |
||
28600 | done |
||
28601 | IFS=$as_save_IFS |
||
28602 | |||
28603 | fi |
||
28604 | fi |
||
28605 | LTP_GENHTML=$ac_cv_prog_LTP_GENHTML |
||
28606 | if test -n "$LTP_GENHTML"; then |
||
28607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5 |
||
28608 | $as_echo "$LTP_GENHTML" >&6; } |
||
28609 | else |
||
28610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28611 | $as_echo "no" >&6; } |
||
28612 | fi |
||
28613 | |||
28614 | |||
28615 | |||
28616 | if test "$LTP" ; then : |
||
28617 | |||
28618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5 |
||
28619 | $as_echo_n "checking for ltp version... " >&6; } |
||
28620 | if ${glib_cv_ltp_version+:} false; then : |
||
28621 | $as_echo_n "(cached) " >&6 |
||
28622 | else |
||
28623 | |||
28624 | glib_cv_ltp_version=invalid |
||
28625 | ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'` |
||
28626 | for ltp_check_version in $ltp_version_list; do |
||
28627 | if test "$ltp_version" = "$ltp_check_version"; then |
||
28628 | glib_cv_ltp_version="$ltp_check_version (ok)" |
||
28629 | fi |
||
28630 | done |
||
28631 | |||
28632 | fi |
||
28633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5 |
||
28634 | $as_echo "$glib_cv_ltp_version" >&6; } |
||
28635 | |||
28636 | else |
||
28637 | |||
28638 | ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list" |
||
28639 | as_fn_error $? "$ltp_msg" "$LINENO" 5 |
||
28640 | |||
28641 | fi |
||
28642 | |||
28643 | case $glib_cv_ltp_version in |
||
28644 | ""|invalid) |
||
28645 | ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)." |
||
28646 | as_fn_error $? "$ltp_msg" "$LINENO" 5 |
||
28647 | LTP="exit 0;" |
||
28648 | ;; |
||
28649 | esac |
||
28650 | |||
28651 | if test -z "$LTP_GENHTML"; then |
||
28652 | as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5 |
||
28653 | fi |
||
28654 | |||
28655 | |||
28656 | CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` |
||
28657 | |||
28658 | |||
28659 | CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" |
||
28660 | LDFLAGS="$LDFLAGS -lgcov" |
||
28661 | |||
28662 | fi |
||
28663 | |||
28664 | |||
28665 | ac_config_commands="$ac_config_commands glib/glibconfig.h" |
||
28666 | |||
28667 | |||
28668 | # Redo enough to get guint32 and guint64 for the alignment checks below |
||
28669 | case 4 in |
||
28670 | $ac_cv_sizeof_short) |
||
28671 | gint32=short |
||
28672 | ;; |
||
28673 | $ac_cv_sizeof_int) |
||
28674 | gint32=int |
||
28675 | ;; |
||
28676 | $ac_cv_sizeof_long) |
||
28677 | gint32=long |
||
28678 | ;; |
||
28679 | esac |
||
28680 | case 8 in |
||
28681 | $ac_cv_sizeof_int) |
||
28682 | gint64=int |
||
28683 | ;; |
||
28684 | $ac_cv_sizeof_long) |
||
28685 | gint64=long |
||
28686 | ;; |
||
28687 | $ac_cv_sizeof_long_long) |
||
28688 | gint64='long long' |
||
28689 | ;; |
||
28690 | $ac_cv_sizeof___int64) |
||
28691 | gint64='__int64' |
||
28692 | ;; |
||
28693 | esac |
||
28694 | |||
28695 | ac_fn_c_check_type "$LINENO" "guint32" "ac_cv_type_guint32" "typedef unsigned $gint32 guint32; |
||
28696 | " |
||
28697 | if test "x$ac_cv_type_guint32" = xyes; then : |
||
28698 | |||
28699 | fi |
||
28700 | |||
28701 | # The cast to long int works around a bug in the HP C Compiler, |
||
28702 | # see AC_CHECK_SIZEOF for more information. |
||
28703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint32" >&5 |
||
28704 | $as_echo_n "checking alignment of guint32... " >&6; } |
||
28705 | if ${ac_cv_alignof_guint32+:} false; then : |
||
28706 | $as_echo_n "(cached) " >&6 |
||
28707 | else |
||
28708 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint32" "$ac_includes_default |
||
28709 | typedef unsigned $gint32 guint32; |
||
28710 | |||
28711 | #ifndef offsetof |
||
28712 | # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) |
||
28713 | #endif |
||
28714 | typedef struct { char x; guint32 y; } ac__type_alignof_;"; then : |
||
28715 | |||
28716 | else |
||
28717 | if test "$ac_cv_type_guint32" = yes; then |
||
28718 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
28719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
28720 | as_fn_error 77 "cannot compute alignment of guint32 |
||
28721 | See \`config.log' for more details" "$LINENO" 5; } |
||
28722 | else |
||
28723 | ac_cv_alignof_guint32=0 |
||
28724 | fi |
||
28725 | fi |
||
28726 | |||
28727 | fi |
||
28728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint32" >&5 |
||
28729 | $as_echo "$ac_cv_alignof_guint32" >&6; } |
||
28730 | |||
28731 | |||
28732 | |||
28733 | cat >>confdefs.h <<_ACEOF |
||
28734 | #define ALIGNOF_GUINT32 $ac_cv_alignof_guint32 |
||
28735 | _ACEOF |
||
28736 | |||
28737 | |||
28738 | ac_fn_c_check_type "$LINENO" "guint64" "ac_cv_type_guint64" "typedef unsigned $gint64 guint64; |
||
28739 | " |
||
28740 | if test "x$ac_cv_type_guint64" = xyes; then : |
||
28741 | |||
28742 | fi |
||
28743 | |||
28744 | # The cast to long int works around a bug in the HP C Compiler, |
||
28745 | # see AC_CHECK_SIZEOF for more information. |
||
28746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint64" >&5 |
||
28747 | $as_echo_n "checking alignment of guint64... " >&6; } |
||
28748 | if ${ac_cv_alignof_guint64+:} false; then : |
||
28749 | $as_echo_n "(cached) " >&6 |
||
28750 | else |
||
28751 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint64" "$ac_includes_default |
||
28752 | typedef unsigned $gint64 guint64; |
||
28753 | |||
28754 | #ifndef offsetof |
||
28755 | # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) |
||
28756 | #endif |
||
28757 | typedef struct { char x; guint64 y; } ac__type_alignof_;"; then : |
||
28758 | |||
28759 | else |
||
28760 | if test "$ac_cv_type_guint64" = yes; then |
||
28761 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
28762 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
28763 | as_fn_error 77 "cannot compute alignment of guint64 |
||
28764 | See \`config.log' for more details" "$LINENO" 5; } |
||
28765 | else |
||
28766 | ac_cv_alignof_guint64=0 |
||
28767 | fi |
||
28768 | fi |
||
28769 | |||
28770 | fi |
||
28771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint64" >&5 |
||
28772 | $as_echo "$ac_cv_alignof_guint64" >&6; } |
||
28773 | |||
28774 | |||
28775 | |||
28776 | cat >>confdefs.h <<_ACEOF |
||
28777 | #define ALIGNOF_GUINT64 $ac_cv_alignof_guint64 |
||
28778 | _ACEOF |
||
28779 | |||
28780 | |||
28781 | ac_fn_c_check_type "$LINENO" "unsigned long" "ac_cv_type_unsigned_long" "$ac_includes_default" |
||
28782 | if test "x$ac_cv_type_unsigned_long" = xyes; then : |
||
28783 | |||
28784 | fi |
||
28785 | |||
28786 | # The cast to long int works around a bug in the HP C Compiler, |
||
28787 | # see AC_CHECK_SIZEOF for more information. |
||
28788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long" >&5 |
||
28789 | $as_echo_n "checking alignment of unsigned long... " >&6; } |
||
28790 | if ${ac_cv_alignof_unsigned_long+:} false; then : |
||
28791 | $as_echo_n "(cached) " >&6 |
||
28792 | else |
||
28793 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long" "$ac_includes_default |
||
28794 | #ifndef offsetof |
||
28795 | # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) |
||
28796 | #endif |
||
28797 | typedef struct { char x; unsigned long y; } ac__type_alignof_;"; then : |
||
28798 | |||
28799 | else |
||
28800 | if test "$ac_cv_type_unsigned_long" = yes; then |
||
28801 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
28802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
28803 | as_fn_error 77 "cannot compute alignment of unsigned long |
||
28804 | See \`config.log' for more details" "$LINENO" 5; } |
||
28805 | else |
||
28806 | ac_cv_alignof_unsigned_long=0 |
||
28807 | fi |
||
28808 | fi |
||
28809 | |||
28810 | fi |
||
28811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long" >&5 |
||
28812 | $as_echo "$ac_cv_alignof_unsigned_long" >&6; } |
||
28813 | |||
28814 | |||
28815 | |||
28816 | cat >>confdefs.h <<_ACEOF |
||
28817 | #define ALIGNOF_UNSIGNED_LONG $ac_cv_alignof_unsigned_long |
||
28818 | _ACEOF |
||
28819 | |||
28820 | |||
28821 | |||
28822 | # Check for libdbus1 - Optional - is only used in the GDBus test cases |
||
28823 | # |
||
28824 | # 1.2.14 required for dbus_message_set_serial |
||
28825 | |||
28826 | pkg_failed=no |
||
28827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS1" >&5 |
||
28828 | $as_echo_n "checking for DBUS1... " >&6; } |
||
28829 | |||
28830 | if test -n "$DBUS1_CFLAGS"; then |
||
28831 | pkg_cv_DBUS1_CFLAGS="$DBUS1_CFLAGS" |
||
28832 | elif test -n "$PKG_CONFIG"; then |
||
28833 | if test -n "$PKG_CONFIG" && \ |
||
28834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5 |
||
28835 | ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5 |
||
28836 | ac_status=$? |
||
28837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
28838 | test $ac_status = 0; }; then |
||
28839 | pkg_cv_DBUS1_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.14" 2>/dev/null` |
||
28840 | test "x$?" != "x0" && pkg_failed=yes |
||
28841 | else |
||
28842 | pkg_failed=yes |
||
28843 | fi |
||
28844 | else |
||
28845 | pkg_failed=untried |
||
28846 | fi |
||
28847 | if test -n "$DBUS1_LIBS"; then |
||
28848 | pkg_cv_DBUS1_LIBS="$DBUS1_LIBS" |
||
28849 | elif test -n "$PKG_CONFIG"; then |
||
28850 | if test -n "$PKG_CONFIG" && \ |
||
28851 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5 |
||
28852 | ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5 |
||
28853 | ac_status=$? |
||
28854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
28855 | test $ac_status = 0; }; then |
||
28856 | pkg_cv_DBUS1_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.14" 2>/dev/null` |
||
28857 | test "x$?" != "x0" && pkg_failed=yes |
||
28858 | else |
||
28859 | pkg_failed=yes |
||
28860 | fi |
||
28861 | else |
||
28862 | pkg_failed=untried |
||
28863 | fi |
||
28864 | |||
28865 | |||
28866 | |||
28867 | if test $pkg_failed = yes; then |
||
28868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28869 | $as_echo "no" >&6; } |
||
28870 | |||
28871 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
||
28872 | _pkg_short_errors_supported=yes |
||
28873 | else |
||
28874 | _pkg_short_errors_supported=no |
||
28875 | fi |
||
28876 | if test $_pkg_short_errors_supported = yes; then |
||
28877 | DBUS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.2.14" 2>&1` |
||
28878 | else |
||
28879 | DBUS1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.2.14" 2>&1` |
||
28880 | fi |
||
28881 | # Put the nasty error message in config.log where it belongs |
||
28882 | echo "$DBUS1_PKG_ERRORS" >&5 |
||
28883 | |||
28884 | have_dbus1=no |
||
28885 | elif test $pkg_failed = untried; then |
||
28886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28887 | $as_echo "no" >&6; } |
||
28888 | have_dbus1=no |
||
28889 | else |
||
28890 | DBUS1_CFLAGS=$pkg_cv_DBUS1_CFLAGS |
||
28891 | DBUS1_LIBS=$pkg_cv_DBUS1_LIBS |
||
28892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
28893 | $as_echo "yes" >&6; } |
||
28894 | |||
28895 | $as_echo "#define HAVE_DBUS1 1" >>confdefs.h |
||
28896 | have_dbus1=yes |
||
28897 | fi |
||
28898 | |||
28899 | |||
28900 | if test "x$have_dbus1" = "xyes"; then |
||
28901 | HAVE_DBUS1_TRUE= |
||
28902 | HAVE_DBUS1_FALSE='#' |
||
28903 | else |
||
28904 | HAVE_DBUS1_TRUE='#' |
||
28905 | HAVE_DBUS1_FALSE= |
||
28906 | fi |
||
28907 | |||
28908 | |||
28909 | for ac_prog in dbus-daemon |
||
28910 | do |
||
28911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
28912 | set dummy $ac_prog; ac_word=$2 |
||
28913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
28914 | $as_echo_n "checking for $ac_word... " >&6; } |
||
28915 | if ${ac_cv_prog_DBUS_DAEMON+:} false; then : |
||
28916 | $as_echo_n "(cached) " >&6 |
||
28917 | else |
||
28918 | if test -n "$DBUS_DAEMON"; then |
||
28919 | ac_cv_prog_DBUS_DAEMON="$DBUS_DAEMON" # Let the user override the test. |
||
28920 | else |
||
28921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
28922 | for as_dir in $PATH |
||
28923 | do |
||
28924 | IFS=$as_save_IFS |
||
28925 | test -z "$as_dir" && as_dir=. |
||
28926 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
28927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
28928 | ac_cv_prog_DBUS_DAEMON="$ac_prog" |
||
28929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
28930 | break 2 |
||
28931 | fi |
||
28932 | done |
||
28933 | done |
||
28934 | IFS=$as_save_IFS |
||
28935 | |||
28936 | fi |
||
28937 | fi |
||
28938 | DBUS_DAEMON=$ac_cv_prog_DBUS_DAEMON |
||
28939 | if test -n "$DBUS_DAEMON"; then |
||
28940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_DAEMON" >&5 |
||
28941 | $as_echo "$DBUS_DAEMON" >&6; } |
||
28942 | else |
||
28943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28944 | $as_echo "no" >&6; } |
||
28945 | fi |
||
28946 | |||
28947 | |||
28948 | test -n "$DBUS_DAEMON" && break |
||
28949 | done |
||
28950 | |||
28951 | if test x$DBUS_DAEMON = xdbus-daemon ; then |
||
28952 | HAVE_DBUS_DAEMON_TRUE= |
||
28953 | HAVE_DBUS_DAEMON_FALSE='#' |
||
28954 | else |
||
28955 | HAVE_DBUS_DAEMON_TRUE='#' |
||
28956 | HAVE_DBUS_DAEMON_FALSE= |
||
28957 | fi |
||
28958 | |||
28959 | |||
28960 | |||
28961 | # Check whether --enable-Bsymbolic was given. |
||
28962 | if test "${enable_Bsymbolic+set}" = set; then : |
||
28963 | enableval=$enable_Bsymbolic; |
||
28964 | else |
||
28965 | SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}" |
||
28966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5 |
||
28967 | $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; } |
||
28968 | LDFLAGS=-Wl,-Bsymbolic-functions |
||
28969 | LIBS= |
||
28970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
28971 | /* end confdefs.h. */ |
||
28972 | |||
28973 | int |
||
28974 | main () |
||
28975 | { |
||
28976 | return 0 |
||
28977 | ; |
||
28978 | return 0; |
||
28979 | } |
||
28980 | _ACEOF |
||
28981 | if ac_fn_c_try_link "$LINENO"; then : |
||
28982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
28983 | $as_echo "yes" >&6; } |
||
28984 | enable_Bsymbolic=yes |
||
28985 | else |
||
28986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
28987 | $as_echo "no" >&6; } |
||
28988 | enable_Bsymbolic=no |
||
28989 | fi |
||
28990 | rm -f core conftest.err conftest.$ac_objext \ |
||
28991 | conftest$ac_exeext conftest.$ac_ext |
||
28992 | LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}" |
||
28993 | fi |
||
28994 | |||
28995 | |||
28996 | if test "x${enable_Bsymbolic}" = "xyes"; then |
||
28997 | GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions |
||
28998 | fi |
||
28999 | |||
29000 | |||
29001 | # Check whether --enable-znodelete was given. |
||
29002 | if test "${enable_znodelete+set}" = set; then : |
||
29003 | enableval=$enable_znodelete; |
||
29004 | else |
||
29005 | SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}" |
||
29006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --fatal-warnings linker flag" >&5 |
||
29007 | $as_echo_n "checking for --fatal-warnings linker flag... " >&6; } |
||
29008 | LDFLAGS=-Wl,--fatal-warnings |
||
29009 | LIBS= |
||
29010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
29011 | /* end confdefs.h. */ |
||
29012 | |||
29013 | int |
||
29014 | main () |
||
29015 | { |
||
29016 | return 0 |
||
29017 | ; |
||
29018 | return 0; |
||
29019 | } |
||
29020 | _ACEOF |
||
29021 | if ac_fn_c_try_link "$LINENO"; then : |
||
29022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
29023 | $as_echo "yes" >&6; } |
||
29024 | ldflags_fatal=-Wl,--fatal-warnings |
||
29025 | else |
||
29026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
29027 | $as_echo "no" >&6; } |
||
29028 | ldflags_fatal= |
||
29029 | fi |
||
29030 | rm -f core conftest.err conftest.$ac_objext \ |
||
29031 | conftest$ac_exeext conftest.$ac_ext |
||
29032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z,nodelete linker flag" >&5 |
||
29033 | $as_echo_n "checking for -z,nodelete linker flag... " >&6; } |
||
29034 | LDFLAGS="$ldflags_fatal -Wl,-z,nodelete" |
||
29035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
29036 | /* end confdefs.h. */ |
||
29037 | |||
29038 | int |
||
29039 | main () |
||
29040 | { |
||
29041 | return 0 |
||
29042 | ; |
||
29043 | return 0; |
||
29044 | } |
||
29045 | _ACEOF |
||
29046 | if ac_fn_c_try_link "$LINENO"; then : |
||
29047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
29048 | $as_echo "yes" >&6; } |
||
29049 | enable_znodelete=yes |
||
29050 | else |
||
29051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
29052 | $as_echo "no" >&6; } |
||
29053 | enable_znodelete=no |
||
29054 | fi |
||
29055 | rm -f core conftest.err conftest.$ac_objext \ |
||
29056 | conftest$ac_exeext conftest.$ac_ext |
||
29057 | LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}" |
||
29058 | fi |
||
29059 | |||
29060 | |||
29061 | if test "x${enable_znodelete}" = "xyes"; then |
||
29062 | GLIB_LINK_FLAGS="$GLIB_LINK_FLAGS -Wl,-z,nodelete" |
||
29063 | fi |
||
29064 | |||
29065 | |||
29066 | |||
29067 | GLIB_HIDDEN_VISIBILITY_CFLAGS="" |
||
29068 | case "$host" in |
||
29069 | *-*-mingw*) |
||
29070 | |||
29071 | $as_echo "#define _GLIB_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h |
||
29072 | |||
29073 | CFLAGS="${CFLAGS} -fvisibility=hidden" |
||
29074 | ;; |
||
29075 | *) |
||
29076 | SAVED_CFLAGS="${CFLAGS}" |
||
29077 | CFLAGS="-fvisibility=hidden" |
||
29078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5 |
||
29079 | $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; } |
||
29080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
29081 | /* end confdefs.h. */ |
||
29082 | |||
29083 | int |
||
29084 | main () |
||
29085 | { |
||
29086 | return 0 |
||
29087 | ; |
||
29088 | return 0; |
||
29089 | } |
||
29090 | _ACEOF |
||
29091 | if ac_fn_c_try_compile "$LINENO"; then : |
||
29092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
29093 | $as_echo "yes" >&6; } |
||
29094 | enable_fvisibility_hidden=yes |
||
29095 | else |
||
29096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
29097 | $as_echo "no" >&6; } |
||
29098 | enable_fvisibility_hidden=no |
||
29099 | fi |
||
29100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
29101 | CFLAGS="${SAVED_CFLAGS}" |
||
29102 | |||
29103 | if test "${enable_fvisibility_hidden}" = "yes"; then : |
||
29104 | |||
29105 | |||
29106 | $as_echo "#define _GLIB_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h |
||
29107 | |||
29108 | GLIB_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden" |
||
29109 | |||
29110 | fi |
||
29111 | ;; |
||
29112 | esac |
||
29113 | |||
29114 | |||
29115 | # Check whether --enable-compile-warnings was given. |
||
29116 | if test "${enable_compile_warnings+set}" = set; then : |
||
29117 | enableval=$enable_compile_warnings; |
||
29118 | else |
||
29119 | enable_compile_warnings=yes |
||
29120 | fi |
||
29121 | |||
29122 | if test "x$enable_compile_warnings" = xyes; then : |
||
29123 | |||
29124 | |||
29125 | for flag in \ |
||
29126 | -Wall -Wstrict-prototypes -Werror=declaration-after-statement \ |
||
29127 | -Werror=missing-prototypes -Werror=implicit-function-declaration \ |
||
29128 | -Werror=pointer-arith -Werror=init-self -Werror=format-security \ |
||
29129 | -Werror=format=2 -Werror=missing-include-dirs; do |
||
29130 | |||
29131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 |
||
29132 | $as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } |
||
29133 | if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : |
||
29134 | $as_echo_n "(cached) " >&6 |
||
29135 | else |
||
29136 | eval "cc_save_CFLAGS='${CFLAGS}'" |
||
29137 | eval "CFLAGS='-Werror $flag'" |
||
29138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
29139 | /* end confdefs.h. */ |
||
29140 | int a = 0; int main(void) { return a; } |
||
29141 | _ACEOF |
||
29142 | if ac_fn_c_try_compile "$LINENO"; then : |
||
29143 | eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" |
||
29144 | else |
||
29145 | eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" |
||
29146 | fi |
||
29147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
29148 | eval "CFLAGS='$cc_save_CFLAGS'" |
||
29149 | fi |
||
29150 | eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` |
||
29151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
29152 | $as_echo "$ac_res" >&6; } |
||
29153 | |||
29154 | if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then : |
||
29155 | eval "GLIB_WARN_CFLAGS='${GLIB_WARN_CFLAGS} $flag'" |
||
29156 | fi |
||
29157 | |||
29158 | done |
||
29159 | |||
29160 | |||
29161 | fi |
||
29162 | |||
29163 | |||
29164 | # |
||
29165 | # Define variables corresponding to the correct include paths to use for |
||
29166 | # in-tree building. |
||
29167 | # |
||
29168 | |||
29169 | # for config.h: |
||
29170 | config_h_INCLUDES='-I$(top_builddir)' |
||
29171 | |||
29172 | |||
29173 | # glib: |
||
29174 | # config.h |
||
29175 | # $(top_builddir)/glib: for glibconfig.h |
||
29176 | # $(top_srcdir)/glib: for glib.h |
||
29177 | # $(top_srcdir): for everything |
||
29178 | glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)' |
||
29179 | |||
29180 | |||
29181 | # gobject: |
||
29182 | # same as glib |
||
29183 | gobject_INCLUDES='$(glib_INCLUDES)' |
||
29184 | |||
29185 | |||
29186 | # gmodule: |
||
29187 | # glib includes |
||
29188 | # $(top_srcdir)/gmodule: for gmodule.h |
||
29189 | gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule' |
||
29190 | |||
29191 | |||
29192 | # gio: |
||
29193 | # same as gmodule |
||
29194 | gio_INCLUDES='$(gmodule_INCLUDES)' |
||
29195 | |||
29196 | |||
29197 | |||
29198 | ac_config_files="$ac_config_files glib-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gobject-2.0.pc gio-2.0.pc gio-unix-2.0.pc gio-windows-2.0.pc glib-zip glib-gettextize Makefile build/Makefile build/win32/Makefile build/win32/dirent/Makefile build/win32/vs9/Makefile build/win32/vs9/glib-version-paths.vsprops build/win32/vs10/Makefile build/win32/vs10/glib-version-paths.props build/win32/vs11/Makefile build/win32/vs12/Makefile build/win32/vs14/Makefile glib/Makefile glib/libcharset/Makefile glib/gnulib/Makefile glib/pcre/Makefile glib/update-pcre/Makefile glib/tests/Makefile gmodule/Makefile gmodule/gmoduleconf.h gobject/Makefile gobject/glib-mkenums gobject/tests/Makefile gthread/Makefile gio/Makefile gio/gdbus-2.0/codegen/Makefile gio/gdbus-2.0/codegen/config.py gio/gnetworking.h gio/xdgmime/Makefile gio/inotify/Makefile gio/kqueue/Makefile gio/fam/Makefile gio/win32/Makefile gio/tests/Makefile gio/tests/gdbus-object-manager-example/Makefile gio/tests/services/Makefile gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service gio/tests/modules/Makefile po/Makefile.in docs/Makefile docs/reference/Makefile docs/reference/glib/Makefile docs/reference/glib/version.xml docs/reference/gobject/Makefile docs/reference/gobject/version.xml docs/reference/gio/Makefile docs/reference/gio/version.xml tests/Makefile tests/gobject/Makefile tests/refcount/Makefile m4macros/Makefile" |
||
29199 | |||
29200 | |||
29201 | ac_config_commands="$ac_config_commands chmod-scripts" |
||
29202 | |||
29203 | |||
29204 | # we want to invoke this macro solely so that the config.status script |
||
29205 | # and automake generated makefiles know about these generated files. |
||
29206 | # They are only needed to distcheck the package |
||
29207 | if false; then |
||
29208 | ac_config_files="$ac_config_files INSTALL README config.h.win32 glib/glibconfig.h.win32 glib/makefile.msc glib/glib.rc gmodule/makefile.msc gmodule/gmodule.rc gobject/makefile.msc gobject/gobject.rc gthread/makefile.msc gthread/gthread.rc gio/gio.rc tests/makefile.msc" |
||
29209 | |||
29210 | fi |
||
29211 | |||
29212 | cat >confcache <<\_ACEOF |
||
29213 | # This file is a shell script that caches the results of configure |
||
29214 | # tests run on this system so they can be shared between configure |
||
29215 | # scripts and configure runs, see configure's option --config-cache. |
||
29216 | # It is not useful on other systems. If it contains results you don't |
||
29217 | # want to keep, you may remove or edit it. |
||
29218 | # |
||
29219 | # config.status only pays attention to the cache file if you give it |
||
29220 | # the --recheck option to rerun configure. |
||
29221 | # |
||
29222 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
||
29223 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
||
29224 | # following values. |
||
29225 | |||
29226 | _ACEOF |
||
29227 | |||
29228 | # The following way of writing the cache mishandles newlines in values, |
||
29229 | # but we know of no workaround that is simple, portable, and efficient. |
||
29230 | # So, we kill variables containing newlines. |
||
29231 | # Ultrix sh set writes to stderr and can't be redirected directly, |
||
29232 | # and sets the high bit in the cache file unless we assign to the vars. |
||
29233 | ( |
||
29234 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
||
29235 | eval ac_val=\$$ac_var |
||
29236 | case $ac_val in #( |
||
29237 | *${as_nl}*) |
||
29238 | case $ac_var in #( |
||
29239 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
||
29240 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
29241 | esac |
||
29242 | case $ac_var in #( |
||
29243 | _ | IFS | as_nl) ;; #( |
||
29244 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
29245 | *) { eval $ac_var=; unset $ac_var;} ;; |
||
29246 | esac ;; |
||
29247 | esac |
||
29248 | done |
||
29249 | |||
29250 | (set) 2>&1 | |
||
29251 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
||
29252 | *${as_nl}ac_space=\ *) |
||
29253 | # `set' does not quote correctly, so add quotes: double-quote |
||
29254 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
||
29255 | sed -n \ |
||
29256 | "s/'/'\\\\''/g; |
||
29257 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
||
29258 | ;; #( |
||
29259 | *) |
||
29260 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
||
29261 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
29262 | ;; |
||
29263 | esac | |
||
29264 | sort |
||
29265 | ) | |
||
29266 | sed ' |
||
29267 | /^ac_cv_env_/b end |
||
29268 | t clear |
||
29269 | :clear |
||
29270 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
||
29271 | t end |
||
29272 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
||
29273 | :end' >>confcache |
||
29274 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
||
29275 | if test -w "$cache_file"; then |
||
29276 | if test "x$cache_file" != "x/dev/null"; then |
||
29277 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
||
29278 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
||
29279 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
||
29280 | cat confcache >"$cache_file" |
||
29281 | else |
||
29282 | case $cache_file in #( |
||
29283 | */* | ?:*) |
||
29284 | mv -f confcache "$cache_file"$$ && |
||
29285 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
||
29286 | *) |
||
29287 | mv -f confcache "$cache_file" ;; |
||
29288 | esac |
||
29289 | fi |
||
29290 | fi |
||
29291 | else |
||
29292 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
||
29293 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
||
29294 | fi |
||
29295 | fi |
||
29296 | rm -f confcache |
||
29297 | |||
29298 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
29299 | # Let make expand exec_prefix. |
||
29300 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
||
29301 | |||
29302 | DEFS=-DHAVE_CONFIG_H |
||
29303 | |||
29304 | ac_libobjs= |
||
29305 | ac_ltlibobjs= |
||
29306 | U= |
||
29307 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
||
29308 | # 1. Remove the extension, and $U if already installed. |
||
29309 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
||
29310 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
||
29311 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
||
29312 | # will be set to the directory where LIBOBJS objects are built. |
||
29313 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
||
29314 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
||
29315 | done |
||
29316 | LIBOBJS=$ac_libobjs |
||
29317 | |||
29318 | LTLIBOBJS=$ac_ltlibobjs |
||
29319 | |||
29320 | |||
29321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
||
29322 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
||
29323 | if test -n "$am_sleep_pid"; then |
||
29324 | # Hide warnings about reused PIDs. |
||
29325 | wait $am_sleep_pid 2>/dev/null |
||
29326 | fi |
||
29327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
||
29328 | $as_echo "done" >&6; } |
||
29329 | if test -n "$EXEEXT"; then |
||
29330 | am__EXEEXT_TRUE= |
||
29331 | am__EXEEXT_FALSE='#' |
||
29332 | else |
||
29333 | am__EXEEXT_TRUE='#' |
||
29334 | am__EXEEXT_FALSE= |
||
29335 | fi |
||
29336 | |||
29337 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
||
29338 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
||
29339 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29340 | fi |
||
29341 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
||
29342 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
||
29343 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29344 | fi |
||
29345 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
||
29346 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
||
29347 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29348 | fi |
||
29349 | if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then |
||
29350 | as_fn_error $? "conditional \"HAVE_GCC\" was never defined. |
||
29351 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29352 | fi |
||
29353 | if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then |
||
29354 | as_fn_error $? "conditional \"OS_WIN32\" was never defined. |
||
29355 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29356 | fi |
||
29357 | if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then |
||
29358 | as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined. |
||
29359 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29360 | fi |
||
29361 | if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then |
||
29362 | as_fn_error $? "conditional \"OS_UNIX\" was never defined. |
||
29363 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29364 | fi |
||
29365 | if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then |
||
29366 | as_fn_error $? "conditional \"OS_LINUX\" was never defined. |
||
29367 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29368 | fi |
||
29369 | if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then |
||
29370 | as_fn_error $? "conditional \"OS_CARBON\" was never defined. |
||
29371 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29372 | fi |
||
29373 | if test -z "${OS_COCOA_TRUE}" && test -z "${OS_COCOA_FALSE}"; then |
||
29374 | as_fn_error $? "conditional \"OS_COCOA\" was never defined. |
||
29375 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29376 | fi |
||
29377 | if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then |
||
29378 | as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined. |
||
29379 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29380 | fi |
||
29381 | if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then |
||
29382 | as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined. |
||
29383 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29384 | fi |
||
29385 | if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then |
||
29386 | as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined. |
||
29387 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29388 | fi |
||
29389 | if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then |
||
29390 | as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined. |
||
29391 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29392 | fi |
||
29393 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
||
29394 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
||
29395 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29396 | fi |
||
29397 | if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then |
||
29398 | as_fn_error $? "conditional \"HAVE_CXX\" was never defined. |
||
29399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29400 | fi |
||
29401 | if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then |
||
29402 | as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined. |
||
29403 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29404 | fi |
||
29405 | if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then |
||
29406 | as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined. |
||
29407 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29408 | fi |
||
29409 | if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then |
||
29410 | as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined. |
||
29411 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29412 | fi |
||
29413 | |||
29414 | if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then |
||
29415 | as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined. |
||
29416 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29417 | fi |
||
29418 | if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then |
||
29419 | as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined. |
||
29420 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29421 | fi |
||
29422 | if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then |
||
29423 | as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined. |
||
29424 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29425 | fi |
||
29426 | if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then |
||
29427 | as_fn_error $? "conditional \"HAVE_KQUEUE\" was never defined. |
||
29428 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29429 | fi |
||
29430 | if test -z "${HAVE_FAM_TRUE}" && test -z "${HAVE_FAM_FALSE}"; then |
||
29431 | as_fn_error $? "conditional \"HAVE_FAM\" was never defined. |
||
29432 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29433 | fi |
||
29434 | if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then |
||
29435 | as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined. |
||
29436 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29437 | fi |
||
29438 | if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then |
||
29439 | as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined. |
||
29440 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29441 | fi |
||
29442 | if test -z "${THREADS_POSIX_TRUE}" && test -z "${THREADS_POSIX_FALSE}"; then |
||
29443 | as_fn_error $? "conditional \"THREADS_POSIX\" was never defined. |
||
29444 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29445 | fi |
||
29446 | if test -z "${THREADS_WIN32_TRUE}" && test -z "${THREADS_WIN32_FALSE}"; then |
||
29447 | as_fn_error $? "conditional \"THREADS_WIN32\" was never defined. |
||
29448 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29449 | fi |
||
29450 | if test -z "${THREADS_NONE_TRUE}" && test -z "${THREADS_NONE_FALSE}"; then |
||
29451 | as_fn_error $? "conditional \"THREADS_NONE\" was never defined. |
||
29452 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29453 | fi |
||
29454 | if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then |
||
29455 | as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined. |
||
29456 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29457 | fi |
||
29458 | if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then |
||
29459 | as_fn_error $? "conditional \"USE_SYSTEM_PCRE\" was never defined. |
||
29460 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29461 | fi |
||
29462 | if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then |
||
29463 | as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. |
||
29464 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29465 | fi |
||
29466 | if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then |
||
29467 | as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. |
||
29468 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29469 | fi |
||
29470 | if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then |
||
29471 | as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. |
||
29472 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29473 | fi |
||
29474 | if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then |
||
29475 | as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. |
||
29476 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29477 | fi |
||
29478 | if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then |
||
29479 | as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. |
||
29480 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29481 | fi |
||
29482 | if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then |
||
29483 | as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. |
||
29484 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29485 | fi |
||
29486 | if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then |
||
29487 | as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. |
||
29488 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29489 | fi |
||
29490 | if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then |
||
29491 | as_fn_error $? "conditional \"ENABLE_MAN\" was never defined. |
||
29492 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29493 | fi |
||
29494 | if test -z "${ENABLE_DTRACE_TRUE}" && test -z "${ENABLE_DTRACE_FALSE}"; then |
||
29495 | as_fn_error $? "conditional \"ENABLE_DTRACE\" was never defined. |
||
29496 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29497 | fi |
||
29498 | if test -z "${ENABLE_SYSTEMTAP_TRUE}" && test -z "${ENABLE_SYSTEMTAP_FALSE}"; then |
||
29499 | as_fn_error $? "conditional \"ENABLE_SYSTEMTAP\" was never defined. |
||
29500 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29501 | fi |
||
29502 | if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then |
||
29503 | as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined. |
||
29504 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29505 | fi |
||
29506 | if test -z "${HAVE_DBUS_DAEMON_TRUE}" && test -z "${HAVE_DBUS_DAEMON_FALSE}"; then |
||
29507 | as_fn_error $? "conditional \"HAVE_DBUS_DAEMON\" was never defined. |
||
29508 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
||
29509 | fi |
||
29510 | |||
29511 | : "${CONFIG_STATUS=./config.status}" |
||
29512 | ac_write_fail=0 |
||
29513 | ac_clean_files_save=$ac_clean_files |
||
29514 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
||
29515 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
||
29516 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
||
29517 | as_write_fail=0 |
||
29518 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
||
29519 | #! $SHELL |
||
29520 | # Generated by $as_me. |
||
29521 | # Run this file to recreate the current configuration. |
||
29522 | # Compiler output produced by configure, useful for debugging |
||
29523 | # configure, is in config.log if it exists. |
||
29524 | |||
29525 | debug=false |
||
29526 | ac_cs_recheck=false |
||
29527 | ac_cs_silent=false |
||
29528 | |||
29529 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
29530 | export SHELL |
||
29531 | _ASEOF |
||
29532 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
||
29533 | ## -------------------- ## |
||
29534 | ## M4sh Initialization. ## |
||
29535 | ## -------------------- ## |
||
29536 | |||
29537 | # Be more Bourne compatible |
||
29538 | DUALCASE=1; export DUALCASE # for MKS sh |
||
29539 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
29540 | emulate sh |
||
29541 | NULLCMD=: |
||
29542 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
29543 | # is contrary to our usage. Disable this feature. |
||
29544 | alias -g '${1+"$@"}'='"$@"' |
||
29545 | setopt NO_GLOB_SUBST |
||
29546 | else |
||
29547 | case `(set -o) 2>/dev/null` in #( |
||
29548 | *posix*) : |
||
29549 | set -o posix ;; #( |
||
29550 | *) : |
||
29551 | ;; |
||
29552 | esac |
||
29553 | fi |
||
29554 | |||
29555 | |||
29556 | as_nl=' |
||
29557 | ' |
||
29558 | export as_nl |
||
29559 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
29560 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
29561 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
29562 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
29563 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
||
29564 | # but without wasting forks for bash or zsh. |
||
29565 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
||
29566 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
29567 | as_echo='print -r --' |
||
29568 | as_echo_n='print -rn --' |
||
29569 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
29570 | as_echo='printf %s\n' |
||
29571 | as_echo_n='printf %s' |
||
29572 | else |
||
29573 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
29574 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
29575 | as_echo_n='/usr/ucb/echo -n' |
||
29576 | else |
||
29577 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
29578 | as_echo_n_body='eval |
||
29579 | arg=$1; |
||
29580 | case $arg in #( |
||
29581 | *"$as_nl"*) |
||
29582 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
29583 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
29584 | esac; |
||
29585 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
29586 | ' |
||
29587 | export as_echo_n_body |
||
29588 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
29589 | fi |
||
29590 | export as_echo_body |
||
29591 | as_echo='sh -c $as_echo_body as_echo' |
||
29592 | fi |
||
29593 | |||
29594 | # The user is always right. |
||
29595 | if test "${PATH_SEPARATOR+set}" != set; then |
||
29596 | PATH_SEPARATOR=: |
||
29597 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
29598 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
29599 | PATH_SEPARATOR=';' |
||
29600 | } |
||
29601 | fi |
||
29602 | |||
29603 | |||
29604 | # IFS |
||
29605 | # We need space, tab and new line, in precisely that order. Quoting is |
||
29606 | # there to prevent editors from complaining about space-tab. |
||
29607 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
29608 | # splitting by setting IFS to empty value.) |
||
29609 | IFS=" "" $as_nl" |
||
29610 | |||
29611 | # Find who we are. Look in the path if we contain no directory separator. |
||
29612 | as_myself= |
||
29613 | case $0 in #(( |
||
29614 | *[\\/]* ) as_myself=$0 ;; |
||
29615 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
29616 | for as_dir in $PATH |
||
29617 | do |
||
29618 | IFS=$as_save_IFS |
||
29619 | test -z "$as_dir" && as_dir=. |
||
29620 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
29621 | done |
||
29622 | IFS=$as_save_IFS |
||
29623 | |||
29624 | ;; |
||
29625 | esac |
||
29626 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
29627 | # in which case we are not to be found in the path. |
||
29628 | if test "x$as_myself" = x; then |
||
29629 | as_myself=$0 |
||
29630 | fi |
||
29631 | if test ! -f "$as_myself"; then |
||
29632 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
29633 | exit 1 |
||
29634 | fi |
||
29635 | |||
29636 | # Unset variables that we do not need and which cause bugs (e.g. in |
||
29637 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
||
29638 | # suppresses any "Segmentation fault" message there. '((' could |
||
29639 | # trigger a bug in pdksh 5.2.14. |
||
29640 | for as_var in BASH_ENV ENV MAIL MAILPATH |
||
29641 | do eval test x\${$as_var+set} = xset \ |
||
29642 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
||
29643 | done |
||
29644 | PS1='$ ' |
||
29645 | PS2='> ' |
||
29646 | PS4='+ ' |
||
29647 | |||
29648 | # NLS nuisances. |
||
29649 | LC_ALL=C |
||
29650 | export LC_ALL |
||
29651 | LANGUAGE=C |
||
29652 | export LANGUAGE |
||
29653 | |||
29654 | # CDPATH. |
||
29655 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
29656 | |||
29657 | |||
29658 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
29659 | # ---------------------------------------- |
||
29660 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
29661 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
29662 | # script with STATUS, using 1 if that was 0. |
||
29663 | as_fn_error () |
||
29664 | { |
||
29665 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
29666 | if test "$4"; then |
||
29667 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
29668 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
29669 | fi |
||
29670 | $as_echo "$as_me: error: $2" >&2 |
||
29671 | as_fn_exit $as_status |
||
29672 | } # as_fn_error |
||
29673 | |||
29674 | |||
29675 | # as_fn_set_status STATUS |
||
29676 | # ----------------------- |
||
29677 | # Set $? to STATUS, without forking. |
||
29678 | as_fn_set_status () |
||
29679 | { |
||
29680 | return $1 |
||
29681 | } # as_fn_set_status |
||
29682 | |||
29683 | # as_fn_exit STATUS |
||
29684 | # ----------------- |
||
29685 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
29686 | as_fn_exit () |
||
29687 | { |
||
29688 | set +e |
||
29689 | as_fn_set_status $1 |
||
29690 | exit $1 |
||
29691 | } # as_fn_exit |
||
29692 | |||
29693 | # as_fn_unset VAR |
||
29694 | # --------------- |
||
29695 | # Portably unset VAR. |
||
29696 | as_fn_unset () |
||
29697 | { |
||
29698 | { eval $1=; unset $1;} |
||
29699 | } |
||
29700 | as_unset=as_fn_unset |
||
29701 | # as_fn_append VAR VALUE |
||
29702 | # ---------------------- |
||
29703 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
29704 | # advantage of any shell optimizations that allow amortized linear growth over |
||
29705 | # repeated appends, instead of the typical quadratic growth present in naive |
||
29706 | # implementations. |
||
29707 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
29708 | eval 'as_fn_append () |
||
29709 | { |
||
29710 | eval $1+=\$2 |
||
29711 | }' |
||
29712 | else |
||
29713 | as_fn_append () |
||
29714 | { |
||
29715 | eval $1=\$$1\$2 |
||
29716 | } |
||
29717 | fi # as_fn_append |
||
29718 | |||
29719 | # as_fn_arith ARG... |
||
29720 | # ------------------ |
||
29721 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
29722 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
29723 | # must be portable across $(()) and expr. |
||
29724 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
29725 | eval 'as_fn_arith () |
||
29726 | { |
||
29727 | as_val=$(( $* )) |
||
29728 | }' |
||
29729 | else |
||
29730 | as_fn_arith () |
||
29731 | { |
||
29732 | as_val=`expr "$@" || test $? -eq 1` |
||
29733 | } |
||
29734 | fi # as_fn_arith |
||
29735 | |||
29736 | |||
29737 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
29738 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
29739 | as_expr=expr |
||
29740 | else |
||
29741 | as_expr=false |
||
29742 | fi |
||
29743 | |||
29744 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
29745 | as_basename=basename |
||
29746 | else |
||
29747 | as_basename=false |
||
29748 | fi |
||
29749 | |||
29750 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
29751 | as_dirname=dirname |
||
29752 | else |
||
29753 | as_dirname=false |
||
29754 | fi |
||
29755 | |||
29756 | as_me=`$as_basename -- "$0" || |
||
29757 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
29758 | X"$0" : 'X\(//\)$' \| \ |
||
29759 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
29760 | $as_echo X/"$0" | |
||
29761 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
29762 | s//\1/ |
||
29763 | q |
||
29764 | } |
||
29765 | /^X\/\(\/\/\)$/{ |
||
29766 | s//\1/ |
||
29767 | q |
||
29768 | } |
||
29769 | /^X\/\(\/\).*/{ |
||
29770 | s//\1/ |
||
29771 | q |
||
29772 | } |
||
29773 | s/.*/./; q'` |
||
29774 | |||
29775 | # Avoid depending upon Character Ranges. |
||
29776 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
29777 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
29778 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
29779 | as_cr_digits='0123456789' |
||
29780 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
29781 | |||
29782 | ECHO_C= ECHO_N= ECHO_T= |
||
29783 | case `echo -n x` in #((((( |
||
29784 | -n*) |
||
29785 | case `echo 'xy\c'` in |
||
29786 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
29787 | xy) ECHO_C='\c';; |
||
29788 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
29789 | ECHO_T=' ';; |
||
29790 | esac;; |
||
29791 | *) |
||
29792 | ECHO_N='-n';; |
||
29793 | esac |
||
29794 | |||
29795 | rm -f conf$$ conf$$.exe conf$$.file |
||
29796 | if test -d conf$$.dir; then |
||
29797 | rm -f conf$$.dir/conf$$.file |
||
29798 | else |
||
29799 | rm -f conf$$.dir |
||
29800 | mkdir conf$$.dir 2>/dev/null |
||
29801 | fi |
||
29802 | if (echo >conf$$.file) 2>/dev/null; then |
||
29803 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
29804 | as_ln_s='ln -s' |
||
29805 | # ... but there are two gotchas: |
||
29806 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
29807 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
29808 | # In both cases, we have to default to `cp -pR'. |
||
29809 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
29810 | as_ln_s='cp -pR' |
||
29811 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
29812 | as_ln_s=ln |
||
29813 | else |
||
29814 | as_ln_s='cp -pR' |
||
29815 | fi |
||
29816 | else |
||
29817 | as_ln_s='cp -pR' |
||
29818 | fi |
||
29819 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
29820 | rmdir conf$$.dir 2>/dev/null |
||
29821 | |||
29822 | |||
29823 | # as_fn_mkdir_p |
||
29824 | # ------------- |
||
29825 | # Create "$as_dir" as a directory, including parents if necessary. |
||
29826 | as_fn_mkdir_p () |
||
29827 | { |
||
29828 | |||
29829 | case $as_dir in #( |
||
29830 | -*) as_dir=./$as_dir;; |
||
29831 | esac |
||
29832 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
29833 | as_dirs= |
||
29834 | while :; do |
||
29835 | case $as_dir in #( |
||
29836 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
29837 | *) as_qdir=$as_dir;; |
||
29838 | esac |
||
29839 | as_dirs="'$as_qdir' $as_dirs" |
||
29840 | as_dir=`$as_dirname -- "$as_dir" || |
||
29841 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
29842 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
29843 | X"$as_dir" : 'X\(//\)$' \| \ |
||
29844 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
29845 | $as_echo X"$as_dir" | |
||
29846 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
29847 | s//\1/ |
||
29848 | q |
||
29849 | } |
||
29850 | /^X\(\/\/\)[^/].*/{ |
||
29851 | s//\1/ |
||
29852 | q |
||
29853 | } |
||
29854 | /^X\(\/\/\)$/{ |
||
29855 | s//\1/ |
||
29856 | q |
||
29857 | } |
||
29858 | /^X\(\/\).*/{ |
||
29859 | s//\1/ |
||
29860 | q |
||
29861 | } |
||
29862 | s/.*/./; q'` |
||
29863 | test -d "$as_dir" && break |
||
29864 | done |
||
29865 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
29866 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
29867 | |||
29868 | |||
29869 | } # as_fn_mkdir_p |
||
29870 | if mkdir -p . 2>/dev/null; then |
||
29871 | as_mkdir_p='mkdir -p "$as_dir"' |
||
29872 | else |
||
29873 | test -d ./-p && rmdir ./-p |
||
29874 | as_mkdir_p=false |
||
29875 | fi |
||
29876 | |||
29877 | |||
29878 | # as_fn_executable_p FILE |
||
29879 | # ----------------------- |
||
29880 | # Test if FILE is an executable regular file. |
||
29881 | as_fn_executable_p () |
||
29882 | { |
||
29883 | test -f "$1" && test -x "$1" |
||
29884 | } # as_fn_executable_p |
||
29885 | as_test_x='test -x' |
||
29886 | as_executable_p=as_fn_executable_p |
||
29887 | |||
29888 | # Sed expression to map a string onto a valid CPP name. |
||
29889 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
29890 | |||
29891 | # Sed expression to map a string onto a valid variable name. |
||
29892 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
29893 | |||
29894 | |||
29895 | exec 6>&1 |
||
29896 | ## ----------------------------------- ## |
||
29897 | ## Main body of $CONFIG_STATUS script. ## |
||
29898 | ## ----------------------------------- ## |
||
29899 | _ASEOF |
||
29900 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
||
29901 | |||
29902 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
29903 | # Save the log message, to keep $0 and so on meaningful, and to |
||
29904 | # report actual input values of CONFIG_FILES etc. instead of their |
||
29905 | # values after options handling. |
||
29906 | ac_log=" |
||
29907 | This file was extended by glib $as_me 2.48.1, which was |
||
29908 | generated by GNU Autoconf 2.69. Invocation command line was |
||
29909 | |||
29910 | CONFIG_FILES = $CONFIG_FILES |
||
29911 | CONFIG_HEADERS = $CONFIG_HEADERS |
||
29912 | CONFIG_LINKS = $CONFIG_LINKS |
||
29913 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
||
29914 | $ $0 $@ |
||
29915 | |||
29916 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
29917 | " |
||
29918 | |||
29919 | _ACEOF |
||
29920 | |||
29921 | case $ac_config_files in *" |
||
29922 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
||
29923 | esac |
||
29924 | |||
29925 | case $ac_config_headers in *" |
||
29926 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
||
29927 | esac |
||
29928 | |||
29929 | |||
29930 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
29931 | # Files that config.status was made for. |
||
29932 | config_files="$ac_config_files" |
||
29933 | config_headers="$ac_config_headers" |
||
29934 | config_commands="$ac_config_commands" |
||
29935 | |||
29936 | _ACEOF |
||
29937 | |||
29938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
29939 | ac_cs_usage="\ |
||
29940 | \`$as_me' instantiates files and other configuration actions |
||
29941 | from templates according to the current configuration. Unless the files |
||
29942 | and actions are specified as TAGs, all are instantiated by default. |
||
29943 | |||
29944 | Usage: $0 [OPTION]... [TAG]... |
||
29945 | |||
29946 | -h, --help print this help, then exit |
||
29947 | -V, --version print version number and configuration settings, then exit |
||
29948 | --config print configuration, then exit |
||
29949 | -q, --quiet, --silent |
||
29950 | do not print progress messages |
||
29951 | -d, --debug don't remove temporary files |
||
29952 | --recheck update $as_me by reconfiguring in the same conditions |
||
29953 | --file=FILE[:TEMPLATE] |
||
29954 | instantiate the configuration file FILE |
||
29955 | --header=FILE[:TEMPLATE] |
||
29956 | instantiate the configuration header FILE |
||
29957 | |||
29958 | Configuration files: |
||
29959 | $config_files |
||
29960 | |||
29961 | Configuration headers: |
||
29962 | $config_headers |
||
29963 | |||
29964 | Configuration commands: |
||
29965 | $config_commands |
||
29966 | |||
29967 | Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>." |
||
29968 | |||
29969 | _ACEOF |
||
29970 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
29971 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
||
29972 | ac_cs_version="\\ |
||
29973 | glib config.status 2.48.1 |
||
29974 | configured by $0, generated by GNU Autoconf 2.69, |
||
29975 | with options \\"\$ac_cs_config\\" |
||
29976 | |||
29977 | Copyright (C) 2012 Free Software Foundation, Inc. |
||
29978 | This config.status script is free software; the Free Software Foundation |
||
29979 | gives unlimited permission to copy, distribute and modify it." |
||
29980 | |||
29981 | ac_pwd='$ac_pwd' |
||
29982 | srcdir='$srcdir' |
||
29983 | INSTALL='$INSTALL' |
||
29984 | MKDIR_P='$MKDIR_P' |
||
29985 | AWK='$AWK' |
||
29986 | test -n "\$AWK" || AWK=awk |
||
29987 | _ACEOF |
||
29988 | |||
29989 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
29990 | # The default lists apply if the user does not specify any file. |
||
29991 | ac_need_defaults=: |
||
29992 | while test $# != 0 |
||
29993 | do |
||
29994 | case $1 in |
||
29995 | --*=?*) |
||
29996 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
29997 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
||
29998 | ac_shift=: |
||
29999 | ;; |
||
30000 | --*=) |
||
30001 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
30002 | ac_optarg= |
||
30003 | ac_shift=: |
||
30004 | ;; |
||
30005 | *) |
||
30006 | ac_option=$1 |
||
30007 | ac_optarg=$2 |
||
30008 | ac_shift=shift |
||
30009 | ;; |
||
30010 | esac |
||
30011 | |||
30012 | case $ac_option in |
||
30013 | # Handling of the options. |
||
30014 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
||
30015 | ac_cs_recheck=: ;; |
||
30016 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
||
30017 | $as_echo "$ac_cs_version"; exit ;; |
||
30018 | --config | --confi | --conf | --con | --co | --c ) |
||
30019 | $as_echo "$ac_cs_config"; exit ;; |
||
30020 | --debug | --debu | --deb | --de | --d | -d ) |
||
30021 | debug=: ;; |
||
30022 | --file | --fil | --fi | --f ) |
||
30023 | $ac_shift |
||
30024 | case $ac_optarg in |
||
30025 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
30026 | '') as_fn_error $? "missing file argument" ;; |
||
30027 | esac |
||
30028 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
||
30029 | ac_need_defaults=false;; |
||
30030 | --header | --heade | --head | --hea ) |
||
30031 | $ac_shift |
||
30032 | case $ac_optarg in |
||
30033 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
30034 | esac |
||
30035 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
||
30036 | ac_need_defaults=false;; |
||
30037 | --he | --h) |
||
30038 | # Conflict between --help and --header |
||
30039 | as_fn_error $? "ambiguous option: \`$1' |
||
30040 | Try \`$0 --help' for more information.";; |
||
30041 | --help | --hel | -h ) |
||
30042 | $as_echo "$ac_cs_usage"; exit ;; |
||
30043 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
30044 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
||
30045 | ac_cs_silent=: ;; |
||
30046 | |||
30047 | # This is an error. |
||
30048 | -*) as_fn_error $? "unrecognized option: \`$1' |
||
30049 | Try \`$0 --help' for more information." ;; |
||
30050 | |||
30051 | *) as_fn_append ac_config_targets " $1" |
||
30052 | ac_need_defaults=false ;; |
||
30053 | |||
30054 | esac |
||
30055 | shift |
||
30056 | done |
||
30057 | |||
30058 | ac_configure_extra_args= |
||
30059 | |||
30060 | if $ac_cs_silent; then |
||
30061 | exec 6>/dev/null |
||
30062 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
||
30063 | fi |
||
30064 | |||
30065 | _ACEOF |
||
30066 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
30067 | if \$ac_cs_recheck; then |
||
30068 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
||
30069 | shift |
||
30070 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
||
30071 | CONFIG_SHELL='$SHELL' |
||
30072 | export CONFIG_SHELL |
||
30073 | exec "\$@" |
||
30074 | fi |
||
30075 | |||
30076 | _ACEOF |
||
30077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
30078 | exec 5>>config.log |
||
30079 | { |
||
30080 | echo |
||
30081 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
30082 | ## Running $as_me. ## |
||
30083 | _ASBOX |
||
30084 | $as_echo "$ac_log" |
||
30085 | } >&5 |
||
30086 | |||
30087 | _ACEOF |
||
30088 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
30089 | # |
||
30090 | # INIT-COMMANDS |
||
30091 | # |
||
30092 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
||
30093 | |||
30094 | |||
30095 | |||
30096 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
||
30097 | # if CDPATH is set. |
||
30098 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
30099 | |||
30100 | sed_quote_subst='$sed_quote_subst' |
||
30101 | double_quote_subst='$double_quote_subst' |
||
30102 | delay_variable_subst='$delay_variable_subst' |
||
30103 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
||
30104 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
||
30105 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
||
30106 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
||
30107 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
||
30108 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
||
30109 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
||
30110 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
||
30111 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
||
30112 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
||
30113 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
||
30114 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
||
30115 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
||
30116 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
||
30117 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
||
30118 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
||
30119 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
||
30120 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
||
30121 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
||
30122 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
||
30123 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
||
30124 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
||
30125 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
||
30126 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
||
30127 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
||
30128 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
||
30129 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
||
30130 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
||
30131 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
||
30132 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
||
30133 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
||
30134 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
||
30135 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
||
30136 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
||
30137 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
||
30138 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
||
30139 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
||
30140 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
||
30141 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
||
30142 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
||
30143 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
||
30144 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
||
30145 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
||
30146 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
||
30147 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
||
30148 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
||
30149 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
||
30150 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
30151 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
30152 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
||
30153 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
||
30154 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
||
30155 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
||
30156 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
||
30157 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
||
30158 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
||
30159 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
||
30160 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
||
30161 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
||
30162 | 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"`' |
||
30163 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
||
30164 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
||
30165 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
||
30166 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
||
30167 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
||
30168 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
||
30169 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
||
30170 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
||
30171 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
||
30172 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
||
30173 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
||
30174 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
||
30175 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
||
30176 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
||
30177 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
||
30178 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
||
30179 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
||
30180 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
||
30181 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
||
30182 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
||
30183 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
||
30184 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
||
30185 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
||
30186 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
30187 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
30188 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
||
30189 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
||
30190 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
||
30191 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
||
30192 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
||
30193 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
||
30194 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
||
30195 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
||
30196 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
||
30197 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
||
30198 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
||
30199 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
||
30200 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
||
30201 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
||
30202 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
||
30203 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
||
30204 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
||
30205 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
||
30206 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
||
30207 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
||
30208 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
||
30209 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
||
30210 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
||
30211 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
||
30212 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
||
30213 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
||
30214 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
||
30215 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
||
30216 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
||
30217 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
||
30218 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
||
30219 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
||
30220 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
||
30221 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
||
30222 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
||
30223 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
||
30224 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
||
30225 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
30226 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
||
30227 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
||
30228 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
||
30229 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
||
30230 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
||
30231 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
||
30232 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
||
30233 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
||
30234 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
||
30235 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
||
30236 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
||
30237 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
||
30238 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
||
30239 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
||
30240 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
||
30241 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
||
30242 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
||
30243 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
||
30244 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
||
30245 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
||
30246 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
30247 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30248 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30249 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
||
30250 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
||
30251 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
30252 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
||
30253 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
||
30254 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
||
30255 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
||
30256 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
||
30257 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
||
30258 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
30259 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
30260 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
||
30261 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30262 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30263 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30264 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30265 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30266 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30267 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
||
30268 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
30269 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
||
30270 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
30271 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
||
30272 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
||
30273 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
||
30274 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
||
30275 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
||
30276 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
||
30277 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
||
30278 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
||
30279 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
||
30280 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30281 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
||
30282 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
||
30283 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30284 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
||
30285 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
||
30286 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
||
30287 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
||
30288 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
||
30289 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
||
30290 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
||
30291 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
||
30292 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
||
30293 | |||
30294 | LTCC='$LTCC' |
||
30295 | LTCFLAGS='$LTCFLAGS' |
||
30296 | compiler='$compiler_DEFAULT' |
||
30297 | |||
30298 | # A function that is used when there is no print builtin or printf. |
||
30299 | func_fallback_echo () |
||
30300 | { |
||
30301 | eval 'cat <<_LTECHO_EOF |
||
30302 | \$1 |
||
30303 | _LTECHO_EOF' |
||
30304 | } |
||
30305 | |||
30306 | # Quote evaled strings. |
||
30307 | for var in AS \ |
||
30308 | DLLTOOL \ |
||
30309 | OBJDUMP \ |
||
30310 | SHELL \ |
||
30311 | ECHO \ |
||
30312 | PATH_SEPARATOR \ |
||
30313 | SED \ |
||
30314 | GREP \ |
||
30315 | EGREP \ |
||
30316 | FGREP \ |
||
30317 | LD \ |
||
30318 | NM \ |
||
30319 | LN_S \ |
||
30320 | lt_SP2NL \ |
||
30321 | lt_NL2SP \ |
||
30322 | reload_flag \ |
||
30323 | deplibs_check_method \ |
||
30324 | file_magic_cmd \ |
||
30325 | file_magic_glob \ |
||
30326 | want_nocaseglob \ |
||
30327 | sharedlib_from_linklib_cmd \ |
||
30328 | AR \ |
||
30329 | AR_FLAGS \ |
||
30330 | archiver_list_spec \ |
||
30331 | STRIP \ |
||
30332 | RANLIB \ |
||
30333 | CC \ |
||
30334 | CFLAGS \ |
||
30335 | compiler \ |
||
30336 | lt_cv_sys_global_symbol_pipe \ |
||
30337 | lt_cv_sys_global_symbol_to_cdecl \ |
||
30338 | lt_cv_sys_global_symbol_to_import \ |
||
30339 | lt_cv_sys_global_symbol_to_c_name_address \ |
||
30340 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
||
30341 | lt_cv_nm_interface \ |
||
30342 | nm_file_list_spec \ |
||
30343 | lt_cv_truncate_bin \ |
||
30344 | lt_prog_compiler_no_builtin_flag \ |
||
30345 | lt_prog_compiler_pic \ |
||
30346 | lt_prog_compiler_wl \ |
||
30347 | lt_prog_compiler_static \ |
||
30348 | lt_cv_prog_compiler_c_o \ |
||
30349 | need_locks \ |
||
30350 | MANIFEST_TOOL \ |
||
30351 | DSYMUTIL \ |
||
30352 | NMEDIT \ |
||
30353 | LIPO \ |
||
30354 | OTOOL \ |
||
30355 | OTOOL64 \ |
||
30356 | shrext_cmds \ |
||
30357 | export_dynamic_flag_spec \ |
||
30358 | whole_archive_flag_spec \ |
||
30359 | compiler_needs_object \ |
||
30360 | with_gnu_ld \ |
||
30361 | allow_undefined_flag \ |
||
30362 | no_undefined_flag \ |
||
30363 | hardcode_libdir_flag_spec \ |
||
30364 | hardcode_libdir_separator \ |
||
30365 | exclude_expsyms \ |
||
30366 | include_expsyms \ |
||
30367 | file_list_spec \ |
||
30368 | variables_saved_for_relink \ |
||
30369 | libname_spec \ |
||
30370 | library_names_spec \ |
||
30371 | soname_spec \ |
||
30372 | install_override_mode \ |
||
30373 | finish_eval \ |
||
30374 | old_striplib \ |
||
30375 | striplib \ |
||
30376 | compiler_lib_search_dirs \ |
||
30377 | predep_objects \ |
||
30378 | postdep_objects \ |
||
30379 | predeps \ |
||
30380 | postdeps \ |
||
30381 | compiler_lib_search_path \ |
||
30382 | LD_CXX \ |
||
30383 | reload_flag_CXX \ |
||
30384 | compiler_CXX \ |
||
30385 | lt_prog_compiler_no_builtin_flag_CXX \ |
||
30386 | lt_prog_compiler_pic_CXX \ |
||
30387 | lt_prog_compiler_wl_CXX \ |
||
30388 | lt_prog_compiler_static_CXX \ |
||
30389 | lt_cv_prog_compiler_c_o_CXX \ |
||
30390 | export_dynamic_flag_spec_CXX \ |
||
30391 | whole_archive_flag_spec_CXX \ |
||
30392 | compiler_needs_object_CXX \ |
||
30393 | with_gnu_ld_CXX \ |
||
30394 | allow_undefined_flag_CXX \ |
||
30395 | no_undefined_flag_CXX \ |
||
30396 | hardcode_libdir_flag_spec_CXX \ |
||
30397 | hardcode_libdir_separator_CXX \ |
||
30398 | exclude_expsyms_CXX \ |
||
30399 | include_expsyms_CXX \ |
||
30400 | file_list_spec_CXX \ |
||
30401 | compiler_lib_search_dirs_CXX \ |
||
30402 | predep_objects_CXX \ |
||
30403 | postdep_objects_CXX \ |
||
30404 | predeps_CXX \ |
||
30405 | postdeps_CXX \ |
||
30406 | compiler_lib_search_path_CXX; do |
||
30407 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
||
30408 | *[\\\\\\\`\\"\\\$]*) |
||
30409 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
||
30410 | ;; |
||
30411 | *) |
||
30412 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
30413 | ;; |
||
30414 | esac |
||
30415 | done |
||
30416 | |||
30417 | # Double-quote double-evaled strings. |
||
30418 | for var in reload_cmds \ |
||
30419 | old_postinstall_cmds \ |
||
30420 | old_postuninstall_cmds \ |
||
30421 | old_archive_cmds \ |
||
30422 | extract_expsyms_cmds \ |
||
30423 | old_archive_from_new_cmds \ |
||
30424 | old_archive_from_expsyms_cmds \ |
||
30425 | archive_cmds \ |
||
30426 | archive_expsym_cmds \ |
||
30427 | module_cmds \ |
||
30428 | module_expsym_cmds \ |
||
30429 | export_symbols_cmds \ |
||
30430 | prelink_cmds \ |
||
30431 | postlink_cmds \ |
||
30432 | postinstall_cmds \ |
||
30433 | postuninstall_cmds \ |
||
30434 | finish_cmds \ |
||
30435 | sys_lib_search_path_spec \ |
||
30436 | configure_time_dlsearch_path \ |
||
30437 | configure_time_lt_sys_library_path \ |
||
30438 | reload_cmds_CXX \ |
||
30439 | old_archive_cmds_CXX \ |
||
30440 | old_archive_from_new_cmds_CXX \ |
||
30441 | old_archive_from_expsyms_cmds_CXX \ |
||
30442 | archive_cmds_CXX \ |
||
30443 | archive_expsym_cmds_CXX \ |
||
30444 | module_cmds_CXX \ |
||
30445 | module_expsym_cmds_CXX \ |
||
30446 | export_symbols_cmds_CXX \ |
||
30447 | prelink_cmds_CXX \ |
||
30448 | postlink_cmds_CXX; do |
||
30449 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
||
30450 | *[\\\\\\\`\\"\\\$]*) |
||
30451 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
||
30452 | ;; |
||
30453 | *) |
||
30454 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
||
30455 | ;; |
||
30456 | esac |
||
30457 | done |
||
30458 | |||
30459 | ac_aux_dir='$ac_aux_dir' |
||
30460 | |||
30461 | # See if we are running on zsh, and set the options that allow our |
||
30462 | # commands through without removal of \ escapes INIT. |
||
30463 | if test -n "\${ZSH_VERSION+set}"; then |
||
30464 | setopt NO_GLOB_SUBST |
||
30465 | fi |
||
30466 | |||
30467 | |||
30468 | PACKAGE='$PACKAGE' |
||
30469 | VERSION='$VERSION' |
||
30470 | RM='$RM' |
||
30471 | ofile='$ofile' |
||
30472 | |||
30473 | |||
30474 | |||
30475 | ac_aux_dir='$ac_aux_dir' |
||
30476 | |||
30477 | |||
30478 | |||
30479 | |||
30480 | # Note that if two cases are the same, case goes with the first one. |
||
30481 | # Note also that this is inside an AC_OUTPUT_COMMAND. We do not depend |
||
30482 | # on variable expansion in case labels. Look at the generated config.status |
||
30483 | # for a hint. |
||
30484 | |||
30485 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then |
||
30486 | glib_header_alloca_h="$ac_cv_working_alloca_h" |
||
30487 | else |
||
30488 | glib_header_alloca_h="$ac_cv_header_alloca_h" |
||
30489 | fi |
||
30490 | |||
30491 | if test x$enable_included_printf = xyes ; then |
||
30492 | glib_included_printf=yes |
||
30493 | fi |
||
30494 | |||
30495 | case 2 in |
||
30496 | $ac_cv_sizeof_short) |
||
30497 | gint16=short |
||
30498 | gint16_modifier='"h"' |
||
30499 | gint16_format='"hi"' |
||
30500 | guint16_format='"hu"' |
||
30501 | ;; |
||
30502 | $ac_cv_sizeof_int) |
||
30503 | gint16=int |
||
30504 | gint16_modifier='""' |
||
30505 | gint16_format='"i"' |
||
30506 | guint16_format='"u"' |
||
30507 | ;; |
||
30508 | esac |
||
30509 | case 4 in |
||
30510 | $ac_cv_sizeof_short) |
||
30511 | gint32=short |
||
30512 | gint32_modifier='"h"' |
||
30513 | gint32_format='"hi"' |
||
30514 | guint32_format='"hu"' |
||
30515 | ;; |
||
30516 | $ac_cv_sizeof_int) |
||
30517 | gint32=int |
||
30518 | gint32_modifier='""' |
||
30519 | gint32_format='"i"' |
||
30520 | guint32_format='"u"' |
||
30521 | ;; |
||
30522 | $ac_cv_sizeof_long) |
||
30523 | gint32=long |
||
30524 | gint32_modifier='"l"' |
||
30525 | gint32_format='"li"' |
||
30526 | guint32_format='"lu"' |
||
30527 | ;; |
||
30528 | esac |
||
30529 | case 8 in |
||
30530 | $ac_cv_sizeof_int) |
||
30531 | gint64=int |
||
30532 | gint64_modifier='""' |
||
30533 | gint64_format='"i"' |
||
30534 | guint64_format='"u"' |
||
30535 | glib_extension= |
||
30536 | gint64_constant='(val)' |
||
30537 | guint64_constant='(val)' |
||
30538 | ;; |
||
30539 | $ac_cv_sizeof_long) |
||
30540 | gint64=long |
||
30541 | gint64_modifier='"l"' |
||
30542 | gint64_format='"li"' |
||
30543 | guint64_format='"lu"' |
||
30544 | glib_extension= |
||
30545 | gint64_constant='(val##L)' |
||
30546 | guint64_constant='(val##UL)' |
||
30547 | ;; |
||
30548 | $ac_cv_sizeof_long_long) |
||
30549 | gint64='long long' |
||
30550 | if test -n "$glib_cv_long_long_format"; then |
||
30551 | gint64_modifier='"'$glib_cv_long_long_format'"' |
||
30552 | gint64_format='"'$glib_cv_long_long_format'i"' |
||
30553 | guint64_format='"'$glib_cv_long_long_format'u"' |
||
30554 | fi |
||
30555 | glib_extension='G_GNUC_EXTENSION ' |
||
30556 | gint64_constant='(G_GNUC_EXTENSION (val##LL))' |
||
30557 | guint64_constant='(G_GNUC_EXTENSION (val##ULL))' |
||
30558 | ;; |
||
30559 | $ac_cv_sizeof___int64) |
||
30560 | gint64='__int64' |
||
30561 | if test -n "$glib_cv_long_long_format"; then |
||
30562 | gint64_modifier='"'$glib_cv_long_long_format'"' |
||
30563 | gint64_format='"'$glib_cv_long_long_format'i"' |
||
30564 | guint64_format='"'$glib_cv_long_long_format'u"' |
||
30565 | fi |
||
30566 | glib_extension= |
||
30567 | gint64_constant='(val##i64)' |
||
30568 | guint64_constant='(val##ui64)' |
||
30569 | ;; |
||
30570 | esac |
||
30571 | glib_size_t=$ac_cv_sizeof_size_t |
||
30572 | glib_ssize_t=$ac_cv_sizeof_ssize_t |
||
30573 | glib_size_type_define="$glib_size_type" |
||
30574 | glib_ssize_type_define="$glib_ssize_type" |
||
30575 | glib_void_p=$ac_cv_sizeof_void_p |
||
30576 | glib_long=$ac_cv_sizeof_long |
||
30577 | |||
30578 | case "$glib_size_type" in |
||
30579 | short) |
||
30580 | gsize_modifier='"h"' |
||
30581 | gsize_format='"hu"' |
||
30582 | glib_msize_type='SHRT' |
||
30583 | ;; |
||
30584 | int) |
||
30585 | gsize_modifier='""' |
||
30586 | gsize_format='"u"' |
||
30587 | glib_msize_type='INT' |
||
30588 | ;; |
||
30589 | long) |
||
30590 | gsize_modifier='"l"' |
||
30591 | gsize_format='"lu"' |
||
30592 | glib_msize_type='LONG' |
||
30593 | ;; |
||
30594 | "long long"|__int64) |
||
30595 | gsize_modifier='"I64"' |
||
30596 | gsize_format='"I64u"' |
||
30597 | glib_msize_type='INT64' |
||
30598 | ;; |
||
30599 | esac |
||
30600 | |||
30601 | case "$glib_ssize_type" in |
||
30602 | short) |
||
30603 | gssize_modifier='"h"' |
||
30604 | gssize_format='"hi"' |
||
30605 | glib_mssize_type='SHRT' |
||
30606 | ;; |
||
30607 | int) |
||
30608 | gssize_modifier='""' |
||
30609 | gssize_format='"i"' |
||
30610 | glib_mssize_type='INT' |
||
30611 | ;; |
||
30612 | long) |
||
30613 | gssize_modifier='"l"' |
||
30614 | gssize_format='"li"' |
||
30615 | glib_mssize_type='LONG' |
||
30616 | ;; |
||
30617 | "long long"|__int64) |
||
30618 | gssize_modifier='"I64"' |
||
30619 | gssize_format='"I64i"' |
||
30620 | glib_mssize_type='INT64' |
||
30621 | ;; |
||
30622 | esac |
||
30623 | |||
30624 | gintbits=`expr $ac_cv_sizeof_int \* 8` |
||
30625 | glongbits=`expr $ac_cv_sizeof_long \* 8` |
||
30626 | gsizebits=`expr $ac_cv_sizeof_size_t \* 8` |
||
30627 | gssizebits=`expr $ac_cv_sizeof_ssize_t \* 8` |
||
30628 | |||
30629 | case $ac_cv_sizeof_void_p in |
||
30630 | $ac_cv_sizeof_int) |
||
30631 | glib_intptr_type_define=int |
||
30632 | gintptr_modifier='""' |
||
30633 | gintptr_format='"i"' |
||
30634 | guintptr_format='"u"' |
||
30635 | glib_gpi_cast='(gint)' |
||
30636 | glib_gpui_cast='(guint)' |
||
30637 | ;; |
||
30638 | $ac_cv_sizeof_long) |
||
30639 | glib_intptr_type_define=long |
||
30640 | gintptr_modifier='"l"' |
||
30641 | gintptr_format='"li"' |
||
30642 | guintptr_format='"lu"' |
||
30643 | glib_gpi_cast='(glong)' |
||
30644 | glib_gpui_cast='(gulong)' |
||
30645 | ;; |
||
30646 | $ac_cv_sizeof_long_long) |
||
30647 | glib_intptr_type_define='long long' |
||
30648 | gintptr_modifier='"I64"' |
||
30649 | gintptr_format='"I64i"' |
||
30650 | guintptr_format='"I64u"' |
||
30651 | glib_gpi_cast='(gint64)' |
||
30652 | glib_gpui_cast='(guint64)' |
||
30653 | ;; |
||
30654 | $ac_cv_sizeof___int64) |
||
30655 | glib_intptr_type_define=__int64 |
||
30656 | gintptr_modifier='"I64"' |
||
30657 | gintptr_format='"I64i"' |
||
30658 | guintptr_format='"I64u"' |
||
30659 | glib_gpi_cast='(gint64)' |
||
30660 | glib_gpui_cast='(guint64)' |
||
30661 | ;; |
||
30662 | *) |
||
30663 | glib_unknown_void_p=yes |
||
30664 | ;; |
||
30665 | esac |
||
30666 | |||
30667 | |||
30668 | glib_defines=" |
||
30669 | #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION |
||
30670 | #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION |
||
30671 | #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION |
||
30672 | " |
||
30673 | |||
30674 | case xyes in |
||
30675 | x$glib_cv_va_copy) glib_vacopy='#define G_VA_COPY va_copy' ;; |
||
30676 | x$glib_cv___va_copy) glib_vacopy='#define G_VA_COPY __va_copy' ;; |
||
30677 | *) glib_vacopy='' |
||
30678 | esac |
||
30679 | |||
30680 | if test x$glib_cv_va_val_copy = xno; then |
||
30681 | glib_vacopy="\$glib_vacopy |
||
30682 | #define G_VA_COPY_AS_ARRAY 1" |
||
30683 | fi |
||
30684 | |||
30685 | g_have_gnuc_varargs=$g_have_gnuc_varargs |
||
30686 | g_have_iso_c_varargs=$g_have_iso_c_varargs |
||
30687 | g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs |
||
30688 | |||
30689 | g_have_gnuc_visibility=$g_have_gnuc_visibility |
||
30690 | g_have_sunstudio_visibility=$g_have_sunstudio_visibility |
||
30691 | |||
30692 | if test x$ac_cv_c_bigendian = xyes; then |
||
30693 | g_byte_order=G_BIG_ENDIAN |
||
30694 | g_bs_native=BE |
||
30695 | g_bs_alien=LE |
||
30696 | else |
||
30697 | g_byte_order=G_LITTLE_ENDIAN |
||
30698 | g_bs_native=LE |
||
30699 | g_bs_alien=BE |
||
30700 | fi |
||
30701 | |||
30702 | g_pollin=$glib_cv_value_POLLIN |
||
30703 | g_pollout=$glib_cv_value_POLLOUT |
||
30704 | g_pollpri=$glib_cv_value_POLLPRI |
||
30705 | g_pollhup=$glib_cv_value_POLLHUP |
||
30706 | g_pollerr=$glib_cv_value_POLLERR |
||
30707 | g_pollnval=$glib_cv_value_POLLNVAL |
||
30708 | |||
30709 | # If a family is not found on the system, define that family to |
||
30710 | # a negative value, picking a different one for each undefined |
||
30711 | # family (-1 for AF_UNIX, -2 for the next one, -3 ...) |
||
30712 | # This is needed because glib-mkenums doesn't handle optional |
||
30713 | # values in enums, and thus we have to have all existing values |
||
30714 | # defined in the enum. |
||
30715 | if test "x$glib_cv_value_AF_UNIX" != "x"; then |
||
30716 | g_af_unix=$glib_cv_value_AF_UNIX |
||
30717 | else |
||
30718 | g_af_unix=-1 |
||
30719 | fi |
||
30720 | g_af_inet=$glib_cv_value_AF_INET |
||
30721 | g_af_inet6=$glib_cv_value_AF_INET6 |
||
30722 | |||
30723 | g_msg_peek=$glib_cv_value_MSG_PEEK |
||
30724 | g_msg_oob=$glib_cv_value_MSG_OOB |
||
30725 | g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE |
||
30726 | |||
30727 | g_stack_grows=$glib_cv_stack_grows |
||
30728 | |||
30729 | g_have_eilseq=$have_eilseq |
||
30730 | |||
30731 | g_threads_impl_def=$g_threads_impl |
||
30732 | |||
30733 | g_atomic_lock_free="$glib_cv_g_atomic_lock_free" |
||
30734 | g_memory_barrier_needed="$glib_memory_barrier_needed" |
||
30735 | g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations" |
||
30736 | |||
30737 | g_module_suffix="$glib_gmodule_suffix" |
||
30738 | g_pid_type="$glib_pid_type" |
||
30739 | g_pollfd_format="\"$glib_pollfd_format\"" |
||
30740 | |||
30741 | case $host in |
||
30742 | *-*-cygwin*) |
||
30743 | glib_os="#define G_OS_UNIX |
||
30744 | #define G_PLATFORM_WIN32 |
||
30745 | #define G_WITH_CYGWIN" |
||
30746 | ;; |
||
30747 | *-*-mingw*) |
||
30748 | glib_os="#define G_OS_WIN32 |
||
30749 | #define G_PLATFORM_WIN32" |
||
30750 | ;; |
||
30751 | *) |
||
30752 | glib_os="#define G_OS_UNIX" |
||
30753 | ;; |
||
30754 | esac |
||
30755 | glib_static_compilation="" |
||
30756 | if test x$glib_win32_static_compilation = xyes; then |
||
30757 | glib_static_compilation="#define GLIB_STATIC_COMPILATION 1 |
||
30758 | #define GOBJECT_STATIC_COMPILATION 1" |
||
30759 | fi |
||
30760 | |||
30761 | |||
30762 | _ACEOF |
||
30763 | |||
30764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
30765 | |||
30766 | # Handling of arguments. |
||
30767 | for ac_config_target in $ac_config_targets |
||
30768 | do |
||
30769 | case $ac_config_target in |
||
30770 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
||
30771 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
||
30772 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
||
30773 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
||
30774 | "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;; |
||
30775 | "glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0.pc" ;; |
||
30776 | "gmodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0.pc" ;; |
||
30777 | "gmodule-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-export-2.0.pc" ;; |
||
30778 | "gmodule-no-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0.pc" ;; |
||
30779 | "gthread-2.0.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0.pc" ;; |
||
30780 | "gobject-2.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0.pc" ;; |
||
30781 | "gio-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0.pc" ;; |
||
30782 | "gio-unix-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0.pc" ;; |
||
30783 | "gio-windows-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-windows-2.0.pc" ;; |
||
30784 | "glib-zip") CONFIG_FILES="$CONFIG_FILES glib-zip" ;; |
||
30785 | "glib-gettextize") CONFIG_FILES="$CONFIG_FILES glib-gettextize" ;; |
||
30786 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
||
30787 | "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; |
||
30788 | "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;; |
||
30789 | "build/win32/dirent/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/dirent/Makefile" ;; |
||
30790 | "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;; |
||
30791 | "build/win32/vs9/glib-version-paths.vsprops") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/glib-version-paths.vsprops" ;; |
||
30792 | "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;; |
||
30793 | "build/win32/vs10/glib-version-paths.props") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/glib-version-paths.props" ;; |
||
30794 | "build/win32/vs11/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs11/Makefile" ;; |
||
30795 | "build/win32/vs12/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs12/Makefile" ;; |
||
30796 | "build/win32/vs14/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs14/Makefile" ;; |
||
30797 | "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;; |
||
30798 | "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;; |
||
30799 | "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;; |
||
30800 | "glib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/pcre/Makefile" ;; |
||
30801 | "glib/update-pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/update-pcre/Makefile" ;; |
||
30802 | "glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES glib/tests/Makefile" ;; |
||
30803 | "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;; |
||
30804 | "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;; |
||
30805 | "gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/Makefile" ;; |
||
30806 | "gobject/glib-mkenums") CONFIG_FILES="$CONFIG_FILES gobject/glib-mkenums" ;; |
||
30807 | "gobject/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/tests/Makefile" ;; |
||
30808 | "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;; |
||
30809 | "gio/Makefile") CONFIG_FILES="$CONFIG_FILES gio/Makefile" ;; |
||
30810 | "gio/gdbus-2.0/codegen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/Makefile" ;; |
||
30811 | "gio/gdbus-2.0/codegen/config.py") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/config.py" ;; |
||
30812 | "gio/gnetworking.h") CONFIG_FILES="$CONFIG_FILES gio/gnetworking.h" ;; |
||
30813 | "gio/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES gio/xdgmime/Makefile" ;; |
||
30814 | "gio/inotify/Makefile") CONFIG_FILES="$CONFIG_FILES gio/inotify/Makefile" ;; |
||
30815 | "gio/kqueue/Makefile") CONFIG_FILES="$CONFIG_FILES gio/kqueue/Makefile" ;; |
||
30816 | "gio/fam/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fam/Makefile" ;; |
||
30817 | "gio/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gio/win32/Makefile" ;; |
||
30818 | "gio/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/Makefile" ;; |
||
30819 | "gio/tests/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/gdbus-object-manager-example/Makefile" ;; |
||
30820 | "gio/tests/services/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/services/Makefile" ;; |
||
30821 | "gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service") CONFIG_FILES="$CONFIG_FILES gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service" ;; |
||
30822 | "gio/tests/modules/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/modules/Makefile" ;; |
||
30823 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
||
30824 | "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; |
||
30825 | "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;; |
||
30826 | "docs/reference/glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/Makefile" ;; |
||
30827 | "docs/reference/glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/version.xml" ;; |
||
30828 | "docs/reference/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/Makefile" ;; |
||
30829 | "docs/reference/gobject/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/version.xml" ;; |
||
30830 | "docs/reference/gio/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/Makefile" ;; |
||
30831 | "docs/reference/gio/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/version.xml" ;; |
||
30832 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
||
30833 | "tests/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gobject/Makefile" ;; |
||
30834 | "tests/refcount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount/Makefile" ;; |
||
30835 | "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;; |
||
30836 | "chmod-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;; |
||
30837 | "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;; |
||
30838 | "README") CONFIG_FILES="$CONFIG_FILES README" ;; |
||
30839 | "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;; |
||
30840 | "glib/glibconfig.h.win32") CONFIG_FILES="$CONFIG_FILES glib/glibconfig.h.win32" ;; |
||
30841 | "glib/makefile.msc") CONFIG_FILES="$CONFIG_FILES glib/makefile.msc" ;; |
||
30842 | "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;; |
||
30843 | "gmodule/makefile.msc") CONFIG_FILES="$CONFIG_FILES gmodule/makefile.msc" ;; |
||
30844 | "gmodule/gmodule.rc") CONFIG_FILES="$CONFIG_FILES gmodule/gmodule.rc" ;; |
||
30845 | "gobject/makefile.msc") CONFIG_FILES="$CONFIG_FILES gobject/makefile.msc" ;; |
||
30846 | "gobject/gobject.rc") CONFIG_FILES="$CONFIG_FILES gobject/gobject.rc" ;; |
||
30847 | "gthread/makefile.msc") CONFIG_FILES="$CONFIG_FILES gthread/makefile.msc" ;; |
||
30848 | "gthread/gthread.rc") CONFIG_FILES="$CONFIG_FILES gthread/gthread.rc" ;; |
||
30849 | "gio/gio.rc") CONFIG_FILES="$CONFIG_FILES gio/gio.rc" ;; |
||
30850 | "tests/makefile.msc") CONFIG_FILES="$CONFIG_FILES tests/makefile.msc" ;; |
||
30851 | |||
30852 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
||
30853 | esac |
||
30854 | done |
||
30855 | |||
30856 | |||
30857 | # If the user did not use the arguments to specify the items to instantiate, |
||
30858 | # then the envvar interface is used. Set only those that are not. |
||
30859 | # We use the long form for the default assignment because of an extremely |
||
30860 | # bizarre bug on SunOS 4.1.3. |
||
30861 | if $ac_need_defaults; then |
||
30862 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
||
30863 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
||
30864 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
||
30865 | fi |
||
30866 | |||
30867 | # Have a temporary directory for convenience. Make it in the build tree |
||
30868 | # simply because there is no reason against having it here, and in addition, |
||
30869 | # creating and moving files from /tmp can sometimes cause problems. |
||
30870 | # Hook for its removal unless debugging. |
||
30871 | # Note that there is a small window in which the directory will not be cleaned: |
||
30872 | # after its creation but before its name has been assigned to `$tmp'. |
||
30873 | $debug || |
||
30874 | { |
||
30875 | tmp= ac_tmp= |
||
30876 | trap 'exit_status=$? |
||
30877 | : "${ac_tmp:=$tmp}" |
||
30878 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
||
30879 | ' 0 |
||
30880 | trap 'as_fn_exit 1' 1 2 13 15 |
||
30881 | } |
||
30882 | # Create a (secure) tmp directory for tmp files. |
||
30883 | |||
30884 | { |
||
30885 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
||
30886 | test -d "$tmp" |
||
30887 | } || |
||
30888 | { |
||
30889 | tmp=./conf$$-$RANDOM |
||
30890 | (umask 077 && mkdir "$tmp") |
||
30891 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
||
30892 | ac_tmp=$tmp |
||
30893 | |||
30894 | # Set up the scripts for CONFIG_FILES section. |
||
30895 | # No need to generate them if there are no CONFIG_FILES. |
||
30896 | # This happens for instance with `./config.status config.h'. |
||
30897 | if test -n "$CONFIG_FILES"; then |
||
30898 | |||
30899 | |||
30900 | ac_cr=`echo X | tr X '\015'` |
||
30901 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
||
30902 | # But we know of no other shell where ac_cr would be empty at this |
||
30903 | # point, so we can use a bashism as a fallback. |
||
30904 | if test "x$ac_cr" = x; then |
||
30905 | eval ac_cr=\$\'\\r\' |
||
30906 | fi |
||
30907 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
||
30908 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
||
30909 | ac_cs_awk_cr='\\r' |
||
30910 | else |
||
30911 | ac_cs_awk_cr=$ac_cr |
||
30912 | fi |
||
30913 | |||
30914 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
||
30915 | _ACEOF |
||
30916 | |||
30917 | |||
30918 | { |
||
30919 | echo "cat >conf$$subs.awk <<_ACEOF" && |
||
30920 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
||
30921 | echo "_ACEOF" |
||
30922 | } >conf$$subs.sh || |
||
30923 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
30924 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
||
30925 | ac_delim='%!_!# ' |
||
30926 | for ac_last_try in false false false false false :; do |
||
30927 | . ./conf$$subs.sh || |
||
30928 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
30929 | |||
30930 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
||
30931 | if test $ac_delim_n = $ac_delim_num; then |
||
30932 | break |
||
30933 | elif $ac_last_try; then |
||
30934 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
30935 | else |
||
30936 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
30937 | fi |
||
30938 | done |
||
30939 | rm -f conf$$subs.sh |
||
30940 | |||
30941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
30942 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
||
30943 | _ACEOF |
||
30944 | sed -n ' |
||
30945 | h |
||
30946 | s/^/S["/; s/!.*/"]=/ |
||
30947 | p |
||
30948 | g |
||
30949 | s/^[^!]*!// |
||
30950 | :repl |
||
30951 | t repl |
||
30952 | s/'"$ac_delim"'$// |
||
30953 | t delim |
||
30954 | :nl |
||
30955 | h |
||
30956 | s/\(.\{148\}\)..*/\1/ |
||
30957 | t more1 |
||
30958 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
||
30959 | p |
||
30960 | n |
||
30961 | b repl |
||
30962 | :more1 |
||
30963 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
30964 | p |
||
30965 | g |
||
30966 | s/.\{148\}// |
||
30967 | t nl |
||
30968 | :delim |
||
30969 | h |
||
30970 | s/\(.\{148\}\)..*/\1/ |
||
30971 | t more2 |
||
30972 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
||
30973 | p |
||
30974 | b |
||
30975 | :more2 |
||
30976 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
30977 | p |
||
30978 | g |
||
30979 | s/.\{148\}// |
||
30980 | t delim |
||
30981 | ' <conf$$subs.awk | sed ' |
||
30982 | /^[^""]/{ |
||
30983 | N |
||
30984 | s/\n// |
||
30985 | } |
||
30986 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
||
30987 | rm -f conf$$subs.awk |
||
30988 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
30989 | _ACAWK |
||
30990 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
||
30991 | for (key in S) S_is_set[key] = 1 |
||
30992 | FS = "" |
||
30993 | |||
30994 | } |
||
30995 | { |
||
30996 | line = $ 0 |
||
30997 | nfields = split(line, field, "@") |
||
30998 | substed = 0 |
||
30999 | len = length(field[1]) |
||
31000 | for (i = 2; i < nfields; i++) { |
||
31001 | key = field[i] |
||
31002 | keylen = length(key) |
||
31003 | if (S_is_set[key]) { |
||
31004 | value = S[key] |
||
31005 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
||
31006 | len += length(value) + length(field[++i]) |
||
31007 | substed = 1 |
||
31008 | } else |
||
31009 | len += 1 + keylen |
||
31010 | } |
||
31011 | |||
31012 | print line |
||
31013 | } |
||
31014 | |||
31015 | _ACAWK |
||
31016 | _ACEOF |
||
31017 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
31018 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
||
31019 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
||
31020 | else |
||
31021 | cat |
||
31022 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
||
31023 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
||
31024 | _ACEOF |
||
31025 | |||
31026 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
||
31027 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
||
31028 | # trailing colons and then remove the whole line if VPATH becomes empty |
||
31029 | # (actually we leave an empty line to preserve line numbers). |
||
31030 | if test "x$srcdir" = x.; then |
||
31031 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
||
31032 | h |
||
31033 | s/// |
||
31034 | s/^/:/ |
||
31035 | s/[ ]*$/:/ |
||
31036 | s/:\$(srcdir):/:/g |
||
31037 | s/:\${srcdir}:/:/g |
||
31038 | s/:@srcdir@:/:/g |
||
31039 | s/^:*// |
||
31040 | s/:*$// |
||
31041 | x |
||
31042 | s/\(=[ ]*\).*/\1/ |
||
31043 | G |
||
31044 | s/\n// |
||
31045 | s/^[^=]*=[ ]*$// |
||
31046 | }' |
||
31047 | fi |
||
31048 | |||
31049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
31050 | fi # test -n "$CONFIG_FILES" |
||
31051 | |||
31052 | # Set up the scripts for CONFIG_HEADERS section. |
||
31053 | # No need to generate them if there are no CONFIG_HEADERS. |
||
31054 | # This happens for instance with `./config.status Makefile'. |
||
31055 | if test -n "$CONFIG_HEADERS"; then |
||
31056 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
||
31057 | BEGIN { |
||
31058 | _ACEOF |
||
31059 | |||
31060 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
||
31061 | # here-document in config.status, that substitutes the proper values into |
||
31062 | # config.h.in to produce config.h. |
||
31063 | |||
31064 | # Create a delimiter string that does not exist in confdefs.h, to ease |
||
31065 | # handling of long lines. |
||
31066 | ac_delim='%!_!# ' |
||
31067 | for ac_last_try in false false :; do |
||
31068 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
||
31069 | if test -z "$ac_tt"; then |
||
31070 | break |
||
31071 | elif $ac_last_try; then |
||
31072 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
||
31073 | else |
||
31074 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
31075 | fi |
||
31076 | done |
||
31077 | |||
31078 | # For the awk script, D is an array of macro values keyed by name, |
||
31079 | # likewise P contains macro parameters if any. Preserve backslash |
||
31080 | # newline sequences. |
||
31081 | |||
31082 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
||
31083 | sed -n ' |
||
31084 | s/.\{148\}/&'"$ac_delim"'/g |
||
31085 | t rset |
||
31086 | :rset |
||
31087 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
||
31088 | t def |
||
31089 | d |
||
31090 | :def |
||
31091 | s/\\$// |
||
31092 | t bsnl |
||
31093 | s/["\\]/\\&/g |
||
31094 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
31095 | D["\1"]=" \3"/p |
||
31096 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
||
31097 | d |
||
31098 | :bsnl |
||
31099 | s/["\\]/\\&/g |
||
31100 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
31101 | D["\1"]=" \3\\\\\\n"\\/p |
||
31102 | t cont |
||
31103 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
||
31104 | t cont |
||
31105 | d |
||
31106 | :cont |
||
31107 | n |
||
31108 | s/.\{148\}/&'"$ac_delim"'/g |
||
31109 | t clear |
||
31110 | :clear |
||
31111 | s/\\$// |
||
31112 | t bsnlc |
||
31113 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
||
31114 | d |
||
31115 | :bsnlc |
||
31116 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
||
31117 | b cont |
||
31118 | ' <confdefs.h | sed ' |
||
31119 | s/'"$ac_delim"'/"\\\ |
||
31120 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
||
31121 | |||
31122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
31123 | for (key in D) D_is_set[key] = 1 |
||
31124 | FS = "" |
||
31125 | } |
||
31126 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
||
31127 | line = \$ 0 |
||
31128 | split(line, arg, " ") |
||
31129 | if (arg[1] == "#") { |
||
31130 | defundef = arg[2] |
||
31131 | mac1 = arg[3] |
||
31132 | } else { |
||
31133 | defundef = substr(arg[1], 2) |
||
31134 | mac1 = arg[2] |
||
31135 | } |
||
31136 | split(mac1, mac2, "(") #) |
||
31137 | macro = mac2[1] |
||
31138 | prefix = substr(line, 1, index(line, defundef) - 1) |
||
31139 | if (D_is_set[macro]) { |
||
31140 | # Preserve the white space surrounding the "#". |
||
31141 | print prefix "define", macro P[macro] D[macro] |
||
31142 | next |
||
31143 | } else { |
||
31144 | # Replace #undef with comments. This is necessary, for example, |
||
31145 | # in the case of _POSIX_SOURCE, which is predefined and required |
||
31146 | # on some systems where configure will not decide to define it. |
||
31147 | if (defundef == "undef") { |
||
31148 | print "/*", prefix defundef, macro, "*/" |
||
31149 | next |
||
31150 | } |
||
31151 | } |
||
31152 | } |
||
31153 | { print } |
||
31154 | _ACAWK |
||
31155 | _ACEOF |
||
31156 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
31157 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
||
31158 | fi # test -n "$CONFIG_HEADERS" |
||
31159 | |||
31160 | |||
31161 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
||
31162 | shift |
||
31163 | for ac_tag |
||
31164 | do |
||
31165 | case $ac_tag in |
||
31166 | :[FHLC]) ac_mode=$ac_tag; continue;; |
||
31167 | esac |
||
31168 | case $ac_mode$ac_tag in |
||
31169 | :[FHL]*:*);; |
||
31170 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
||
31171 | :[FH]-) ac_tag=-:-;; |
||
31172 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
||
31173 | esac |
||
31174 | ac_save_IFS=$IFS |
||
31175 | IFS=: |
||
31176 | set x $ac_tag |
||
31177 | IFS=$ac_save_IFS |
||
31178 | shift |
||
31179 | ac_file=$1 |
||
31180 | shift |
||
31181 | |||
31182 | case $ac_mode in |
||
31183 | :L) ac_source=$1;; |
||
31184 | :[FH]) |
||
31185 | ac_file_inputs= |
||
31186 | for ac_f |
||
31187 | do |
||
31188 | case $ac_f in |
||
31189 | -) ac_f="$ac_tmp/stdin";; |
||
31190 | *) # Look for the file first in the build tree, then in the source tree |
||
31191 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
||
31192 | # because $ac_f cannot contain `:'. |
||
31193 | test -f "$ac_f" || |
||
31194 | case $ac_f in |
||
31195 | [\\/$]*) false;; |
||
31196 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
||
31197 | esac || |
||
31198 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
||
31199 | esac |
||
31200 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
||
31201 | as_fn_append ac_file_inputs " '$ac_f'" |
||
31202 | done |
||
31203 | |||
31204 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
||
31205 | # use $as_me), people would be surprised to read: |
||
31206 | # /* config.h. Generated by config.status. */ |
||
31207 | configure_input='Generated from '` |
||
31208 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
||
31209 | `' by configure.' |
||
31210 | if test x"$ac_file" != x-; then |
||
31211 | configure_input="$ac_file. $configure_input" |
||
31212 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
||
31213 | $as_echo "$as_me: creating $ac_file" >&6;} |
||
31214 | fi |
||
31215 | # Neutralize special characters interpreted by sed in replacement strings. |
||
31216 | case $configure_input in #( |
||
31217 | *\&* | *\|* | *\\* ) |
||
31218 | ac_sed_conf_input=`$as_echo "$configure_input" | |
||
31219 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
||
31220 | *) ac_sed_conf_input=$configure_input;; |
||
31221 | esac |
||
31222 | |||
31223 | case $ac_tag in |
||
31224 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
||
31225 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
||
31226 | esac |
||
31227 | ;; |
||
31228 | esac |
||
31229 | |||
31230 | ac_dir=`$as_dirname -- "$ac_file" || |
||
31231 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
31232 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
31233 | X"$ac_file" : 'X\(//\)$' \| \ |
||
31234 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
||
31235 | $as_echo X"$ac_file" | |
||
31236 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
31237 | s//\1/ |
||
31238 | q |
||
31239 | } |
||
31240 | /^X\(\/\/\)[^/].*/{ |
||
31241 | s//\1/ |
||
31242 | q |
||
31243 | } |
||
31244 | /^X\(\/\/\)$/{ |
||
31245 | s//\1/ |
||
31246 | q |
||
31247 | } |
||
31248 | /^X\(\/\).*/{ |
||
31249 | s//\1/ |
||
31250 | q |
||
31251 | } |
||
31252 | s/.*/./; q'` |
||
31253 | as_dir="$ac_dir"; as_fn_mkdir_p |
||
31254 | ac_builddir=. |
||
31255 | |||
31256 | case "$ac_dir" in |
||
31257 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
31258 | *) |
||
31259 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
31260 | # A ".." for each directory in $ac_dir_suffix. |
||
31261 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
31262 | case $ac_top_builddir_sub in |
||
31263 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
31264 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
31265 | esac ;; |
||
31266 | esac |
||
31267 | ac_abs_top_builddir=$ac_pwd |
||
31268 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
31269 | # for backward compatibility: |
||
31270 | ac_top_builddir=$ac_top_build_prefix |
||
31271 | |||
31272 | case $srcdir in |
||
31273 | .) # We are building in place. |
||
31274 | ac_srcdir=. |
||
31275 | ac_top_srcdir=$ac_top_builddir_sub |
||
31276 | ac_abs_top_srcdir=$ac_pwd ;; |
||
31277 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
31278 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
31279 | ac_top_srcdir=$srcdir |
||
31280 | ac_abs_top_srcdir=$srcdir ;; |
||
31281 | *) # Relative name. |
||
31282 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
31283 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
31284 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
31285 | esac |
||
31286 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
31287 | |||
31288 | |||
31289 | case $ac_mode in |
||
31290 | :F) |
||
31291 | # |
||
31292 | # CONFIG_FILE |
||
31293 | # |
||
31294 | |||
31295 | case $INSTALL in |
||
31296 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
||
31297 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
||
31298 | esac |
||
31299 | ac_MKDIR_P=$MKDIR_P |
||
31300 | case $MKDIR_P in |
||
31301 | [\\/$]* | ?:[\\/]* ) ;; |
||
31302 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
||
31303 | esac |
||
31304 | _ACEOF |
||
31305 | |||
31306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
31307 | # If the template does not know about datarootdir, expand it. |
||
31308 | # FIXME: This hack should be removed a few years after 2.60. |
||
31309 | ac_datarootdir_hack=; ac_datarootdir_seen= |
||
31310 | ac_sed_dataroot=' |
||
31311 | /datarootdir/ { |
||
31312 | p |
||
31313 | q |
||
31314 | } |
||
31315 | /@datadir@/p |
||
31316 | /@docdir@/p |
||
31317 | /@infodir@/p |
||
31318 | /@localedir@/p |
||
31319 | /@mandir@/p' |
||
31320 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
||
31321 | *datarootdir*) ac_datarootdir_seen=yes;; |
||
31322 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
||
31323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
||
31324 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
||
31325 | _ACEOF |
||
31326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
31327 | ac_datarootdir_hack=' |
||
31328 | s&@datadir@&$datadir&g |
||
31329 | s&@docdir@&$docdir&g |
||
31330 | s&@infodir@&$infodir&g |
||
31331 | s&@localedir@&$localedir&g |
||
31332 | s&@mandir@&$mandir&g |
||
31333 | s&\\\${datarootdir}&$datarootdir&g' ;; |
||
31334 | esac |
||
31335 | _ACEOF |
||
31336 | |||
31337 | # Neutralize VPATH when `$srcdir' = `.'. |
||
31338 | # Shell code in configure.ac might set extrasub. |
||
31339 | # FIXME: do we really want to maintain this feature? |
||
31340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
31341 | ac_sed_extra="$ac_vpsub |
||
31342 | $extrasub |
||
31343 | _ACEOF |
||
31344 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
31345 | :t |
||
31346 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
31347 | s|@configure_input@|$ac_sed_conf_input|;t t |
||
31348 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
||
31349 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
||
31350 | s&@srcdir@&$ac_srcdir&;t t |
||
31351 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
||
31352 | s&@top_srcdir@&$ac_top_srcdir&;t t |
||
31353 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
||
31354 | s&@builddir@&$ac_builddir&;t t |
||
31355 | s&@abs_builddir@&$ac_abs_builddir&;t t |
||
31356 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
||
31357 | s&@INSTALL@&$ac_INSTALL&;t t |
||
31358 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
||
31359 | $ac_datarootdir_hack |
||
31360 | " |
||
31361 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
||
31362 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
31363 | |||
31364 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
||
31365 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
||
31366 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
||
31367 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
||
31368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
31369 | which seems to be undefined. Please make sure it is defined" >&5 |
||
31370 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
31371 | which seems to be undefined. Please make sure it is defined" >&2;} |
||
31372 | |||
31373 | rm -f "$ac_tmp/stdin" |
||
31374 | case $ac_file in |
||
31375 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
||
31376 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
||
31377 | esac \ |
||
31378 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
31379 | ;; |
||
31380 | :H) |
||
31381 | # |
||
31382 | # CONFIG_HEADER |
||
31383 | # |
||
31384 | if test x"$ac_file" != x-; then |
||
31385 | { |
||
31386 | $as_echo "/* $configure_input */" \ |
||
31387 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
||
31388 | } >"$ac_tmp/config.h" \ |
||
31389 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
31390 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
||
31391 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
||
31392 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
||
31393 | else |
||
31394 | rm -f "$ac_file" |
||
31395 | mv "$ac_tmp/config.h" "$ac_file" \ |
||
31396 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
31397 | fi |
||
31398 | else |
||
31399 | $as_echo "/* $configure_input */" \ |
||
31400 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
||
31401 | || as_fn_error $? "could not create -" "$LINENO" 5 |
||
31402 | fi |
||
31403 | # Compute "$ac_file"'s index in $config_headers. |
||
31404 | _am_arg="$ac_file" |
||
31405 | _am_stamp_count=1 |
||
31406 | for _am_header in $config_headers :; do |
||
31407 | case $_am_header in |
||
31408 | $_am_arg | $_am_arg:* ) |
||
31409 | break ;; |
||
31410 | * ) |
||
31411 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
||
31412 | esac |
||
31413 | done |
||
31414 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
||
31415 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
31416 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
||
31417 | X"$_am_arg" : 'X\(//\)$' \| \ |
||
31418 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
||
31419 | $as_echo X"$_am_arg" | |
||
31420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
31421 | s//\1/ |
||
31422 | q |
||
31423 | } |
||
31424 | /^X\(\/\/\)[^/].*/{ |
||
31425 | s//\1/ |
||
31426 | q |
||
31427 | } |
||
31428 | /^X\(\/\/\)$/{ |
||
31429 | s//\1/ |
||
31430 | q |
||
31431 | } |
||
31432 | /^X\(\/\).*/{ |
||
31433 | s//\1/ |
||
31434 | q |
||
31435 | } |
||
31436 | s/.*/./; q'`/stamp-h$_am_stamp_count |
||
31437 | ;; |
||
31438 | |||
31439 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
||
31440 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
||
31441 | ;; |
||
31442 | esac |
||
31443 | |||
31444 | |||
31445 | case $ac_file$ac_mode in |
||
31446 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
||
31447 | # Older Autoconf quotes --file arguments for eval, but not when files |
||
31448 | # are listed without --file. Let's play safe and only enable the eval |
||
31449 | # if we detect the quoting. |
||
31450 | case $CONFIG_FILES in |
||
31451 | *\'*) eval set x "$CONFIG_FILES" ;; |
||
31452 | *) set x $CONFIG_FILES ;; |
||
31453 | esac |
||
31454 | shift |
||
31455 | for mf |
||
31456 | do |
||
31457 | # Strip MF so we end up with the name of the file. |
||
31458 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
||
31459 | # Check whether this is an Automake generated Makefile or not. |
||
31460 | # We used to match only the files named 'Makefile.in', but |
||
31461 | # some people rename them; so instead we look at the file content. |
||
31462 | # Grep'ing the first line is not enough: some people post-process |
||
31463 | # each Makefile.in and add a new line on top of each file to say so. |
||
31464 | # Grep'ing the whole file is not good either: AIX grep has a line |
||
31465 | # limit of 2048, but all sed's we know have understand at least 4000. |
||
31466 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
||
31467 | dirpart=`$as_dirname -- "$mf" || |
||
31468 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
31469 | X"$mf" : 'X\(//\)[^/]' \| \ |
||
31470 | X"$mf" : 'X\(//\)$' \| \ |
||
31471 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
||
31472 | $as_echo X"$mf" | |
||
31473 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
31474 | s//\1/ |
||
31475 | q |
||
31476 | } |
||
31477 | /^X\(\/\/\)[^/].*/{ |
||
31478 | s//\1/ |
||
31479 | q |
||
31480 | } |
||
31481 | /^X\(\/\/\)$/{ |
||
31482 | s//\1/ |
||
31483 | q |
||
31484 | } |
||
31485 | /^X\(\/\).*/{ |
||
31486 | s//\1/ |
||
31487 | q |
||
31488 | } |
||
31489 | s/.*/./; q'` |
||
31490 | else |
||
31491 | continue |
||
31492 | fi |
||
31493 | # Extract the definition of DEPDIR, am__include, and am__quote |
||
31494 | # from the Makefile without running 'make'. |
||
31495 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
||
31496 | test -z "$DEPDIR" && continue |
||
31497 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
||
31498 | test -z "$am__include" && continue |
||
31499 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
||
31500 | # Find all dependency output files, they are included files with |
||
31501 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
||
31502 | # simplest approach to changing $(DEPDIR) to its actual value in the |
||
31503 | # expansion. |
||
31504 | for file in `sed -n " |
||
31505 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
||
31506 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
||
31507 | # Make sure the directory exists. |
||
31508 | test -f "$dirpart/$file" && continue |
||
31509 | fdir=`$as_dirname -- "$file" || |
||
31510 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
31511 | X"$file" : 'X\(//\)[^/]' \| \ |
||
31512 | X"$file" : 'X\(//\)$' \| \ |
||
31513 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
||
31514 | $as_echo X"$file" | |
||
31515 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
31516 | s//\1/ |
||
31517 | q |
||
31518 | } |
||
31519 | /^X\(\/\/\)[^/].*/{ |
||
31520 | s//\1/ |
||
31521 | q |
||
31522 | } |
||
31523 | /^X\(\/\/\)$/{ |
||
31524 | s//\1/ |
||
31525 | q |
||
31526 | } |
||
31527 | /^X\(\/\).*/{ |
||
31528 | s//\1/ |
||
31529 | q |
||
31530 | } |
||
31531 | s/.*/./; q'` |
||
31532 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
||
31533 | # echo "creating $dirpart/$file" |
||
31534 | echo '# dummy' > "$dirpart/$file" |
||
31535 | done |
||
31536 | done |
||
31537 | } |
||
31538 | ;; |
||
31539 | "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) |
||
31540 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
||
31541 | esac ;; |
||
31542 | "libtool":C) |
||
31543 | |||
31544 | # See if we are running on zsh, and set the options that allow our |
||
31545 | # commands through without removal of \ escapes. |
||
31546 | if test -n "${ZSH_VERSION+set}"; then |
||
31547 | setopt NO_GLOB_SUBST |
||
31548 | fi |
||
31549 | |||
31550 | cfgfile=${ofile}T |
||
31551 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
||
31552 | $RM "$cfgfile" |
||
31553 | |||
31554 | cat <<_LT_EOF >> "$cfgfile" |
||
31555 | #! $SHELL |
||
31556 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
||
31557 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
||
31558 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
||
31559 | |||
31560 | # Provide generalized library-building support services. |
||
31561 | # Written by Gordon Matzigkeit, 1996 |
||
31562 | |||
31563 | # Copyright (C) 2014 Free Software Foundation, Inc. |
||
31564 | # This is free software; see the source for copying conditions. There is NO |
||
31565 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
31566 | |||
31567 | # GNU Libtool is free software; you can redistribute it and/or modify |
||
31568 | # it under the terms of the GNU General Public License as published by |
||
31569 | # the Free Software Foundation; either version 2 of of the License, or |
||
31570 | # (at your option) any later version. |
||
31571 | # |
||
31572 | # As a special exception to the GNU General Public License, if you |
||
31573 | # distribute this file as part of a program or library that is built |
||
31574 | # using GNU Libtool, you may include this file under the same |
||
31575 | # distribution terms that you use for the rest of that program. |
||
31576 | # |
||
31577 | # GNU Libtool is distributed in the hope that it will be useful, but |
||
31578 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
||
31579 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
31580 | # GNU General Public License for more details. |
||
31581 | # |
||
31582 | # You should have received a copy of the GNU General Public License |
||
31583 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
||
31584 | |||
31585 | |||
31586 | # The names of the tagged configurations supported by this script. |
||
31587 | available_tags='CXX ' |
||
31588 | |||
31589 | # Configured defaults for sys_lib_dlsearch_path munging. |
||
31590 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
||
31591 | |||
31592 | # ### BEGIN LIBTOOL CONFIG |
||
31593 | |||
31594 | # Which release of libtool.m4 was used? |
||
31595 | macro_version=$macro_version |
||
31596 | macro_revision=$macro_revision |
||
31597 | |||
31598 | # Whether or not to build static libraries. |
||
31599 | build_old_libs=$enable_static |
||
31600 | |||
31601 | # Assembler program. |
||
31602 | AS=$lt_AS |
||
31603 | |||
31604 | # DLL creation program. |
||
31605 | DLLTOOL=$lt_DLLTOOL |
||
31606 | |||
31607 | # Object dumper program. |
||
31608 | OBJDUMP=$lt_OBJDUMP |
||
31609 | |||
31610 | # Whether or not to build shared libraries. |
||
31611 | build_libtool_libs=$enable_shared |
||
31612 | |||
31613 | # What type of objects to build. |
||
31614 | pic_mode=$pic_mode |
||
31615 | |||
31616 | # Whether or not to optimize for fast installation. |
||
31617 | fast_install=$enable_fast_install |
||
31618 | |||
31619 | # Shared archive member basename,for filename based shared library versioning on AIX. |
||
31620 | shared_archive_member_spec=$shared_archive_member_spec |
||
31621 | |||
31622 | # Shell to use when invoking shell scripts. |
||
31623 | SHELL=$lt_SHELL |
||
31624 | |||
31625 | # An echo program that protects backslashes. |
||
31626 | ECHO=$lt_ECHO |
||
31627 | |||
31628 | # The PATH separator for the build system. |
||
31629 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
||
31630 | |||
31631 | # The host system. |
||
31632 | host_alias=$host_alias |
||
31633 | host=$host |
||
31634 | host_os=$host_os |
||
31635 | |||
31636 | # The build system. |
||
31637 | build_alias=$build_alias |
||
31638 | build=$build |
||
31639 | build_os=$build_os |
||
31640 | |||
31641 | # A sed program that does not truncate output. |
||
31642 | SED=$lt_SED |
||
31643 | |||
31644 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
||
31645 | Xsed="\$SED -e 1s/^X//" |
||
31646 | |||
31647 | # A grep program that handles long lines. |
||
31648 | GREP=$lt_GREP |
||
31649 | |||
31650 | # An ERE matcher. |
||
31651 | EGREP=$lt_EGREP |
||
31652 | |||
31653 | # A literal string matcher. |
||
31654 | FGREP=$lt_FGREP |
||
31655 | |||
31656 | # A BSD- or MS-compatible name lister. |
||
31657 | NM=$lt_NM |
||
31658 | |||
31659 | # Whether we need soft or hard links. |
||
31660 | LN_S=$lt_LN_S |
||
31661 | |||
31662 | # What is the maximum length of a command? |
||
31663 | max_cmd_len=$max_cmd_len |
||
31664 | |||
31665 | # Object file suffix (normally "o"). |
||
31666 | objext=$ac_objext |
||
31667 | |||
31668 | # Executable file suffix (normally ""). |
||
31669 | exeext=$exeext |
||
31670 | |||
31671 | # whether the shell understands "unset". |
||
31672 | lt_unset=$lt_unset |
||
31673 | |||
31674 | # turn spaces into newlines. |
||
31675 | SP2NL=$lt_lt_SP2NL |
||
31676 | |||
31677 | # turn newlines into spaces. |
||
31678 | NL2SP=$lt_lt_NL2SP |
||
31679 | |||
31680 | # convert \$build file names to \$host format. |
||
31681 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
||
31682 | |||
31683 | # convert \$build files to toolchain format. |
||
31684 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
||
31685 | |||
31686 | # Method to check whether dependent libraries are shared objects. |
||
31687 | deplibs_check_method=$lt_deplibs_check_method |
||
31688 | |||
31689 | # Command to use when deplibs_check_method = "file_magic". |
||
31690 | file_magic_cmd=$lt_file_magic_cmd |
||
31691 | |||
31692 | # How to find potential files when deplibs_check_method = "file_magic". |
||
31693 | file_magic_glob=$lt_file_magic_glob |
||
31694 | |||
31695 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
||
31696 | want_nocaseglob=$lt_want_nocaseglob |
||
31697 | |||
31698 | # Command to associate shared and link libraries. |
||
31699 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
||
31700 | |||
31701 | # The archiver. |
||
31702 | AR=$lt_AR |
||
31703 | |||
31704 | # Flags to create an archive. |
||
31705 | AR_FLAGS=$lt_AR_FLAGS |
||
31706 | |||
31707 | # How to feed a file listing to the archiver. |
||
31708 | archiver_list_spec=$lt_archiver_list_spec |
||
31709 | |||
31710 | # A symbol stripping program. |
||
31711 | STRIP=$lt_STRIP |
||
31712 | |||
31713 | # Commands used to install an old-style archive. |
||
31714 | RANLIB=$lt_RANLIB |
||
31715 | old_postinstall_cmds=$lt_old_postinstall_cmds |
||
31716 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
||
31717 | |||
31718 | # Whether to use a lock for old archive extraction. |
||
31719 | lock_old_archive_extraction=$lock_old_archive_extraction |
||
31720 | |||
31721 | # A C compiler. |
||
31722 | LTCC=$lt_CC |
||
31723 | |||
31724 | # LTCC compiler flags. |
||
31725 | LTCFLAGS=$lt_CFLAGS |
||
31726 | |||
31727 | # Take the output of nm and produce a listing of raw symbols and C names. |
||
31728 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
||
31729 | |||
31730 | # Transform the output of nm in a proper C declaration. |
||
31731 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
||
31732 | |||
31733 | # Transform the output of nm into a list of symbols to manually relocate. |
||
31734 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
||
31735 | |||
31736 | # Transform the output of nm in a C name address pair. |
||
31737 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
||
31738 | |||
31739 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
||
31740 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
||
31741 | |||
31742 | # The name lister interface. |
||
31743 | nm_interface=$lt_lt_cv_nm_interface |
||
31744 | |||
31745 | # Specify filename containing input files for \$NM. |
||
31746 | nm_file_list_spec=$lt_nm_file_list_spec |
||
31747 | |||
31748 | # The root where to search for dependent libraries,and where our libraries should be installed. |
||
31749 | lt_sysroot=$lt_sysroot |
||
31750 | |||
31751 | # Command to truncate a binary pipe. |
||
31752 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
||
31753 | |||
31754 | # The name of the directory that contains temporary libtool files. |
||
31755 | objdir=$objdir |
||
31756 | |||
31757 | # Used to examine libraries when file_magic_cmd begins with "file". |
||
31758 | MAGIC_CMD=$MAGIC_CMD |
||
31759 | |||
31760 | # Must we lock files when doing compilation? |
||
31761 | need_locks=$lt_need_locks |
||
31762 | |||
31763 | # Manifest tool. |
||
31764 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
||
31765 | |||
31766 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
||
31767 | DSYMUTIL=$lt_DSYMUTIL |
||
31768 | |||
31769 | # Tool to change global to local symbols on Mac OS X. |
||
31770 | NMEDIT=$lt_NMEDIT |
||
31771 | |||
31772 | # Tool to manipulate fat objects and archives on Mac OS X. |
||
31773 | LIPO=$lt_LIPO |
||
31774 | |||
31775 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
||
31776 | OTOOL=$lt_OTOOL |
||
31777 | |||
31778 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
||
31779 | OTOOL64=$lt_OTOOL64 |
||
31780 | |||
31781 | # Old archive suffix (normally "a"). |
||
31782 | libext=$libext |
||
31783 | |||
31784 | # Shared library suffix (normally ".so"). |
||
31785 | shrext_cmds=$lt_shrext_cmds |
||
31786 | |||
31787 | # The commands to extract the exported symbol list from a shared archive. |
||
31788 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
||
31789 | |||
31790 | # Variables whose values should be saved in libtool wrapper scripts and |
||
31791 | # restored at link time. |
||
31792 | variables_saved_for_relink=$lt_variables_saved_for_relink |
||
31793 | |||
31794 | # Do we need the "lib" prefix for modules? |
||
31795 | need_lib_prefix=$need_lib_prefix |
||
31796 | |||
31797 | # Do we need a version for libraries? |
||
31798 | need_version=$need_version |
||
31799 | |||
31800 | # Library versioning type. |
||
31801 | version_type=$version_type |
||
31802 | |||
31803 | # Shared library runtime path variable. |
||
31804 | runpath_var=$runpath_var |
||
31805 | |||
31806 | # Shared library path variable. |
||
31807 | shlibpath_var=$shlibpath_var |
||
31808 | |||
31809 | # Is shlibpath searched before the hard-coded library search path? |
||
31810 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
||
31811 | |||
31812 | # Format of library name prefix. |
||
31813 | libname_spec=$lt_libname_spec |
||
31814 | |||
31815 | # List of archive names. First name is the real one, the rest are links. |
||
31816 | # The last name is the one that the linker finds with -lNAME |
||
31817 | library_names_spec=$lt_library_names_spec |
||
31818 | |||
31819 | # The coded name of the library, if different from the real name. |
||
31820 | soname_spec=$lt_soname_spec |
||
31821 | |||
31822 | # Permission mode override for installation of shared libraries. |
||
31823 | install_override_mode=$lt_install_override_mode |
||
31824 | |||
31825 | # Command to use after installation of a shared archive. |
||
31826 | postinstall_cmds=$lt_postinstall_cmds |
||
31827 | |||
31828 | # Command to use after uninstallation of a shared archive. |
||
31829 | postuninstall_cmds=$lt_postuninstall_cmds |
||
31830 | |||
31831 | # Commands used to finish a libtool library installation in a directory. |
||
31832 | finish_cmds=$lt_finish_cmds |
||
31833 | |||
31834 | # As "finish_cmds", except a single script fragment to be evaled but |
||
31835 | # not shown. |
||
31836 | finish_eval=$lt_finish_eval |
||
31837 | |||
31838 | # Whether we should hardcode library paths into libraries. |
||
31839 | hardcode_into_libs=$hardcode_into_libs |
||
31840 | |||
31841 | # Compile-time system search path for libraries. |
||
31842 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
||
31843 | |||
31844 | # Detected run-time system search path for libraries. |
||
31845 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
||
31846 | |||
31847 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
||
31848 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
||
31849 | |||
31850 | # Whether dlopen is supported. |
||
31851 | dlopen_support=$enable_dlopen |
||
31852 | |||
31853 | # Whether dlopen of programs is supported. |
||
31854 | dlopen_self=$enable_dlopen_self |
||
31855 | |||
31856 | # Whether dlopen of statically linked programs is supported. |
||
31857 | dlopen_self_static=$enable_dlopen_self_static |
||
31858 | |||
31859 | # Commands to strip libraries. |
||
31860 | old_striplib=$lt_old_striplib |
||
31861 | striplib=$lt_striplib |
||
31862 | |||
31863 | |||
31864 | # The linker used to build libraries. |
||
31865 | LD=$lt_LD |
||
31866 | |||
31867 | # How to create reloadable object files. |
||
31868 | reload_flag=$lt_reload_flag |
||
31869 | reload_cmds=$lt_reload_cmds |
||
31870 | |||
31871 | # Commands used to build an old-style archive. |
||
31872 | old_archive_cmds=$lt_old_archive_cmds |
||
31873 | |||
31874 | # A language specific compiler. |
||
31875 | CC=$lt_compiler |
||
31876 | |||
31877 | # Is the compiler the GNU compiler? |
||
31878 | with_gcc=$GCC |
||
31879 | |||
31880 | # Compiler flag to turn off builtin functions. |
||
31881 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
||
31882 | |||
31883 | # Additional compiler flags for building library objects. |
||
31884 | pic_flag=$lt_lt_prog_compiler_pic |
||
31885 | |||
31886 | # How to pass a linker flag through the compiler. |
||
31887 | wl=$lt_lt_prog_compiler_wl |
||
31888 | |||
31889 | # Compiler flag to prevent dynamic linking. |
||
31890 | link_static_flag=$lt_lt_prog_compiler_static |
||
31891 | |||
31892 | # Does compiler simultaneously support -c and -o options? |
||
31893 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
||
31894 | |||
31895 | # Whether or not to add -lc for building shared libraries. |
||
31896 | build_libtool_need_lc=$archive_cmds_need_lc |
||
31897 | |||
31898 | # Whether or not to disallow shared libs when runtime libs are static. |
||
31899 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
||
31900 | |||
31901 | # Compiler flag to allow reflexive dlopens. |
||
31902 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
||
31903 | |||
31904 | # Compiler flag to generate shared objects directly from archives. |
||
31905 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
||
31906 | |||
31907 | # Whether the compiler copes with passing no objects directly. |
||
31908 | compiler_needs_object=$lt_compiler_needs_object |
||
31909 | |||
31910 | # Create an old-style archive from a shared archive. |
||
31911 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
||
31912 | |||
31913 | # Create a temporary old-style archive to link instead of a shared archive. |
||
31914 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
||
31915 | |||
31916 | # Commands used to build a shared archive. |
||
31917 | archive_cmds=$lt_archive_cmds |
||
31918 | archive_expsym_cmds=$lt_archive_expsym_cmds |
||
31919 | |||
31920 | # Commands used to build a loadable module if different from building |
||
31921 | # a shared archive. |
||
31922 | module_cmds=$lt_module_cmds |
||
31923 | module_expsym_cmds=$lt_module_expsym_cmds |
||
31924 | |||
31925 | # Whether we are building with GNU ld or not. |
||
31926 | with_gnu_ld=$lt_with_gnu_ld |
||
31927 | |||
31928 | # Flag that allows shared libraries with undefined symbols to be built. |
||
31929 | allow_undefined_flag=$lt_allow_undefined_flag |
||
31930 | |||
31931 | # Flag that enforces no undefined symbols. |
||
31932 | no_undefined_flag=$lt_no_undefined_flag |
||
31933 | |||
31934 | # Flag to hardcode \$libdir into a binary during linking. |
||
31935 | # This must work even if \$libdir does not exist |
||
31936 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
||
31937 | |||
31938 | # Whether we need a single "-rpath" flag with a separated argument. |
||
31939 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
||
31940 | |||
31941 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
31942 | # DIR into the resulting binary. |
||
31943 | hardcode_direct=$hardcode_direct |
||
31944 | |||
31945 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
31946 | # DIR into the resulting binary and the resulting library dependency is |
||
31947 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
||
31948 | # library is relocated. |
||
31949 | hardcode_direct_absolute=$hardcode_direct_absolute |
||
31950 | |||
31951 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
||
31952 | # into the resulting binary. |
||
31953 | hardcode_minus_L=$hardcode_minus_L |
||
31954 | |||
31955 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
||
31956 | # into the resulting binary. |
||
31957 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
||
31958 | |||
31959 | # Set to "yes" if building a shared library automatically hardcodes DIR |
||
31960 | # into the library and all subsequent libraries and executables linked |
||
31961 | # against it. |
||
31962 | hardcode_automatic=$hardcode_automatic |
||
31963 | |||
31964 | # Set to yes if linker adds runtime paths of dependent libraries |
||
31965 | # to runtime path list. |
||
31966 | inherit_rpath=$inherit_rpath |
||
31967 | |||
31968 | # Whether libtool must link a program against all its dependency libraries. |
||
31969 | link_all_deplibs=$link_all_deplibs |
||
31970 | |||
31971 | # Set to "yes" if exported symbols are required. |
||
31972 | always_export_symbols=$always_export_symbols |
||
31973 | |||
31974 | # The commands to list exported symbols. |
||
31975 | export_symbols_cmds=$lt_export_symbols_cmds |
||
31976 | |||
31977 | # Symbols that should not be listed in the preloaded symbols. |
||
31978 | exclude_expsyms=$lt_exclude_expsyms |
||
31979 | |||
31980 | # Symbols that must always be exported. |
||
31981 | include_expsyms=$lt_include_expsyms |
||
31982 | |||
31983 | # Commands necessary for linking programs (against libraries) with templates. |
||
31984 | prelink_cmds=$lt_prelink_cmds |
||
31985 | |||
31986 | # Commands necessary for finishing linking programs. |
||
31987 | postlink_cmds=$lt_postlink_cmds |
||
31988 | |||
31989 | # Specify filename containing input files. |
||
31990 | file_list_spec=$lt_file_list_spec |
||
31991 | |||
31992 | # How to hardcode a shared library path into an executable. |
||
31993 | hardcode_action=$hardcode_action |
||
31994 | |||
31995 | # The directories searched by this compiler when creating a shared library. |
||
31996 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
||
31997 | |||
31998 | # Dependencies to place before and after the objects being linked to |
||
31999 | # create a shared library. |
||
32000 | predep_objects=$lt_predep_objects |
||
32001 | postdep_objects=$lt_postdep_objects |
||
32002 | predeps=$lt_predeps |
||
32003 | postdeps=$lt_postdeps |
||
32004 | |||
32005 | # The library search path used internally by the compiler when linking |
||
32006 | # a shared library. |
||
32007 | compiler_lib_search_path=$lt_compiler_lib_search_path |
||
32008 | |||
32009 | # ### END LIBTOOL CONFIG |
||
32010 | |||
32011 | _LT_EOF |
||
32012 | |||
32013 | cat <<'_LT_EOF' >> "$cfgfile" |
||
32014 | |||
32015 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
||
32016 | |||
32017 | # func_munge_path_list VARIABLE PATH |
||
32018 | # ----------------------------------- |
||
32019 | # VARIABLE is name of variable containing _space_ separated list of |
||
32020 | # directories to be munged by the contents of PATH, which is string |
||
32021 | # having a format: |
||
32022 | # "DIR[:DIR]:" |
||
32023 | # string "DIR[ DIR]" will be prepended to VARIABLE |
||
32024 | # ":DIR[:DIR]" |
||
32025 | # string "DIR[ DIR]" will be appended to VARIABLE |
||
32026 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
||
32027 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
||
32028 | # "DIRA[ DIRA]" will be appended to VARIABLE |
||
32029 | # "DIR[:DIR]" |
||
32030 | # VARIABLE will be replaced by "DIR[ DIR]" |
||
32031 | func_munge_path_list () |
||
32032 | { |
||
32033 | case x$2 in |
||
32034 | x) |
||
32035 | ;; |
||
32036 | *:) |
||
32037 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
||
32038 | ;; |
||
32039 | x:*) |
||
32040 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
||
32041 | ;; |
||
32042 | *::*) |
||
32043 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
||
32044 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
||
32045 | ;; |
||
32046 | *) |
||
32047 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
||
32048 | ;; |
||
32049 | esac |
||
32050 | } |
||
32051 | |||
32052 | |||
32053 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
||
32054 | func_cc_basename () |
||
32055 | { |
||
32056 | for cc_temp in $*""; do |
||
32057 | case $cc_temp in |
||
32058 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
||
32059 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
||
32060 | \-*) ;; |
||
32061 | *) break;; |
||
32062 | esac |
||
32063 | done |
||
32064 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
||
32065 | } |
||
32066 | |||
32067 | |||
32068 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
||
32069 | |||
32070 | _LT_EOF |
||
32071 | |||
32072 | case $host_os in |
||
32073 | aix3*) |
||
32074 | cat <<\_LT_EOF >> "$cfgfile" |
||
32075 | # AIX sometimes has problems with the GCC collect2 program. For some |
||
32076 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
||
32077 | # vanish in a puff of smoke. |
||
32078 | if test set != "${COLLECT_NAMES+set}"; then |
||
32079 | COLLECT_NAMES= |
||
32080 | export COLLECT_NAMES |
||
32081 | fi |
||
32082 | _LT_EOF |
||
32083 | ;; |
||
32084 | esac |
||
32085 | |||
32086 | |||
32087 | ltmain=$ac_aux_dir/ltmain.sh |
||
32088 | |||
32089 | |||
32090 | # We use sed instead of cat because bash on DJGPP gets confused if |
||
32091 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
||
32092 | # text mode, it properly converts lines to CR/LF. This bash problem |
||
32093 | # is reportedly fixed, but why not run on old versions too? |
||
32094 | sed '$q' "$ltmain" >> "$cfgfile" \ |
||
32095 | || (rm -f "$cfgfile"; exit 1) |
||
32096 | |||
32097 | mv -f "$cfgfile" "$ofile" || |
||
32098 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
||
32099 | chmod +x "$ofile" |
||
32100 | |||
32101 | |||
32102 | cat <<_LT_EOF >> "$ofile" |
||
32103 | |||
32104 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
||
32105 | |||
32106 | # The linker used to build libraries. |
||
32107 | LD=$lt_LD_CXX |
||
32108 | |||
32109 | # How to create reloadable object files. |
||
32110 | reload_flag=$lt_reload_flag_CXX |
||
32111 | reload_cmds=$lt_reload_cmds_CXX |
||
32112 | |||
32113 | # Commands used to build an old-style archive. |
||
32114 | old_archive_cmds=$lt_old_archive_cmds_CXX |
||
32115 | |||
32116 | # A language specific compiler. |
||
32117 | CC=$lt_compiler_CXX |
||
32118 | |||
32119 | # Is the compiler the GNU compiler? |
||
32120 | with_gcc=$GCC_CXX |
||
32121 | |||
32122 | # Compiler flag to turn off builtin functions. |
||
32123 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
||
32124 | |||
32125 | # Additional compiler flags for building library objects. |
||
32126 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
||
32127 | |||
32128 | # How to pass a linker flag through the compiler. |
||
32129 | wl=$lt_lt_prog_compiler_wl_CXX |
||
32130 | |||
32131 | # Compiler flag to prevent dynamic linking. |
||
32132 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
||
32133 | |||
32134 | # Does compiler simultaneously support -c and -o options? |
||
32135 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
||
32136 | |||
32137 | # Whether or not to add -lc for building shared libraries. |
||
32138 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
||
32139 | |||
32140 | # Whether or not to disallow shared libs when runtime libs are static. |
||
32141 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
||
32142 | |||
32143 | # Compiler flag to allow reflexive dlopens. |
||
32144 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
||
32145 | |||
32146 | # Compiler flag to generate shared objects directly from archives. |
||
32147 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
||
32148 | |||
32149 | # Whether the compiler copes with passing no objects directly. |
||
32150 | compiler_needs_object=$lt_compiler_needs_object_CXX |
||
32151 | |||
32152 | # Create an old-style archive from a shared archive. |
||
32153 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
||
32154 | |||
32155 | # Create a temporary old-style archive to link instead of a shared archive. |
||
32156 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
||
32157 | |||
32158 | # Commands used to build a shared archive. |
||
32159 | archive_cmds=$lt_archive_cmds_CXX |
||
32160 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
||
32161 | |||
32162 | # Commands used to build a loadable module if different from building |
||
32163 | # a shared archive. |
||
32164 | module_cmds=$lt_module_cmds_CXX |
||
32165 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
||
32166 | |||
32167 | # Whether we are building with GNU ld or not. |
||
32168 | with_gnu_ld=$lt_with_gnu_ld_CXX |
||
32169 | |||
32170 | # Flag that allows shared libraries with undefined symbols to be built. |
||
32171 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
||
32172 | |||
32173 | # Flag that enforces no undefined symbols. |
||
32174 | no_undefined_flag=$lt_no_undefined_flag_CXX |
||
32175 | |||
32176 | # Flag to hardcode \$libdir into a binary during linking. |
||
32177 | # This must work even if \$libdir does not exist |
||
32178 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
||
32179 | |||
32180 | # Whether we need a single "-rpath" flag with a separated argument. |
||
32181 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
||
32182 | |||
32183 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
32184 | # DIR into the resulting binary. |
||
32185 | hardcode_direct=$hardcode_direct_CXX |
||
32186 | |||
32187 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
||
32188 | # DIR into the resulting binary and the resulting library dependency is |
||
32189 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
||
32190 | # library is relocated. |
||
32191 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
||
32192 | |||
32193 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
||
32194 | # into the resulting binary. |
||
32195 | hardcode_minus_L=$hardcode_minus_L_CXX |
||
32196 | |||
32197 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
||
32198 | # into the resulting binary. |
||
32199 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
||
32200 | |||
32201 | # Set to "yes" if building a shared library automatically hardcodes DIR |
||
32202 | # into the library and all subsequent libraries and executables linked |
||
32203 | # against it. |
||
32204 | hardcode_automatic=$hardcode_automatic_CXX |
||
32205 | |||
32206 | # Set to yes if linker adds runtime paths of dependent libraries |
||
32207 | # to runtime path list. |
||
32208 | inherit_rpath=$inherit_rpath_CXX |
||
32209 | |||
32210 | # Whether libtool must link a program against all its dependency libraries. |
||
32211 | link_all_deplibs=$link_all_deplibs_CXX |
||
32212 | |||
32213 | # Set to "yes" if exported symbols are required. |
||
32214 | always_export_symbols=$always_export_symbols_CXX |
||
32215 | |||
32216 | # The commands to list exported symbols. |
||
32217 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
||
32218 | |||
32219 | # Symbols that should not be listed in the preloaded symbols. |
||
32220 | exclude_expsyms=$lt_exclude_expsyms_CXX |
||
32221 | |||
32222 | # Symbols that must always be exported. |
||
32223 | include_expsyms=$lt_include_expsyms_CXX |
||
32224 | |||
32225 | # Commands necessary for linking programs (against libraries) with templates. |
||
32226 | prelink_cmds=$lt_prelink_cmds_CXX |
||
32227 | |||
32228 | # Commands necessary for finishing linking programs. |
||
32229 | postlink_cmds=$lt_postlink_cmds_CXX |
||
32230 | |||
32231 | # Specify filename containing input files. |
||
32232 | file_list_spec=$lt_file_list_spec_CXX |
||
32233 | |||
32234 | # How to hardcode a shared library path into an executable. |
||
32235 | hardcode_action=$hardcode_action_CXX |
||
32236 | |||
32237 | # The directories searched by this compiler when creating a shared library. |
||
32238 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
||
32239 | |||
32240 | # Dependencies to place before and after the objects being linked to |
||
32241 | # create a shared library. |
||
32242 | predep_objects=$lt_predep_objects_CXX |
||
32243 | postdep_objects=$lt_postdep_objects_CXX |
||
32244 | predeps=$lt_predeps_CXX |
||
32245 | postdeps=$lt_postdeps_CXX |
||
32246 | |||
32247 | # The library search path used internally by the compiler when linking |
||
32248 | # a shared library. |
||
32249 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
||
32250 | |||
32251 | # ### END LIBTOOL TAG CONFIG: CXX |
||
32252 | _LT_EOF |
||
32253 | |||
32254 | ;; |
||
32255 | "glib/glibconfig.h":C) |
||
32256 | outfile=glib/glibconfig.h-tmp |
||
32257 | cat > $outfile <<\_______EOF |
||
32258 | /* glibconfig.h |
||
32259 | * |
||
32260 | * This is a generated file. Please modify 'configure.ac' |
||
32261 | */ |
||
32262 | |||
32263 | #ifndef __GLIBCONFIG_H__ |
||
32264 | #define __GLIBCONFIG_H__ |
||
32265 | |||
32266 | #include <glib/gmacros.h> |
||
32267 | |||
32268 | _______EOF |
||
32269 | |||
32270 | echo '#include <limits.h>' >> $outfile |
||
32271 | echo '#include <float.h>' >> $outfile |
||
32272 | if test x$glib_values_h = xyes; then |
||
32273 | echo '#include <values.h>' >> $outfile |
||
32274 | fi |
||
32275 | if test "$glib_header_alloca_h" = "yes"; then |
||
32276 | echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile |
||
32277 | fi |
||
32278 | if test x$glib_included_printf != xyes; then |
||
32279 | echo " |
||
32280 | /* Specifies that GLib's g_print*() functions wrap the |
||
32281 | * system printf functions. This is useful to know, for example, |
||
32282 | * when using glibc's register_printf_function(). |
||
32283 | */" >> $outfile |
||
32284 | echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile |
||
32285 | fi |
||
32286 | |||
32287 | cat >> $outfile <<_______EOF |
||
32288 | |||
32289 | G_BEGIN_DECLS |
||
32290 | |||
32291 | #define G_MINFLOAT FLT_MIN |
||
32292 | #define G_MAXFLOAT FLT_MAX |
||
32293 | #define G_MINDOUBLE DBL_MIN |
||
32294 | #define G_MAXDOUBLE DBL_MAX |
||
32295 | #define G_MINSHORT SHRT_MIN |
||
32296 | #define G_MAXSHORT SHRT_MAX |
||
32297 | #define G_MAXUSHORT USHRT_MAX |
||
32298 | #define G_MININT INT_MIN |
||
32299 | #define G_MAXINT INT_MAX |
||
32300 | #define G_MAXUINT UINT_MAX |
||
32301 | #define G_MINLONG LONG_MIN |
||
32302 | #define G_MAXLONG LONG_MAX |
||
32303 | #define G_MAXULONG ULONG_MAX |
||
32304 | |||
32305 | _______EOF |
||
32306 | |||
32307 | |||
32308 | ### this should always be true in a modern C/C++ compiler |
||
32309 | ### and is statically asserted by glib-init.c |
||
32310 | cat >>$outfile <<_______EOF |
||
32311 | typedef signed char gint8; |
||
32312 | typedef unsigned char guint8; |
||
32313 | _______EOF |
||
32314 | |||
32315 | |||
32316 | if test -n "$gint16"; then |
||
32317 | cat >>$outfile <<_______EOF |
||
32318 | typedef signed $gint16 gint16; |
||
32319 | typedef unsigned $gint16 guint16; |
||
32320 | #define G_GINT16_MODIFIER $gint16_modifier |
||
32321 | #define G_GINT16_FORMAT $gint16_format |
||
32322 | #define G_GUINT16_FORMAT $guint16_format |
||
32323 | _______EOF |
||
32324 | fi |
||
32325 | |||
32326 | |||
32327 | if test -n "$gint32"; then |
||
32328 | cat >>$outfile <<_______EOF |
||
32329 | typedef signed $gint32 gint32; |
||
32330 | typedef unsigned $gint32 guint32; |
||
32331 | #define G_GINT32_MODIFIER $gint32_modifier |
||
32332 | #define G_GINT32_FORMAT $gint32_format |
||
32333 | #define G_GUINT32_FORMAT $guint32_format |
||
32334 | _______EOF |
||
32335 | fi |
||
32336 | |||
32337 | cat >>$outfile <<_______EOF |
||
32338 | #define G_HAVE_GINT64 1 /* deprecated, always true */ |
||
32339 | |||
32340 | ${glib_extension}typedef signed $gint64 gint64; |
||
32341 | ${glib_extension}typedef unsigned $gint64 guint64; |
||
32342 | |||
32343 | #define G_GINT64_CONSTANT(val) $gint64_constant |
||
32344 | #define G_GUINT64_CONSTANT(val) $guint64_constant |
||
32345 | _______EOF |
||
32346 | |||
32347 | if test x$gint64_format != x ; then |
||
32348 | cat >>$outfile <<_______EOF |
||
32349 | #define G_GINT64_MODIFIER $gint64_modifier |
||
32350 | #define G_GINT64_FORMAT $gint64_format |
||
32351 | #define G_GUINT64_FORMAT $guint64_format |
||
32352 | _______EOF |
||
32353 | else |
||
32354 | cat >>$outfile <<_______EOF |
||
32355 | #undef G_GINT64_MODIFIER |
||
32356 | #undef G_GINT64_FORMAT |
||
32357 | #undef G_GUINT64_FORMAT |
||
32358 | _______EOF |
||
32359 | fi |
||
32360 | |||
32361 | cat >>$outfile <<_______EOF |
||
32362 | |||
32363 | #define GLIB_SIZEOF_VOID_P $glib_void_p |
||
32364 | #define GLIB_SIZEOF_LONG $glib_long |
||
32365 | #define GLIB_SIZEOF_SIZE_T $glib_size_t |
||
32366 | #define GLIB_SIZEOF_SSIZE_T $glib_ssize_t |
||
32367 | |||
32368 | _______EOF |
||
32369 | |||
32370 | cat >>$outfile <<_______EOF |
||
32371 | typedef signed $glib_ssize_type_define gssize; |
||
32372 | typedef unsigned $glib_size_type_define gsize; |
||
32373 | #define G_GSIZE_MODIFIER $gsize_modifier |
||
32374 | #define G_GSSIZE_MODIFIER $gssize_modifier |
||
32375 | #define G_GSIZE_FORMAT $gsize_format |
||
32376 | #define G_GSSIZE_FORMAT $gssize_format |
||
32377 | |||
32378 | #define G_MAXSIZE G_MAXU$glib_msize_type |
||
32379 | #define G_MINSSIZE G_MIN$glib_mssize_type |
||
32380 | #define G_MAXSSIZE G_MAX$glib_mssize_type |
||
32381 | |||
32382 | typedef gint64 goffset; |
||
32383 | #define G_MINOFFSET G_MININT64 |
||
32384 | #define G_MAXOFFSET G_MAXINT64 |
||
32385 | |||
32386 | #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER |
||
32387 | #define G_GOFFSET_FORMAT G_GINT64_FORMAT |
||
32388 | #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val) |
||
32389 | |||
32390 | #define G_POLLFD_FORMAT $g_pollfd_format |
||
32391 | |||
32392 | _______EOF |
||
32393 | |||
32394 | if test -z "$glib_unknown_void_p"; then |
||
32395 | cat >>$outfile <<_______EOF |
||
32396 | |||
32397 | #define GPOINTER_TO_INT(p) ((gint) ${glib_gpi_cast} (p)) |
||
32398 | #define GPOINTER_TO_UINT(p) ((guint) ${glib_gpui_cast} (p)) |
||
32399 | |||
32400 | #define GINT_TO_POINTER(i) ((gpointer) ${glib_gpi_cast} (i)) |
||
32401 | #define GUINT_TO_POINTER(u) ((gpointer) ${glib_gpui_cast} (u)) |
||
32402 | |||
32403 | typedef signed $glib_intptr_type_define gintptr; |
||
32404 | typedef unsigned $glib_intptr_type_define guintptr; |
||
32405 | |||
32406 | #define G_GINTPTR_MODIFIER $gintptr_modifier |
||
32407 | #define G_GINTPTR_FORMAT $gintptr_format |
||
32408 | #define G_GUINTPTR_FORMAT $guintptr_format |
||
32409 | _______EOF |
||
32410 | else |
||
32411 | echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile |
||
32412 | fi |
||
32413 | |||
32414 | |||
32415 | |||
32416 | cat >>$outfile <<_______EOF |
||
32417 | #ifndef G_DISABLE_DEPRECATED |
||
32418 | #define g_ATEXIT(proc) (atexit (proc)) |
||
32419 | #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END |
||
32420 | #endif |
||
32421 | $glib_defines |
||
32422 | $glib_os |
||
32423 | $glib_static_compilation |
||
32424 | |||
32425 | $glib_vacopy |
||
32426 | |||
32427 | _______EOF |
||
32428 | |||
32429 | if test x$g_have_iso_c_varargs = xyes ; then |
||
32430 | cat >>$outfile <<_______EOF |
||
32431 | #ifndef __cplusplus |
||
32432 | # define G_HAVE_ISO_VARARGS 1 |
||
32433 | #endif |
||
32434 | _______EOF |
||
32435 | fi |
||
32436 | if test x$g_have_iso_cxx_varargs = xyes ; then |
||
32437 | cat >>$outfile <<_______EOF |
||
32438 | #ifdef __cplusplus |
||
32439 | # define G_HAVE_ISO_VARARGS 1 |
||
32440 | #endif |
||
32441 | _______EOF |
||
32442 | fi |
||
32443 | if test x$g_have_gnuc_varargs = xyes ; then |
||
32444 | cat >>$outfile <<_______EOF |
||
32445 | |||
32446 | /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi |
||
32447 | * is passed ISO vararg support is turned off, and there is no work |
||
32448 | * around to turn it on, so we unconditionally turn it off. |
||
32449 | */ |
||
32450 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 95 |
||
32451 | # undef G_HAVE_ISO_VARARGS |
||
32452 | #endif |
||
32453 | |||
32454 | #define G_HAVE_GNUC_VARARGS 1 |
||
32455 | _______EOF |
||
32456 | fi |
||
32457 | |||
32458 | case x$g_stack_grows in |
||
32459 | xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;; |
||
32460 | *) echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;; |
||
32461 | esac |
||
32462 | |||
32463 | |||
32464 | echo >>$outfile |
||
32465 | if test x$g_have_eilseq = xno; then |
||
32466 | cat >>$outfile <<_______EOF |
||
32467 | #ifndef EILSEQ |
||
32468 | /* On some pre-C99 systems, EILSEQ is not defined. |
||
32469 | * The correspondence between this and the corresponding definition |
||
32470 | * in libiconv is essential. |
||
32471 | */ |
||
32472 | # define EILSEQ ENOENT |
||
32473 | #endif |
||
32474 | _______EOF |
||
32475 | |||
32476 | fi |
||
32477 | |||
32478 | if test x$g_have_gnuc_visibility = xyes; then |
||
32479 | cat >>$outfile <<_______EOF |
||
32480 | #define G_HAVE_GNUC_VISIBILITY 1 |
||
32481 | _______EOF |
||
32482 | fi |
||
32483 | cat >>$outfile <<_______EOF |
||
32484 | #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) |
||
32485 | #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) |
||
32486 | #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) |
||
32487 | #define G_GNUC_INTERNAL __hidden |
||
32488 | #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) |
||
32489 | #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) |
||
32490 | #else |
||
32491 | #define G_GNUC_INTERNAL |
||
32492 | #endif |
||
32493 | _______EOF |
||
32494 | |||
32495 | echo >>$outfile |
||
32496 | cat >>$outfile <<_______EOF |
||
32497 | #define G_THREADS_ENABLED |
||
32498 | #define G_THREADS_IMPL_$g_threads_impl_def |
||
32499 | _______EOF |
||
32500 | |||
32501 | if test x"$g_memory_barrier_needed" != xno; then |
||
32502 | echo >>$outfile |
||
32503 | echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile |
||
32504 | fi |
||
32505 | if test x"$g_atomic_lock_free" = xyes; then |
||
32506 | echo >>$outfile |
||
32507 | echo "#define G_ATOMIC_LOCK_FREE" >>$outfile |
||
32508 | fi |
||
32509 | echo >>$outfile |
||
32510 | g_bit_sizes="16 32 64" |
||
32511 | for bits in $g_bit_sizes; do |
||
32512 | cat >>$outfile <<_______EOF |
||
32513 | #define GINT${bits}_TO_${g_bs_native}(val) ((gint${bits}) (val)) |
||
32514 | #define GUINT${bits}_TO_${g_bs_native}(val) ((guint${bits}) (val)) |
||
32515 | #define GINT${bits}_TO_${g_bs_alien}(val) ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val)) |
||
32516 | #define GUINT${bits}_TO_${g_bs_alien}(val) (GUINT${bits}_SWAP_LE_BE (val)) |
||
32517 | _______EOF |
||
32518 | done |
||
32519 | |||
32520 | cat >>$outfile <<_______EOF |
||
32521 | #define GLONG_TO_LE(val) ((glong) GINT${glongbits}_TO_LE (val)) |
||
32522 | #define GULONG_TO_LE(val) ((gulong) GUINT${glongbits}_TO_LE (val)) |
||
32523 | #define GLONG_TO_BE(val) ((glong) GINT${glongbits}_TO_BE (val)) |
||
32524 | #define GULONG_TO_BE(val) ((gulong) GUINT${glongbits}_TO_BE (val)) |
||
32525 | #define GINT_TO_LE(val) ((gint) GINT${gintbits}_TO_LE (val)) |
||
32526 | #define GUINT_TO_LE(val) ((guint) GUINT${gintbits}_TO_LE (val)) |
||
32527 | #define GINT_TO_BE(val) ((gint) GINT${gintbits}_TO_BE (val)) |
||
32528 | #define GUINT_TO_BE(val) ((guint) GUINT${gintbits}_TO_BE (val)) |
||
32529 | #define GSIZE_TO_LE(val) ((gsize) GUINT${gsizebits}_TO_LE (val)) |
||
32530 | #define GSSIZE_TO_LE(val) ((gssize) GINT${gssizebits}_TO_LE (val)) |
||
32531 | #define GSIZE_TO_BE(val) ((gsize) GUINT${gsizebits}_TO_BE (val)) |
||
32532 | #define GSSIZE_TO_BE(val) ((gssize) GINT${gssizebits}_TO_BE (val)) |
||
32533 | #define G_BYTE_ORDER $g_byte_order |
||
32534 | |||
32535 | #define GLIB_SYSDEF_POLLIN =$g_pollin |
||
32536 | #define GLIB_SYSDEF_POLLOUT =$g_pollout |
||
32537 | #define GLIB_SYSDEF_POLLPRI =$g_pollpri |
||
32538 | #define GLIB_SYSDEF_POLLHUP =$g_pollhup |
||
32539 | #define GLIB_SYSDEF_POLLERR =$g_pollerr |
||
32540 | #define GLIB_SYSDEF_POLLNVAL =$g_pollnval |
||
32541 | |||
32542 | #define G_MODULE_SUFFIX "$g_module_suffix" |
||
32543 | |||
32544 | typedef $g_pid_type GPid; |
||
32545 | |||
32546 | #define GLIB_SYSDEF_AF_UNIX $g_af_unix |
||
32547 | #define GLIB_SYSDEF_AF_INET $g_af_inet |
||
32548 | #define GLIB_SYSDEF_AF_INET6 $g_af_inet6 |
||
32549 | |||
32550 | #define GLIB_SYSDEF_MSG_OOB $g_msg_oob |
||
32551 | #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek |
||
32552 | #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute |
||
32553 | |||
32554 | G_END_DECLS |
||
32555 | |||
32556 | #endif /* __GLIBCONFIG_H__ */ |
||
32557 | _______EOF |
||
32558 | |||
32559 | |||
32560 | if cmp -s $outfile glib/glibconfig.h; then |
||
32561 | { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5 |
||
32562 | $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;} |
||
32563 | rm -f $outfile |
||
32564 | else |
||
32565 | mv $outfile glib/glibconfig.h |
||
32566 | fi |
||
32567 | ;; |
||
32568 | "chmod-scripts":C) chmod 0755 glib-zip |
||
32569 | chmod 0755 glib-gettextize |
||
32570 | chmod 0755 gobject/glib-mkenums ;; |
||
32571 | |||
32572 | esac |
||
32573 | done # for ac_tag |
||
32574 | |||
32575 | |||
32576 | as_fn_exit 0 |
||
32577 | _ACEOF |
||
32578 | ac_clean_files=$ac_clean_files_save |
||
32579 | |||
32580 | test $ac_write_fail = 0 || |
||
32581 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
||
32582 | |||
32583 | |||
32584 | # configure is writing to config.log, and then calls config.status. |
||
32585 | # config.status does its own redirection, appending to config.log. |
||
32586 | # Unfortunately, on DOS this fails, as config.log is still kept open |
||
32587 | # by configure, so config.status won't be able to write to it; its |
||
32588 | # output is simply discarded. So we exec the FD to /dev/null, |
||
32589 | # effectively closing config.log, so it can be properly (re)opened and |
||
32590 | # appended to by config.status. When coming back to configure, we |
||
32591 | # need to make the FD available again. |
||
32592 | if test "$no_create" != yes; then |
||
32593 | ac_cs_success=: |
||
32594 | ac_config_status_args= |
||
32595 | test "$silent" = yes && |
||
32596 | ac_config_status_args="$ac_config_status_args --quiet" |
||
32597 | exec 5>/dev/null |
||
32598 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
||
32599 | exec 5>>config.log |
||
32600 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
||
32601 | # would make configure fail if this is the last instruction. |
||
32602 | $ac_cs_success || as_fn_exit 1 |
||
32603 | fi |
||
32604 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
||
32605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
||
32606 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
||
32607 | fi |
||
32608 |