1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.58. |
---|
4 | # |
---|
5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6 | # This configure script is free software; the Free Software Foundation |
---|
7 | # gives unlimited permission to copy, distribute and modify it. |
---|
8 | ## --------------------- ## |
---|
9 | ## M4sh Initialization. ## |
---|
10 | ## --------------------- ## |
---|
11 | |
---|
12 | # Be Bourne compatible |
---|
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
14 | emulate sh |
---|
15 | NULLCMD=: |
---|
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
17 | # is contrary to our usage. Disable this feature. |
---|
18 | alias -g '${1+"$@"}'='"$@"' |
---|
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
20 | set -o posix |
---|
21 | fi |
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
23 | |
---|
24 | # Support unset when possible. |
---|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
26 | as_unset=unset |
---|
27 | else |
---|
28 | as_unset=false |
---|
29 | fi |
---|
30 | |
---|
31 | |
---|
32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
33 | $as_unset ENV MAIL MAILPATH |
---|
34 | PS1='$ ' |
---|
35 | PS2='> ' |
---|
36 | PS4='+ ' |
---|
37 | |
---|
38 | # NLS nuisances. |
---|
39 | for as_var in \ |
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
42 | LC_TELEPHONE LC_TIME |
---|
43 | do |
---|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
45 | eval $as_var=C; export $as_var |
---|
46 | else |
---|
47 | $as_unset $as_var |
---|
48 | fi |
---|
49 | done |
---|
50 | |
---|
51 | # Required to use basename. |
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
53 | as_expr=expr |
---|
54 | else |
---|
55 | as_expr=false |
---|
56 | fi |
---|
57 | |
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
59 | as_basename=basename |
---|
60 | else |
---|
61 | as_basename=false |
---|
62 | fi |
---|
63 | |
---|
64 | |
---|
65 | # Name of the executable. |
---|
66 | as_me=`$as_basename "$0" || |
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
68 | X"$0" : 'X\(//\)$' \| \ |
---|
69 | X"$0" : 'X\(/\)$' \| \ |
---|
70 | . : '\(.\)' 2>/dev/null || |
---|
71 | echo X/"$0" | |
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
75 | s/.*/./; q'` |
---|
76 | |
---|
77 | |
---|
78 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
79 | # Avoid depending upon Character Ranges. |
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
83 | as_cr_digits='0123456789' |
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
85 | |
---|
86 | # The user is always right. |
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
88 | echo "#! /bin/sh" >conf$$.sh |
---|
89 | echo "exit 0" >>conf$$.sh |
---|
90 | chmod +x conf$$.sh |
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
92 | PATH_SEPARATOR=';' |
---|
93 | else |
---|
94 | PATH_SEPARATOR=: |
---|
95 | fi |
---|
96 | rm -f conf$$.sh |
---|
97 | fi |
---|
98 | |
---|
99 | |
---|
100 | as_lineno_1=$LINENO |
---|
101 | as_lineno_2=$LINENO |
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
105 | # Find who we are. Look in the path if we contain no path at all |
---|
106 | # relative or not. |
---|
107 | case $0 in |
---|
108 | *[\\/]* ) as_myself=$0 ;; |
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
110 | for as_dir in $PATH |
---|
111 | do |
---|
112 | IFS=$as_save_IFS |
---|
113 | test -z "$as_dir" && as_dir=. |
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
115 | done |
---|
116 | |
---|
117 | ;; |
---|
118 | esac |
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
120 | # in which case we are not to be found in the path. |
---|
121 | if test "x$as_myself" = x; then |
---|
122 | as_myself=$0 |
---|
123 | fi |
---|
124 | if test ! -f "$as_myself"; then |
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
126 | { (exit 1); exit 1; }; } |
---|
127 | fi |
---|
128 | case $CONFIG_SHELL in |
---|
129 | '') |
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
132 | do |
---|
133 | IFS=$as_save_IFS |
---|
134 | test -z "$as_dir" && as_dir=. |
---|
135 | for as_base in sh bash ksh sh5; do |
---|
136 | case $as_dir in |
---|
137 | /*) |
---|
138 | if ("$as_dir/$as_base" -c ' |
---|
139 | as_lineno_1=$LINENO |
---|
140 | as_lineno_2=$LINENO |
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
146 | CONFIG_SHELL=$as_dir/$as_base |
---|
147 | export CONFIG_SHELL |
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
149 | fi;; |
---|
150 | esac |
---|
151 | done |
---|
152 | done |
---|
153 | ;; |
---|
154 | esac |
---|
155 | |
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
158 | # line-number line before each line; the second 'sed' does the real |
---|
159 | # work. The second script uses 'N' to pair each line-number line |
---|
160 | # with the numbered line, and appends trailing '-' during |
---|
161 | # substitution so that $LINENO is not a special case at line end. |
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
164 | sed '=' <$as_myself | |
---|
165 | sed ' |
---|
166 | N |
---|
167 | s,$,-, |
---|
168 | : loop |
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
170 | t loop |
---|
171 | s,-$,, |
---|
172 | s,^['$as_cr_digits']*\n,, |
---|
173 | ' >$as_me.lineno && |
---|
174 | chmod +x $as_me.lineno || |
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
176 | { (exit 1); exit 1; }; } |
---|
177 | |
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
179 | # (the dirname of $[0] is not the place where we might find the |
---|
180 | # original and so on. Autoconf is especially sensible to this). |
---|
181 | . ./$as_me.lineno |
---|
182 | # Exit status is that of the last command. |
---|
183 | exit |
---|
184 | } |
---|
185 | |
---|
186 | |
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
188 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
189 | ' ECHO_T=' ' ;; |
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
192 | esac |
---|
193 | |
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
195 | as_expr=expr |
---|
196 | else |
---|
197 | as_expr=false |
---|
198 | fi |
---|
199 | |
---|
200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
201 | echo >conf$$.file |
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
205 | if test -f conf$$.exe; then |
---|
206 | # Don't use ln at all; we don't have any links |
---|
207 | as_ln_s='cp -p' |
---|
208 | else |
---|
209 | as_ln_s='ln -s' |
---|
210 | fi |
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
212 | as_ln_s=ln |
---|
213 | else |
---|
214 | as_ln_s='cp -p' |
---|
215 | fi |
---|
216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
217 | |
---|
218 | if mkdir -p . 2>/dev/null; then |
---|
219 | as_mkdir_p=: |
---|
220 | else |
---|
221 | test -d ./-p && rmdir ./-p |
---|
222 | as_mkdir_p=false |
---|
223 | fi |
---|
224 | |
---|
225 | as_executable_p="test -f" |
---|
226 | |
---|
227 | # Sed expression to map a string onto a valid CPP name. |
---|
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
229 | |
---|
230 | # Sed expression to map a string onto a valid variable name. |
---|
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
232 | |
---|
233 | |
---|
234 | # IFS |
---|
235 | # We need space, tab and new line, in precisely that order. |
---|
236 | as_nl=' |
---|
237 | ' |
---|
238 | IFS=" $as_nl" |
---|
239 | |
---|
240 | # CDPATH. |
---|
241 | $as_unset CDPATH |
---|
242 | |
---|
243 | |
---|
244 | # Name of the host. |
---|
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
246 | # so uname gets run too. |
---|
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
248 | |
---|
249 | exec 6>&1 |
---|
250 | |
---|
251 | # |
---|
252 | # Initializations. |
---|
253 | # |
---|
254 | ac_default_prefix=/usr/local |
---|
255 | ac_config_libobj_dir=. |
---|
256 | cross_compiling=no |
---|
257 | subdirs= |
---|
258 | MFLAGS= |
---|
259 | MAKEFLAGS= |
---|
260 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
261 | |
---|
262 | # Maximum number of lines to put in a shell here document. |
---|
263 | # This variable seems obsolete. It should probably be removed, and |
---|
264 | # only ac_max_sed_lines should be used. |
---|
265 | : ${ac_max_here_lines=38} |
---|
266 | |
---|
267 | # Identity of this package. |
---|
268 | PACKAGE_NAME= |
---|
269 | PACKAGE_TARNAME= |
---|
270 | PACKAGE_VERSION= |
---|
271 | PACKAGE_STRING= |
---|
272 | PACKAGE_BUGREPORT= |
---|
273 | |
---|
274 | ac_unique_file="configure.ac" |
---|
275 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBRPATHX LTLIBRPATHX LIBRPATHY LTLIBRPATHY global_top_auxdir LIBOBJS LTLIBOBJS' |
---|
276 | ac_subst_files='' |
---|
277 | |
---|
278 | # Initialize some variables set by options. |
---|
279 | ac_init_help= |
---|
280 | ac_init_version=false |
---|
281 | # The variables have the same names as the options, with |
---|
282 | # dashes changed to underlines. |
---|
283 | cache_file=/dev/null |
---|
284 | exec_prefix=NONE |
---|
285 | no_create= |
---|
286 | no_recursion= |
---|
287 | prefix=NONE |
---|
288 | program_prefix=NONE |
---|
289 | program_suffix=NONE |
---|
290 | program_transform_name=s,x,x, |
---|
291 | silent= |
---|
292 | site= |
---|
293 | srcdir= |
---|
294 | verbose= |
---|
295 | x_includes=NONE |
---|
296 | x_libraries=NONE |
---|
297 | |
---|
298 | # Installation directory options. |
---|
299 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
300 | # and all the variables that are supposed to be based on exec_prefix |
---|
301 | # by default will actually change. |
---|
302 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
303 | bindir='${exec_prefix}/bin' |
---|
304 | sbindir='${exec_prefix}/sbin' |
---|
305 | libexecdir='${exec_prefix}/libexec' |
---|
306 | datadir='${prefix}/share' |
---|
307 | sysconfdir='${prefix}/etc' |
---|
308 | sharedstatedir='${prefix}/com' |
---|
309 | localstatedir='${prefix}/var' |
---|
310 | libdir='${exec_prefix}/lib' |
---|
311 | includedir='${prefix}/include' |
---|
312 | oldincludedir='/usr/include' |
---|
313 | infodir='${prefix}/info' |
---|
314 | mandir='${prefix}/man' |
---|
315 | |
---|
316 | ac_prev= |
---|
317 | for ac_option |
---|
318 | do |
---|
319 | # If the previous option needs an argument, assign it. |
---|
320 | if test -n "$ac_prev"; then |
---|
321 | eval "$ac_prev=\$ac_option" |
---|
322 | ac_prev= |
---|
323 | continue |
---|
324 | fi |
---|
325 | |
---|
326 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
327 | |
---|
328 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
329 | |
---|
330 | case $ac_option in |
---|
331 | |
---|
332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
333 | ac_prev=bindir ;; |
---|
334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
335 | bindir=$ac_optarg ;; |
---|
336 | |
---|
337 | -build | --build | --buil | --bui | --bu) |
---|
338 | ac_prev=build_alias ;; |
---|
339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
340 | build_alias=$ac_optarg ;; |
---|
341 | |
---|
342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
344 | ac_prev=cache_file ;; |
---|
345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
347 | cache_file=$ac_optarg ;; |
---|
348 | |
---|
349 | --config-cache | -C) |
---|
350 | cache_file=config.cache ;; |
---|
351 | |
---|
352 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
353 | ac_prev=datadir ;; |
---|
354 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
355 | | --da=*) |
---|
356 | datadir=$ac_optarg ;; |
---|
357 | |
---|
358 | -disable-* | --disable-*) |
---|
359 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
360 | # Reject names that are not valid shell variable names. |
---|
361 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
362 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
363 | { (exit 1); exit 1; }; } |
---|
364 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
365 | eval "enable_$ac_feature=no" ;; |
---|
366 | |
---|
367 | -enable-* | --enable-*) |
---|
368 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
369 | # Reject names that are not valid shell variable names. |
---|
370 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
371 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
372 | { (exit 1); exit 1; }; } |
---|
373 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
374 | case $ac_option in |
---|
375 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
376 | *) ac_optarg=yes ;; |
---|
377 | esac |
---|
378 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
379 | |
---|
380 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
381 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
382 | | --exec | --exe | --ex) |
---|
383 | ac_prev=exec_prefix ;; |
---|
384 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
385 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
386 | | --exec=* | --exe=* | --ex=*) |
---|
387 | exec_prefix=$ac_optarg ;; |
---|
388 | |
---|
389 | -gas | --gas | --ga | --g) |
---|
390 | # Obsolete; use --with-gas. |
---|
391 | with_gas=yes ;; |
---|
392 | |
---|
393 | -help | --help | --hel | --he | -h) |
---|
394 | ac_init_help=long ;; |
---|
395 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
396 | ac_init_help=recursive ;; |
---|
397 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
398 | ac_init_help=short ;; |
---|
399 | |
---|
400 | -host | --host | --hos | --ho) |
---|
401 | ac_prev=host_alias ;; |
---|
402 | -host=* | --host=* | --hos=* | --ho=*) |
---|
403 | host_alias=$ac_optarg ;; |
---|
404 | |
---|
405 | -includedir | --includedir | --includedi | --included | --include \ |
---|
406 | | --includ | --inclu | --incl | --inc) |
---|
407 | ac_prev=includedir ;; |
---|
408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
409 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
410 | includedir=$ac_optarg ;; |
---|
411 | |
---|
412 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
413 | ac_prev=infodir ;; |
---|
414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
415 | infodir=$ac_optarg ;; |
---|
416 | |
---|
417 | -libdir | --libdir | --libdi | --libd) |
---|
418 | ac_prev=libdir ;; |
---|
419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
420 | libdir=$ac_optarg ;; |
---|
421 | |
---|
422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
423 | | --libexe | --libex | --libe) |
---|
424 | ac_prev=libexecdir ;; |
---|
425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
426 | | --libexe=* | --libex=* | --libe=*) |
---|
427 | libexecdir=$ac_optarg ;; |
---|
428 | |
---|
429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
430 | | --localstate | --localstat | --localsta | --localst \ |
---|
431 | | --locals | --local | --loca | --loc | --lo) |
---|
432 | ac_prev=localstatedir ;; |
---|
433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
436 | localstatedir=$ac_optarg ;; |
---|
437 | |
---|
438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
439 | ac_prev=mandir ;; |
---|
440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
441 | mandir=$ac_optarg ;; |
---|
442 | |
---|
443 | -nfp | --nfp | --nf) |
---|
444 | # Obsolete; use --without-fp. |
---|
445 | with_fp=no ;; |
---|
446 | |
---|
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
448 | | --no-cr | --no-c | -n) |
---|
449 | no_create=yes ;; |
---|
450 | |
---|
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
453 | no_recursion=yes ;; |
---|
454 | |
---|
455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
457 | | --oldin | --oldi | --old | --ol | --o) |
---|
458 | ac_prev=oldincludedir ;; |
---|
459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
462 | oldincludedir=$ac_optarg ;; |
---|
463 | |
---|
464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
465 | ac_prev=prefix ;; |
---|
466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
467 | prefix=$ac_optarg ;; |
---|
468 | |
---|
469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
470 | | --program-pre | --program-pr | --program-p) |
---|
471 | ac_prev=program_prefix ;; |
---|
472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
474 | program_prefix=$ac_optarg ;; |
---|
475 | |
---|
476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
477 | | --program-suf | --program-su | --program-s) |
---|
478 | ac_prev=program_suffix ;; |
---|
479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
481 | program_suffix=$ac_optarg ;; |
---|
482 | |
---|
483 | -program-transform-name | --program-transform-name \ |
---|
484 | | --program-transform-nam | --program-transform-na \ |
---|
485 | | --program-transform-n | --program-transform- \ |
---|
486 | | --program-transform | --program-transfor \ |
---|
487 | | --program-transfo | --program-transf \ |
---|
488 | | --program-trans | --program-tran \ |
---|
489 | | --progr-tra | --program-tr | --program-t) |
---|
490 | ac_prev=program_transform_name ;; |
---|
491 | -program-transform-name=* | --program-transform-name=* \ |
---|
492 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
493 | | --program-transform-n=* | --program-transform-=* \ |
---|
494 | | --program-transform=* | --program-transfor=* \ |
---|
495 | | --program-transfo=* | --program-transf=* \ |
---|
496 | | --program-trans=* | --program-tran=* \ |
---|
497 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
498 | program_transform_name=$ac_optarg ;; |
---|
499 | |
---|
500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
501 | | -silent | --silent | --silen | --sile | --sil) |
---|
502 | silent=yes ;; |
---|
503 | |
---|
504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
505 | ac_prev=sbindir ;; |
---|
506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
507 | | --sbi=* | --sb=*) |
---|
508 | sbindir=$ac_optarg ;; |
---|
509 | |
---|
510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
512 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
513 | | --sha | --sh) |
---|
514 | ac_prev=sharedstatedir ;; |
---|
515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
518 | | --sha=* | --sh=*) |
---|
519 | sharedstatedir=$ac_optarg ;; |
---|
520 | |
---|
521 | -site | --site | --sit) |
---|
522 | ac_prev=site ;; |
---|
523 | -site=* | --site=* | --sit=*) |
---|
524 | site=$ac_optarg ;; |
---|
525 | |
---|
526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
527 | ac_prev=srcdir ;; |
---|
528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
529 | srcdir=$ac_optarg ;; |
---|
530 | |
---|
531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
532 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
533 | ac_prev=sysconfdir ;; |
---|
534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
536 | sysconfdir=$ac_optarg ;; |
---|
537 | |
---|
538 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
539 | ac_prev=target_alias ;; |
---|
540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
541 | target_alias=$ac_optarg ;; |
---|
542 | |
---|
543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
544 | verbose=yes ;; |
---|
545 | |
---|
546 | -version | --version | --versio | --versi | --vers | -V) |
---|
547 | ac_init_version=: ;; |
---|
548 | |
---|
549 | -with-* | --with-*) |
---|
550 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
551 | # Reject names that are not valid shell variable names. |
---|
552 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
553 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
554 | { (exit 1); exit 1; }; } |
---|
555 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
556 | case $ac_option in |
---|
557 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
558 | *) ac_optarg=yes ;; |
---|
559 | esac |
---|
560 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
561 | |
---|
562 | -without-* | --without-*) |
---|
563 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
564 | # Reject names that are not valid shell variable names. |
---|
565 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
566 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
567 | { (exit 1); exit 1; }; } |
---|
568 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
569 | eval "with_$ac_package=no" ;; |
---|
570 | |
---|
571 | --x) |
---|
572 | # Obsolete; use --with-x. |
---|
573 | with_x=yes ;; |
---|
574 | |
---|
575 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
576 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
577 | ac_prev=x_includes ;; |
---|
578 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
579 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
580 | x_includes=$ac_optarg ;; |
---|
581 | |
---|
582 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
583 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
584 | ac_prev=x_libraries ;; |
---|
585 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
586 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
587 | x_libraries=$ac_optarg ;; |
---|
588 | |
---|
589 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
590 | Try \`$0 --help' for more information." >&2 |
---|
591 | { (exit 1); exit 1; }; } |
---|
592 | ;; |
---|
593 | |
---|
594 | *=*) |
---|
595 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
596 | # Reject names that are not valid shell variable names. |
---|
597 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
598 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
599 | { (exit 1); exit 1; }; } |
---|
600 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
601 | eval "$ac_envvar='$ac_optarg'" |
---|
602 | export $ac_envvar ;; |
---|
603 | |
---|
604 | *) |
---|
605 | # FIXME: should be removed in autoconf 3.0. |
---|
606 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
607 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
608 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
609 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
610 | ;; |
---|
611 | |
---|
612 | esac |
---|
613 | done |
---|
614 | |
---|
615 | if test -n "$ac_prev"; then |
---|
616 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
617 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
618 | { (exit 1); exit 1; }; } |
---|
619 | fi |
---|
620 | |
---|
621 | # Be sure to have absolute paths. |
---|
622 | for ac_var in exec_prefix prefix |
---|
623 | do |
---|
624 | eval ac_val=$`echo $ac_var` |
---|
625 | case $ac_val in |
---|
626 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
627 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
628 | { (exit 1); exit 1; }; };; |
---|
629 | esac |
---|
630 | done |
---|
631 | |
---|
632 | # Be sure to have absolute paths. |
---|
633 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
634 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
635 | do |
---|
636 | eval ac_val=$`echo $ac_var` |
---|
637 | case $ac_val in |
---|
638 | [\\/$]* | ?:[\\/]* ) ;; |
---|
639 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
640 | { (exit 1); exit 1; }; };; |
---|
641 | esac |
---|
642 | done |
---|
643 | |
---|
644 | # There might be people who depend on the old broken behavior: `$host' |
---|
645 | # used to hold the argument of --host etc. |
---|
646 | # FIXME: To remove some day. |
---|
647 | build=$build_alias |
---|
648 | host=$host_alias |
---|
649 | target=$target_alias |
---|
650 | |
---|
651 | # FIXME: To remove some day. |
---|
652 | if test "x$host_alias" != x; then |
---|
653 | if test "x$build_alias" = x; then |
---|
654 | cross_compiling=maybe |
---|
655 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
656 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
657 | elif test "x$build_alias" != "x$host_alias"; then |
---|
658 | cross_compiling=yes |
---|
659 | fi |
---|
660 | fi |
---|
661 | |
---|
662 | ac_tool_prefix= |
---|
663 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
664 | |
---|
665 | test "$silent" = yes && exec 6>/dev/null |
---|
666 | |
---|
667 | |
---|
668 | # Find the source files, if location was not specified. |
---|
669 | if test -z "$srcdir"; then |
---|
670 | ac_srcdir_defaulted=yes |
---|
671 | # Try the directory containing this script, then its parent. |
---|
672 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
673 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
674 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
675 | X"$0" : 'X\(//\)$' \| \ |
---|
676 | X"$0" : 'X\(/\)' \| \ |
---|
677 | . : '\(.\)' 2>/dev/null || |
---|
678 | echo X"$0" | |
---|
679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
681 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
682 | /^X\(\/\).*/{ s//\1/; q; } |
---|
683 | s/.*/./; q'` |
---|
684 | srcdir=$ac_confdir |
---|
685 | if test ! -r $srcdir/$ac_unique_file; then |
---|
686 | srcdir=.. |
---|
687 | fi |
---|
688 | else |
---|
689 | ac_srcdir_defaulted=no |
---|
690 | fi |
---|
691 | if test ! -r $srcdir/$ac_unique_file; then |
---|
692 | if test "$ac_srcdir_defaulted" = yes; then |
---|
693 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
694 | { (exit 1); exit 1; }; } |
---|
695 | else |
---|
696 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
697 | { (exit 1); exit 1; }; } |
---|
698 | fi |
---|
699 | fi |
---|
700 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
701 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
702 | { (exit 1); exit 1; }; } |
---|
703 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
704 | ac_env_build_alias_set=${build_alias+set} |
---|
705 | ac_env_build_alias_value=$build_alias |
---|
706 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
707 | ac_cv_env_build_alias_value=$build_alias |
---|
708 | ac_env_host_alias_set=${host_alias+set} |
---|
709 | ac_env_host_alias_value=$host_alias |
---|
710 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
711 | ac_cv_env_host_alias_value=$host_alias |
---|
712 | ac_env_target_alias_set=${target_alias+set} |
---|
713 | ac_env_target_alias_value=$target_alias |
---|
714 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
715 | ac_cv_env_target_alias_value=$target_alias |
---|
716 | ac_env_CC_set=${CC+set} |
---|
717 | ac_env_CC_value=$CC |
---|
718 | ac_cv_env_CC_set=${CC+set} |
---|
719 | ac_cv_env_CC_value=$CC |
---|
720 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
721 | ac_env_CFLAGS_value=$CFLAGS |
---|
722 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
723 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
724 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
725 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
726 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
727 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
729 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
732 | |
---|
733 | # |
---|
734 | # Report the --help message. |
---|
735 | # |
---|
736 | if test "$ac_init_help" = "long"; then |
---|
737 | # Omit some internal or obsolete options to make the list less imposing. |
---|
738 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
739 | cat <<_ACEOF |
---|
740 | \`configure' configures this package to adapt to many kinds of systems. |
---|
741 | |
---|
742 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
743 | |
---|
744 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
745 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
746 | |
---|
747 | Defaults for the options are specified in brackets. |
---|
748 | |
---|
749 | Configuration: |
---|
750 | -h, --help display this help and exit |
---|
751 | --help=short display options specific to this package |
---|
752 | --help=recursive display the short help of all the included packages |
---|
753 | -V, --version display version information and exit |
---|
754 | -q, --quiet, --silent do not print \`checking...' messages |
---|
755 | --cache-file=FILE cache test results in FILE [disabled] |
---|
756 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
757 | -n, --no-create do not create output files |
---|
758 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
759 | |
---|
760 | _ACEOF |
---|
761 | |
---|
762 | cat <<_ACEOF |
---|
763 | Installation directories: |
---|
764 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
765 | [$ac_default_prefix] |
---|
766 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
767 | [PREFIX] |
---|
768 | |
---|
769 | By default, \`make install' will install all the files in |
---|
770 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
771 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
772 | for instance \`--prefix=\$HOME'. |
---|
773 | |
---|
774 | For better control, use the options below. |
---|
775 | |
---|
776 | Fine tuning of the installation directories: |
---|
777 | --bindir=DIR user executables [EPREFIX/bin] |
---|
778 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
779 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
780 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
781 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
782 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
783 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
784 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
785 | --includedir=DIR C header files [PREFIX/include] |
---|
786 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
787 | --infodir=DIR info documentation [PREFIX/info] |
---|
788 | --mandir=DIR man documentation [PREFIX/man] |
---|
789 | _ACEOF |
---|
790 | |
---|
791 | cat <<\_ACEOF |
---|
792 | |
---|
793 | Program names: |
---|
794 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
795 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
796 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
797 | |
---|
798 | System types: |
---|
799 | --build=BUILD configure for building on BUILD [guessed] |
---|
800 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
801 | _ACEOF |
---|
802 | fi |
---|
803 | |
---|
804 | if test -n "$ac_init_help"; then |
---|
805 | |
---|
806 | cat <<\_ACEOF |
---|
807 | |
---|
808 | Optional Features: |
---|
809 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
810 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
811 | --disable-dependency-tracking Speeds up one-time builds |
---|
812 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
813 | --disable-rpath do not hardcode runtime library paths |
---|
814 | |
---|
815 | Optional Packages: |
---|
816 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
817 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
818 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
---|
819 | --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib |
---|
820 | --without-librpathx-prefix don't search for librpathx in includedir and libdir |
---|
821 | --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib |
---|
822 | --without-librpathy-prefix don't search for librpathy in includedir and libdir |
---|
823 | |
---|
824 | Some influential environment variables: |
---|
825 | CC C compiler command |
---|
826 | CFLAGS C compiler flags |
---|
827 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
828 | nonstandard directory <lib dir> |
---|
829 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
830 | headers in a nonstandard directory <include dir> |
---|
831 | |
---|
832 | Use these variables to override the choices made by `configure' or to help |
---|
833 | it to find libraries and programs with nonstandard names/locations. |
---|
834 | |
---|
835 | _ACEOF |
---|
836 | fi |
---|
837 | |
---|
838 | if test "$ac_init_help" = "recursive"; then |
---|
839 | # If there are subdirs, report their specific --help. |
---|
840 | ac_popdir=`pwd` |
---|
841 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
842 | test -d $ac_dir || continue |
---|
843 | ac_builddir=. |
---|
844 | |
---|
845 | if test "$ac_dir" != .; then |
---|
846 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
847 | # A "../" for each directory in $ac_dir_suffix. |
---|
848 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
849 | else |
---|
850 | ac_dir_suffix= ac_top_builddir= |
---|
851 | fi |
---|
852 | |
---|
853 | case $srcdir in |
---|
854 | .) # No --srcdir option. We are building in place. |
---|
855 | ac_srcdir=. |
---|
856 | if test -z "$ac_top_builddir"; then |
---|
857 | ac_top_srcdir=. |
---|
858 | else |
---|
859 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
860 | fi ;; |
---|
861 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
862 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
863 | ac_top_srcdir=$srcdir ;; |
---|
864 | *) # Relative path. |
---|
865 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
866 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
867 | esac |
---|
868 | case "$ac_dir" in |
---|
869 | .) ac_abs_builddir=$ac_builddir;; |
---|
870 | *) |
---|
871 | case $ac_builddir in |
---|
872 | .) ac_abs_builddir="$ac_dir";; |
---|
873 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; |
---|
874 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; |
---|
875 | esac;; |
---|
876 | esac |
---|
877 | case "$ac_dir" in |
---|
878 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
879 | *) |
---|
880 | case ${ac_top_builddir}. in |
---|
881 | .) ac_abs_top_builddir="$ac_dir";; |
---|
882 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
883 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; |
---|
884 | esac;; |
---|
885 | esac |
---|
886 | case "$ac_dir" in |
---|
887 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
888 | *) |
---|
889 | case $ac_srcdir in |
---|
890 | .) ac_abs_srcdir="$ac_dir";; |
---|
891 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
892 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; |
---|
893 | esac;; |
---|
894 | esac |
---|
895 | case "$ac_dir" in |
---|
896 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
897 | *) |
---|
898 | case $ac_top_srcdir in |
---|
899 | .) ac_abs_top_srcdir="$ac_dir";; |
---|
900 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
901 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; |
---|
902 | esac;; |
---|
903 | esac |
---|
904 | |
---|
905 | cd $ac_dir |
---|
906 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
907 | if test -f $ac_srcdir/configure.gnu; then |
---|
908 | echo |
---|
909 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
910 | elif test -f $ac_srcdir/configure; then |
---|
911 | echo |
---|
912 | $SHELL $ac_srcdir/configure --help=recursive |
---|
913 | elif test -f $ac_srcdir/configure.ac || |
---|
914 | test -f $ac_srcdir/configure.in; then |
---|
915 | echo |
---|
916 | $ac_configure --help |
---|
917 | else |
---|
918 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
919 | fi |
---|
920 | cd $ac_popdir |
---|
921 | done |
---|
922 | fi |
---|
923 | |
---|
924 | test -n "$ac_init_help" && exit 0 |
---|
925 | if $ac_init_version; then |
---|
926 | cat <<\_ACEOF |
---|
927 | |
---|
928 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
929 | This configure script is free software; the Free Software Foundation |
---|
930 | gives unlimited permission to copy, distribute and modify it. |
---|
931 | _ACEOF |
---|
932 | exit 0 |
---|
933 | fi |
---|
934 | exec 5>config.log |
---|
935 | cat >&5 <<_ACEOF |
---|
936 | This file contains any messages produced by compilers while |
---|
937 | running configure, to aid debugging if configure makes a mistake. |
---|
938 | |
---|
939 | It was created by $as_me, which was |
---|
940 | generated by GNU Autoconf 2.58. Invocation command line was |
---|
941 | |
---|
942 | $ $0 $@ |
---|
943 | |
---|
944 | _ACEOF |
---|
945 | { |
---|
946 | cat <<_ASUNAME |
---|
947 | ## --------- ## |
---|
948 | ## Platform. ## |
---|
949 | ## --------- ## |
---|
950 | |
---|
951 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
952 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
953 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
954 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
955 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
956 | |
---|
957 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
958 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
959 | |
---|
960 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
961 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
962 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
963 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
964 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
965 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
966 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
967 | |
---|
968 | _ASUNAME |
---|
969 | |
---|
970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
971 | for as_dir in $PATH |
---|
972 | do |
---|
973 | IFS=$as_save_IFS |
---|
974 | test -z "$as_dir" && as_dir=. |
---|
975 | echo "PATH: $as_dir" |
---|
976 | done |
---|
977 | |
---|
978 | } >&5 |
---|
979 | |
---|
980 | cat >&5 <<_ACEOF |
---|
981 | |
---|
982 | |
---|
983 | ## ----------- ## |
---|
984 | ## Core tests. ## |
---|
985 | ## ----------- ## |
---|
986 | |
---|
987 | _ACEOF |
---|
988 | |
---|
989 | |
---|
990 | # Keep a trace of the command line. |
---|
991 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
992 | # Strip out --silent because we don't want to record it for future runs. |
---|
993 | # Also quote any args containing shell meta-characters. |
---|
994 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
995 | ac_configure_args= |
---|
996 | ac_configure_args0= |
---|
997 | ac_configure_args1= |
---|
998 | ac_sep= |
---|
999 | ac_must_keep_next=false |
---|
1000 | for ac_pass in 1 2 |
---|
1001 | do |
---|
1002 | for ac_arg |
---|
1003 | do |
---|
1004 | case $ac_arg in |
---|
1005 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1006 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1007 | | -silent | --silent | --silen | --sile | --sil) |
---|
1008 | continue ;; |
---|
1009 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1010 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1011 | esac |
---|
1012 | case $ac_pass in |
---|
1013 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1014 | 2) |
---|
1015 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1016 | if test $ac_must_keep_next = true; then |
---|
1017 | ac_must_keep_next=false # Got value, back to normal. |
---|
1018 | else |
---|
1019 | case $ac_arg in |
---|
1020 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1021 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1022 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1023 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1024 | case "$ac_configure_args0 " in |
---|
1025 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1026 | esac |
---|
1027 | ;; |
---|
1028 | -* ) ac_must_keep_next=true ;; |
---|
1029 | esac |
---|
1030 | fi |
---|
1031 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1032 | # Get rid of the leading space. |
---|
1033 | ac_sep=" " |
---|
1034 | ;; |
---|
1035 | esac |
---|
1036 | done |
---|
1037 | done |
---|
1038 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1039 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1040 | |
---|
1041 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1042 | # config.log. We remove comments because anyway the quotes in there |
---|
1043 | # would cause problems or look ugly. |
---|
1044 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1045 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1046 | trap 'exit_status=$? |
---|
1047 | # Save into config.log some information that might help in debugging. |
---|
1048 | { |
---|
1049 | echo |
---|
1050 | |
---|
1051 | cat <<\_ASBOX |
---|
1052 | ## ---------------- ## |
---|
1053 | ## Cache variables. ## |
---|
1054 | ## ---------------- ## |
---|
1055 | _ASBOX |
---|
1056 | echo |
---|
1057 | # The following way of writing the cache mishandles newlines in values, |
---|
1058 | { |
---|
1059 | (set) 2>&1 | |
---|
1060 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1061 | *ac_space=\ *) |
---|
1062 | sed -n \ |
---|
1063 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1064 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1065 | ;; |
---|
1066 | *) |
---|
1067 | sed -n \ |
---|
1068 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1069 | ;; |
---|
1070 | esac; |
---|
1071 | } |
---|
1072 | echo |
---|
1073 | |
---|
1074 | cat <<\_ASBOX |
---|
1075 | ## ----------------- ## |
---|
1076 | ## Output variables. ## |
---|
1077 | ## ----------------- ## |
---|
1078 | _ASBOX |
---|
1079 | echo |
---|
1080 | for ac_var in $ac_subst_vars |
---|
1081 | do |
---|
1082 | eval ac_val=$`echo $ac_var` |
---|
1083 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1084 | done | sort |
---|
1085 | echo |
---|
1086 | |
---|
1087 | if test -n "$ac_subst_files"; then |
---|
1088 | cat <<\_ASBOX |
---|
1089 | ## ------------- ## |
---|
1090 | ## Output files. ## |
---|
1091 | ## ------------- ## |
---|
1092 | _ASBOX |
---|
1093 | echo |
---|
1094 | for ac_var in $ac_subst_files |
---|
1095 | do |
---|
1096 | eval ac_val=$`echo $ac_var` |
---|
1097 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1098 | done | sort |
---|
1099 | echo |
---|
1100 | fi |
---|
1101 | |
---|
1102 | if test -s confdefs.h; then |
---|
1103 | cat <<\_ASBOX |
---|
1104 | ## ----------- ## |
---|
1105 | ## confdefs.h. ## |
---|
1106 | ## ----------- ## |
---|
1107 | _ASBOX |
---|
1108 | echo |
---|
1109 | sed "/^$/d" confdefs.h | sort |
---|
1110 | echo |
---|
1111 | fi |
---|
1112 | test "$ac_signal" != 0 && |
---|
1113 | echo "$as_me: caught signal $ac_signal" |
---|
1114 | echo "$as_me: exit $exit_status" |
---|
1115 | } >&5 |
---|
1116 | rm -f core *.core && |
---|
1117 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1118 | exit $exit_status |
---|
1119 | ' 0 |
---|
1120 | for ac_signal in 1 2 13 15; do |
---|
1121 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1122 | done |
---|
1123 | ac_signal=0 |
---|
1124 | |
---|
1125 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1126 | rm -rf conftest* confdefs.h |
---|
1127 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1128 | echo >confdefs.h |
---|
1129 | |
---|
1130 | # Predefined preprocessor variables. |
---|
1131 | |
---|
1132 | cat >>confdefs.h <<_ACEOF |
---|
1133 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1134 | _ACEOF |
---|
1135 | |
---|
1136 | |
---|
1137 | cat >>confdefs.h <<_ACEOF |
---|
1138 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1139 | _ACEOF |
---|
1140 | |
---|
1141 | |
---|
1142 | cat >>confdefs.h <<_ACEOF |
---|
1143 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1144 | _ACEOF |
---|
1145 | |
---|
1146 | |
---|
1147 | cat >>confdefs.h <<_ACEOF |
---|
1148 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1149 | _ACEOF |
---|
1150 | |
---|
1151 | |
---|
1152 | cat >>confdefs.h <<_ACEOF |
---|
1153 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1154 | _ACEOF |
---|
1155 | |
---|
1156 | |
---|
1157 | # Let the site file select an alternate cache file if it wants to. |
---|
1158 | # Prefer explicitly selected file to automatically selected ones. |
---|
1159 | if test -z "$CONFIG_SITE"; then |
---|
1160 | if test "x$prefix" != xNONE; then |
---|
1161 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1162 | else |
---|
1163 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1164 | fi |
---|
1165 | fi |
---|
1166 | for ac_site_file in $CONFIG_SITE; do |
---|
1167 | if test -r "$ac_site_file"; then |
---|
1168 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1169 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1170 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1171 | . "$ac_site_file" |
---|
1172 | fi |
---|
1173 | done |
---|
1174 | |
---|
1175 | if test -r "$cache_file"; then |
---|
1176 | # Some versions of bash will fail to source /dev/null (special |
---|
1177 | # files actually), so we avoid doing that. |
---|
1178 | if test -f "$cache_file"; then |
---|
1179 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1180 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1181 | case $cache_file in |
---|
1182 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1183 | *) . ./$cache_file;; |
---|
1184 | esac |
---|
1185 | fi |
---|
1186 | else |
---|
1187 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1188 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1189 | >$cache_file |
---|
1190 | fi |
---|
1191 | |
---|
1192 | # Check that the precious variables saved in the cache have kept the same |
---|
1193 | # value. |
---|
1194 | ac_cache_corrupted=false |
---|
1195 | for ac_var in `(set) 2>&1 | |
---|
1196 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1197 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1198 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1199 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1200 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1201 | case $ac_old_set,$ac_new_set in |
---|
1202 | set,) |
---|
1203 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1204 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1205 | ac_cache_corrupted=: ;; |
---|
1206 | ,set) |
---|
1207 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1208 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1209 | ac_cache_corrupted=: ;; |
---|
1210 | ,);; |
---|
1211 | *) |
---|
1212 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1213 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1214 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1215 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1216 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1217 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1218 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1219 | ac_cache_corrupted=: |
---|
1220 | fi;; |
---|
1221 | esac |
---|
1222 | # Pass precious variables to config.status. |
---|
1223 | if test "$ac_new_set" = set; then |
---|
1224 | case $ac_new_val in |
---|
1225 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1226 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1227 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1228 | esac |
---|
1229 | case " $ac_configure_args " in |
---|
1230 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1231 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1232 | esac |
---|
1233 | fi |
---|
1234 | done |
---|
1235 | if $ac_cache_corrupted; then |
---|
1236 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1237 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1238 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1239 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1240 | { (exit 1); exit 1; }; } |
---|
1241 | fi |
---|
1242 | |
---|
1243 | ac_ext=c |
---|
1244 | ac_cpp='$CPP $CPPFLAGS' |
---|
1245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1248 | |
---|
1249 | |
---|
1250 | |
---|
1251 | |
---|
1252 | |
---|
1253 | |
---|
1254 | |
---|
1255 | |
---|
1256 | |
---|
1257 | |
---|
1258 | |
---|
1259 | |
---|
1260 | |
---|
1261 | |
---|
1262 | |
---|
1263 | |
---|
1264 | |
---|
1265 | |
---|
1266 | |
---|
1267 | ac_aux_dir= |
---|
1268 | for ac_dir in ../../../config $srcdir/../../../config; do |
---|
1269 | if test -f $ac_dir/install-sh; then |
---|
1270 | ac_aux_dir=$ac_dir |
---|
1271 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1272 | break |
---|
1273 | elif test -f $ac_dir/install.sh; then |
---|
1274 | ac_aux_dir=$ac_dir |
---|
1275 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1276 | break |
---|
1277 | elif test -f $ac_dir/shtool; then |
---|
1278 | ac_aux_dir=$ac_dir |
---|
1279 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1280 | break |
---|
1281 | fi |
---|
1282 | done |
---|
1283 | if test -z "$ac_aux_dir"; then |
---|
1284 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&5 |
---|
1285 | echo "$as_me: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&2;} |
---|
1286 | { (exit 1); exit 1; }; } |
---|
1287 | fi |
---|
1288 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1289 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1290 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1291 | |
---|
1292 | am__api_version="1.7" |
---|
1293 | # Find a good install program. We prefer a C program (faster), |
---|
1294 | # so one script is as good as another. But avoid the broken or |
---|
1295 | # incompatible versions: |
---|
1296 | # SysV /etc/install, /usr/sbin/install |
---|
1297 | # SunOS /usr/etc/install |
---|
1298 | # IRIX /sbin/install |
---|
1299 | # AIX /bin/install |
---|
1300 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1301 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1302 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1303 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1304 | # OS/2's system install, which has a completely different semantic |
---|
1305 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1306 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1307 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1308 | if test -z "$INSTALL"; then |
---|
1309 | if test "${ac_cv_path_install+set}" = set; then |
---|
1310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1311 | else |
---|
1312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1313 | for as_dir in $PATH |
---|
1314 | do |
---|
1315 | IFS=$as_save_IFS |
---|
1316 | test -z "$as_dir" && as_dir=. |
---|
1317 | # Account for people who put trailing slashes in PATH elements. |
---|
1318 | case $as_dir/ in |
---|
1319 | ./ | .// | /cC/* | \ |
---|
1320 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1321 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1322 | /usr/ucb/* ) ;; |
---|
1323 | *) |
---|
1324 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1325 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1326 | # by default. |
---|
1327 | for ac_prog in ginstall scoinst install; do |
---|
1328 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1329 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1330 | if test $ac_prog = install && |
---|
1331 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1332 | # AIX install. It has an incompatible calling convention. |
---|
1333 | : |
---|
1334 | elif test $ac_prog = install && |
---|
1335 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1336 | # program-specific install script used by HP pwplus--don't use. |
---|
1337 | : |
---|
1338 | else |
---|
1339 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1340 | break 3 |
---|
1341 | fi |
---|
1342 | fi |
---|
1343 | done |
---|
1344 | done |
---|
1345 | ;; |
---|
1346 | esac |
---|
1347 | done |
---|
1348 | |
---|
1349 | |
---|
1350 | fi |
---|
1351 | if test "${ac_cv_path_install+set}" = set; then |
---|
1352 | INSTALL=$ac_cv_path_install |
---|
1353 | else |
---|
1354 | # As a last resort, use the slow shell script. We don't cache a |
---|
1355 | # path for INSTALL within a source directory, because that will |
---|
1356 | # break other packages using the cache if that directory is |
---|
1357 | # removed, or if the path is relative. |
---|
1358 | INSTALL=$ac_install_sh |
---|
1359 | fi |
---|
1360 | fi |
---|
1361 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1362 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1363 | |
---|
1364 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1365 | # It thinks the first close brace ends the variable substitution. |
---|
1366 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1367 | |
---|
1368 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1369 | |
---|
1370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1371 | |
---|
1372 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1373 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1374 | # Just in case |
---|
1375 | sleep 1 |
---|
1376 | echo timestamp > conftest.file |
---|
1377 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1378 | # arguments. Must try -L first in case configure is actually a |
---|
1379 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1380 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1381 | # directory). |
---|
1382 | if ( |
---|
1383 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1384 | if test "$*" = "X"; then |
---|
1385 | # -L didn't work. |
---|
1386 | set X `ls -t $srcdir/configure conftest.file` |
---|
1387 | fi |
---|
1388 | rm -f conftest.file |
---|
1389 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1390 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1391 | |
---|
1392 | # If neither matched, then we have a broken ls. This can happen |
---|
1393 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1394 | # broken ls alias from the environment. This has actually |
---|
1395 | # happened. Such a system could not be considered "sane". |
---|
1396 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1397 | alias in your environment" >&5 |
---|
1398 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1399 | alias in your environment" >&2;} |
---|
1400 | { (exit 1); exit 1; }; } |
---|
1401 | fi |
---|
1402 | |
---|
1403 | test "$2" = conftest.file |
---|
1404 | ) |
---|
1405 | then |
---|
1406 | # Ok. |
---|
1407 | : |
---|
1408 | else |
---|
1409 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1410 | Check your system clock" >&5 |
---|
1411 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1412 | Check your system clock" >&2;} |
---|
1413 | { (exit 1); exit 1; }; } |
---|
1414 | fi |
---|
1415 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1416 | echo "${ECHO_T}yes" >&6 |
---|
1417 | test "$program_prefix" != NONE && |
---|
1418 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1419 | # Use a double $ so make ignores it. |
---|
1420 | test "$program_suffix" != NONE && |
---|
1421 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1422 | # Double any \ or $. echo might interpret backslashes. |
---|
1423 | # By default was `s,x,x', remove it if useless. |
---|
1424 | cat <<\_ACEOF >conftest.sed |
---|
1425 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1426 | _ACEOF |
---|
1427 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1428 | rm conftest.sed |
---|
1429 | |
---|
1430 | |
---|
1431 | # expand $ac_aux_dir to an absolute path |
---|
1432 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1433 | |
---|
1434 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1435 | # Use eval to expand $SHELL |
---|
1436 | if eval "$MISSING --run true"; then |
---|
1437 | am_missing_run="$MISSING --run " |
---|
1438 | else |
---|
1439 | am_missing_run= |
---|
1440 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1441 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1442 | fi |
---|
1443 | |
---|
1444 | for ac_prog in gawk mawk nawk awk |
---|
1445 | do |
---|
1446 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1447 | set dummy $ac_prog; ac_word=$2 |
---|
1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1450 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1452 | else |
---|
1453 | if test -n "$AWK"; then |
---|
1454 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1455 | else |
---|
1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1457 | for as_dir in $PATH |
---|
1458 | do |
---|
1459 | IFS=$as_save_IFS |
---|
1460 | test -z "$as_dir" && as_dir=. |
---|
1461 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1463 | ac_cv_prog_AWK="$ac_prog" |
---|
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1465 | break 2 |
---|
1466 | fi |
---|
1467 | done |
---|
1468 | done |
---|
1469 | |
---|
1470 | fi |
---|
1471 | fi |
---|
1472 | AWK=$ac_cv_prog_AWK |
---|
1473 | if test -n "$AWK"; then |
---|
1474 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1475 | echo "${ECHO_T}$AWK" >&6 |
---|
1476 | else |
---|
1477 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1478 | echo "${ECHO_T}no" >&6 |
---|
1479 | fi |
---|
1480 | |
---|
1481 | test -n "$AWK" && break |
---|
1482 | done |
---|
1483 | |
---|
1484 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1485 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1486 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1487 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1489 | else |
---|
1490 | cat >conftest.make <<\_ACEOF |
---|
1491 | all: |
---|
1492 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1493 | _ACEOF |
---|
1494 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1495 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1496 | if test -n "$ac_maketemp"; then |
---|
1497 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1498 | else |
---|
1499 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1500 | fi |
---|
1501 | rm -f conftest.make |
---|
1502 | fi |
---|
1503 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1504 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1505 | echo "${ECHO_T}yes" >&6 |
---|
1506 | SET_MAKE= |
---|
1507 | else |
---|
1508 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1509 | echo "${ECHO_T}no" >&6 |
---|
1510 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1511 | fi |
---|
1512 | |
---|
1513 | rm -rf .tst 2>/dev/null |
---|
1514 | mkdir .tst 2>/dev/null |
---|
1515 | if test -d .tst; then |
---|
1516 | am__leading_dot=. |
---|
1517 | else |
---|
1518 | am__leading_dot=_ |
---|
1519 | fi |
---|
1520 | rmdir .tst 2>/dev/null |
---|
1521 | |
---|
1522 | # test to see if srcdir already configured |
---|
1523 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1524 | test -f $srcdir/config.status; then |
---|
1525 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1526 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1527 | { (exit 1); exit 1; }; } |
---|
1528 | fi |
---|
1529 | |
---|
1530 | # test whether we have cygpath |
---|
1531 | if test -z "$CYGPATH_W"; then |
---|
1532 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1533 | CYGPATH_W='cygpath -w' |
---|
1534 | else |
---|
1535 | CYGPATH_W=echo |
---|
1536 | fi |
---|
1537 | fi |
---|
1538 | |
---|
1539 | |
---|
1540 | # Define the identity of the package. |
---|
1541 | PACKAGE=gettext_rpathlyx |
---|
1542 | VERSION=0 |
---|
1543 | |
---|
1544 | |
---|
1545 | cat >>confdefs.h <<_ACEOF |
---|
1546 | #define PACKAGE "$PACKAGE" |
---|
1547 | _ACEOF |
---|
1548 | |
---|
1549 | |
---|
1550 | cat >>confdefs.h <<_ACEOF |
---|
1551 | #define VERSION "$VERSION" |
---|
1552 | _ACEOF |
---|
1553 | |
---|
1554 | # Some tools Automake needs. |
---|
1555 | |
---|
1556 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1557 | |
---|
1558 | |
---|
1559 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1560 | |
---|
1561 | |
---|
1562 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1563 | |
---|
1564 | |
---|
1565 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1566 | |
---|
1567 | |
---|
1568 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1569 | |
---|
1570 | |
---|
1571 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1572 | |
---|
1573 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1574 | |
---|
1575 | # Installed binaries are usually stripped using `strip' when the user |
---|
1576 | # run `make install-strip'. However `strip' might not be the right |
---|
1577 | # tool to use in cross-compilation environments, therefore Automake |
---|
1578 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1579 | if test "$cross_compiling" != no; then |
---|
1580 | if test -n "$ac_tool_prefix"; then |
---|
1581 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1582 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1585 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1587 | else |
---|
1588 | if test -n "$STRIP"; then |
---|
1589 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1590 | else |
---|
1591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1592 | for as_dir in $PATH |
---|
1593 | do |
---|
1594 | IFS=$as_save_IFS |
---|
1595 | test -z "$as_dir" && as_dir=. |
---|
1596 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1598 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1600 | break 2 |
---|
1601 | fi |
---|
1602 | done |
---|
1603 | done |
---|
1604 | |
---|
1605 | fi |
---|
1606 | fi |
---|
1607 | STRIP=$ac_cv_prog_STRIP |
---|
1608 | if test -n "$STRIP"; then |
---|
1609 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1610 | echo "${ECHO_T}$STRIP" >&6 |
---|
1611 | else |
---|
1612 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1613 | echo "${ECHO_T}no" >&6 |
---|
1614 | fi |
---|
1615 | |
---|
1616 | fi |
---|
1617 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1618 | ac_ct_STRIP=$STRIP |
---|
1619 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1620 | set dummy strip; ac_word=$2 |
---|
1621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1623 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1625 | else |
---|
1626 | if test -n "$ac_ct_STRIP"; then |
---|
1627 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1628 | else |
---|
1629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1630 | for as_dir in $PATH |
---|
1631 | do |
---|
1632 | IFS=$as_save_IFS |
---|
1633 | test -z "$as_dir" && as_dir=. |
---|
1634 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1636 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1638 | break 2 |
---|
1639 | fi |
---|
1640 | done |
---|
1641 | done |
---|
1642 | |
---|
1643 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1644 | fi |
---|
1645 | fi |
---|
1646 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1647 | if test -n "$ac_ct_STRIP"; then |
---|
1648 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1649 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1650 | else |
---|
1651 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1652 | echo "${ECHO_T}no" >&6 |
---|
1653 | fi |
---|
1654 | |
---|
1655 | STRIP=$ac_ct_STRIP |
---|
1656 | else |
---|
1657 | STRIP="$ac_cv_prog_STRIP" |
---|
1658 | fi |
---|
1659 | |
---|
1660 | fi |
---|
1661 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1662 | |
---|
1663 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1664 | # some platforms. |
---|
1665 | |
---|
1666 | |
---|
1667 | |
---|
1668 | ac_ext=c |
---|
1669 | ac_cpp='$CPP $CPPFLAGS' |
---|
1670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1673 | if test -n "$ac_tool_prefix"; then |
---|
1674 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1675 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1678 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1680 | else |
---|
1681 | if test -n "$CC"; then |
---|
1682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1683 | else |
---|
1684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1685 | for as_dir in $PATH |
---|
1686 | do |
---|
1687 | IFS=$as_save_IFS |
---|
1688 | test -z "$as_dir" && as_dir=. |
---|
1689 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1691 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1693 | break 2 |
---|
1694 | fi |
---|
1695 | done |
---|
1696 | done |
---|
1697 | |
---|
1698 | fi |
---|
1699 | fi |
---|
1700 | CC=$ac_cv_prog_CC |
---|
1701 | if test -n "$CC"; then |
---|
1702 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1703 | echo "${ECHO_T}$CC" >&6 |
---|
1704 | else |
---|
1705 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1706 | echo "${ECHO_T}no" >&6 |
---|
1707 | fi |
---|
1708 | |
---|
1709 | fi |
---|
1710 | if test -z "$ac_cv_prog_CC"; then |
---|
1711 | ac_ct_CC=$CC |
---|
1712 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1713 | set dummy gcc; ac_word=$2 |
---|
1714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1718 | else |
---|
1719 | if test -n "$ac_ct_CC"; then |
---|
1720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1721 | else |
---|
1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1723 | for as_dir in $PATH |
---|
1724 | do |
---|
1725 | IFS=$as_save_IFS |
---|
1726 | test -z "$as_dir" && as_dir=. |
---|
1727 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1729 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1731 | break 2 |
---|
1732 | fi |
---|
1733 | done |
---|
1734 | done |
---|
1735 | |
---|
1736 | fi |
---|
1737 | fi |
---|
1738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1739 | if test -n "$ac_ct_CC"; then |
---|
1740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1741 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1742 | else |
---|
1743 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1744 | echo "${ECHO_T}no" >&6 |
---|
1745 | fi |
---|
1746 | |
---|
1747 | CC=$ac_ct_CC |
---|
1748 | else |
---|
1749 | CC="$ac_cv_prog_CC" |
---|
1750 | fi |
---|
1751 | |
---|
1752 | if test -z "$CC"; then |
---|
1753 | if test -n "$ac_tool_prefix"; then |
---|
1754 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1755 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1758 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1760 | else |
---|
1761 | if test -n "$CC"; then |
---|
1762 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1763 | else |
---|
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1765 | for as_dir in $PATH |
---|
1766 | do |
---|
1767 | IFS=$as_save_IFS |
---|
1768 | test -z "$as_dir" && as_dir=. |
---|
1769 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1771 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1773 | break 2 |
---|
1774 | fi |
---|
1775 | done |
---|
1776 | done |
---|
1777 | |
---|
1778 | fi |
---|
1779 | fi |
---|
1780 | CC=$ac_cv_prog_CC |
---|
1781 | if test -n "$CC"; then |
---|
1782 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1783 | echo "${ECHO_T}$CC" >&6 |
---|
1784 | else |
---|
1785 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1786 | echo "${ECHO_T}no" >&6 |
---|
1787 | fi |
---|
1788 | |
---|
1789 | fi |
---|
1790 | if test -z "$ac_cv_prog_CC"; then |
---|
1791 | ac_ct_CC=$CC |
---|
1792 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1793 | set dummy cc; ac_word=$2 |
---|
1794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1796 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1798 | else |
---|
1799 | if test -n "$ac_ct_CC"; then |
---|
1800 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1801 | else |
---|
1802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1803 | for as_dir in $PATH |
---|
1804 | do |
---|
1805 | IFS=$as_save_IFS |
---|
1806 | test -z "$as_dir" && as_dir=. |
---|
1807 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1809 | ac_cv_prog_ac_ct_CC="cc" |
---|
1810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1811 | break 2 |
---|
1812 | fi |
---|
1813 | done |
---|
1814 | done |
---|
1815 | |
---|
1816 | fi |
---|
1817 | fi |
---|
1818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1819 | if test -n "$ac_ct_CC"; then |
---|
1820 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1821 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1822 | else |
---|
1823 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1824 | echo "${ECHO_T}no" >&6 |
---|
1825 | fi |
---|
1826 | |
---|
1827 | CC=$ac_ct_CC |
---|
1828 | else |
---|
1829 | CC="$ac_cv_prog_CC" |
---|
1830 | fi |
---|
1831 | |
---|
1832 | fi |
---|
1833 | if test -z "$CC"; then |
---|
1834 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1835 | set dummy cc; ac_word=$2 |
---|
1836 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1838 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1840 | else |
---|
1841 | if test -n "$CC"; then |
---|
1842 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1843 | else |
---|
1844 | ac_prog_rejected=no |
---|
1845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1846 | for as_dir in $PATH |
---|
1847 | do |
---|
1848 | IFS=$as_save_IFS |
---|
1849 | test -z "$as_dir" && as_dir=. |
---|
1850 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1852 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1853 | ac_prog_rejected=yes |
---|
1854 | continue |
---|
1855 | fi |
---|
1856 | ac_cv_prog_CC="cc" |
---|
1857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1858 | break 2 |
---|
1859 | fi |
---|
1860 | done |
---|
1861 | done |
---|
1862 | |
---|
1863 | if test $ac_prog_rejected = yes; then |
---|
1864 | # We found a bogon in the path, so make sure we never use it. |
---|
1865 | set dummy $ac_cv_prog_CC |
---|
1866 | shift |
---|
1867 | if test $# != 0; then |
---|
1868 | # We chose a different compiler from the bogus one. |
---|
1869 | # However, it has the same basename, so the bogon will be chosen |
---|
1870 | # first if we set CC to just the basename; use the full file name. |
---|
1871 | shift |
---|
1872 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
1873 | fi |
---|
1874 | fi |
---|
1875 | fi |
---|
1876 | fi |
---|
1877 | CC=$ac_cv_prog_CC |
---|
1878 | if test -n "$CC"; then |
---|
1879 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1880 | echo "${ECHO_T}$CC" >&6 |
---|
1881 | else |
---|
1882 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1883 | echo "${ECHO_T}no" >&6 |
---|
1884 | fi |
---|
1885 | |
---|
1886 | fi |
---|
1887 | if test -z "$CC"; then |
---|
1888 | if test -n "$ac_tool_prefix"; then |
---|
1889 | for ac_prog in cl |
---|
1890 | do |
---|
1891 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1892 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1895 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1897 | else |
---|
1898 | if test -n "$CC"; then |
---|
1899 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1900 | else |
---|
1901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1902 | for as_dir in $PATH |
---|
1903 | do |
---|
1904 | IFS=$as_save_IFS |
---|
1905 | test -z "$as_dir" && as_dir=. |
---|
1906 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1907 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1908 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1910 | break 2 |
---|
1911 | fi |
---|
1912 | done |
---|
1913 | done |
---|
1914 | |
---|
1915 | fi |
---|
1916 | fi |
---|
1917 | CC=$ac_cv_prog_CC |
---|
1918 | if test -n "$CC"; then |
---|
1919 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1920 | echo "${ECHO_T}$CC" >&6 |
---|
1921 | else |
---|
1922 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1923 | echo "${ECHO_T}no" >&6 |
---|
1924 | fi |
---|
1925 | |
---|
1926 | test -n "$CC" && break |
---|
1927 | done |
---|
1928 | fi |
---|
1929 | if test -z "$CC"; then |
---|
1930 | ac_ct_CC=$CC |
---|
1931 | for ac_prog in cl |
---|
1932 | do |
---|
1933 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1934 | set dummy $ac_prog; ac_word=$2 |
---|
1935 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1937 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1939 | else |
---|
1940 | if test -n "$ac_ct_CC"; then |
---|
1941 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1942 | else |
---|
1943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1944 | for as_dir in $PATH |
---|
1945 | do |
---|
1946 | IFS=$as_save_IFS |
---|
1947 | test -z "$as_dir" && as_dir=. |
---|
1948 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1950 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1952 | break 2 |
---|
1953 | fi |
---|
1954 | done |
---|
1955 | done |
---|
1956 | |
---|
1957 | fi |
---|
1958 | fi |
---|
1959 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1960 | if test -n "$ac_ct_CC"; then |
---|
1961 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1962 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1963 | else |
---|
1964 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1965 | echo "${ECHO_T}no" >&6 |
---|
1966 | fi |
---|
1967 | |
---|
1968 | test -n "$ac_ct_CC" && break |
---|
1969 | done |
---|
1970 | |
---|
1971 | CC=$ac_ct_CC |
---|
1972 | fi |
---|
1973 | |
---|
1974 | fi |
---|
1975 | |
---|
1976 | |
---|
1977 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1978 | See \`config.log' for more details." >&5 |
---|
1979 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1980 | See \`config.log' for more details." >&2;} |
---|
1981 | { (exit 1); exit 1; }; } |
---|
1982 | |
---|
1983 | # Provide some information about the compiler. |
---|
1984 | echo "$as_me:$LINENO:" \ |
---|
1985 | "checking for C compiler version" >&5 |
---|
1986 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1987 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1988 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1989 | ac_status=$? |
---|
1990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1991 | (exit $ac_status); } |
---|
1992 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1993 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1994 | ac_status=$? |
---|
1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1996 | (exit $ac_status); } |
---|
1997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1998 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1999 | ac_status=$? |
---|
2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2001 | (exit $ac_status); } |
---|
2002 | |
---|
2003 | cat >conftest.$ac_ext <<_ACEOF |
---|
2004 | /* confdefs.h. */ |
---|
2005 | _ACEOF |
---|
2006 | cat confdefs.h >>conftest.$ac_ext |
---|
2007 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2008 | /* end confdefs.h. */ |
---|
2009 | |
---|
2010 | int |
---|
2011 | main () |
---|
2012 | { |
---|
2013 | |
---|
2014 | ; |
---|
2015 | return 0; |
---|
2016 | } |
---|
2017 | _ACEOF |
---|
2018 | ac_clean_files_save=$ac_clean_files |
---|
2019 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2020 | # Try to create an executable without -o first, disregard a.out. |
---|
2021 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2022 | # of exeext. |
---|
2023 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2024 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2025 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2026 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2027 | (eval $ac_link_default) 2>&5 |
---|
2028 | ac_status=$? |
---|
2029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2030 | (exit $ac_status); }; then |
---|
2031 | # Find the output, starting from the most likely. This scheme is |
---|
2032 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2033 | # resort. |
---|
2034 | |
---|
2035 | # Be careful to initialize this variable, since it used to be cached. |
---|
2036 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2037 | ac_cv_exeext= |
---|
2038 | # b.out is created by i960 compilers. |
---|
2039 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2040 | do |
---|
2041 | test -f "$ac_file" || continue |
---|
2042 | case $ac_file in |
---|
2043 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2044 | ;; |
---|
2045 | conftest.$ac_ext ) |
---|
2046 | # This is the source file. |
---|
2047 | ;; |
---|
2048 | [ab].out ) |
---|
2049 | # We found the default executable, but exeext='' is most |
---|
2050 | # certainly right. |
---|
2051 | break;; |
---|
2052 | *.* ) |
---|
2053 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2054 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2055 | # but it would be cool to find out if it's true. Does anybody |
---|
2056 | # maintain Libtool? --akim. |
---|
2057 | export ac_cv_exeext |
---|
2058 | break;; |
---|
2059 | * ) |
---|
2060 | break;; |
---|
2061 | esac |
---|
2062 | done |
---|
2063 | else |
---|
2064 | echo "$as_me: failed program was:" >&5 |
---|
2065 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2066 | |
---|
2067 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2068 | See \`config.log' for more details." >&5 |
---|
2069 | echo "$as_me: error: C compiler cannot create executables |
---|
2070 | See \`config.log' for more details." >&2;} |
---|
2071 | { (exit 77); exit 77; }; } |
---|
2072 | fi |
---|
2073 | |
---|
2074 | ac_exeext=$ac_cv_exeext |
---|
2075 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2076 | echo "${ECHO_T}$ac_file" >&6 |
---|
2077 | |
---|
2078 | # Check the compiler produces executables we can run. If not, either |
---|
2079 | # the compiler is broken, or we cross compile. |
---|
2080 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2081 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2082 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2083 | # If not cross compiling, check that we can run a simple program. |
---|
2084 | if test "$cross_compiling" != yes; then |
---|
2085 | if { ac_try='./$ac_file' |
---|
2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2087 | (eval $ac_try) 2>&5 |
---|
2088 | ac_status=$? |
---|
2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2090 | (exit $ac_status); }; }; then |
---|
2091 | cross_compiling=no |
---|
2092 | else |
---|
2093 | if test "$cross_compiling" = maybe; then |
---|
2094 | cross_compiling=yes |
---|
2095 | else |
---|
2096 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2097 | If you meant to cross compile, use \`--host'. |
---|
2098 | See \`config.log' for more details." >&5 |
---|
2099 | echo "$as_me: error: cannot run C compiled programs. |
---|
2100 | If you meant to cross compile, use \`--host'. |
---|
2101 | See \`config.log' for more details." >&2;} |
---|
2102 | { (exit 1); exit 1; }; } |
---|
2103 | fi |
---|
2104 | fi |
---|
2105 | fi |
---|
2106 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2107 | echo "${ECHO_T}yes" >&6 |
---|
2108 | |
---|
2109 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2110 | ac_clean_files=$ac_clean_files_save |
---|
2111 | # Check the compiler produces executables we can run. If not, either |
---|
2112 | # the compiler is broken, or we cross compile. |
---|
2113 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2114 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2115 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2116 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2117 | |
---|
2118 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2119 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2121 | (eval $ac_link) 2>&5 |
---|
2122 | ac_status=$? |
---|
2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2124 | (exit $ac_status); }; then |
---|
2125 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2126 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2127 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2128 | # `rm'. |
---|
2129 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2130 | test -f "$ac_file" || continue |
---|
2131 | case $ac_file in |
---|
2132 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2133 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2134 | export ac_cv_exeext |
---|
2135 | break;; |
---|
2136 | * ) break;; |
---|
2137 | esac |
---|
2138 | done |
---|
2139 | else |
---|
2140 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2141 | See \`config.log' for more details." >&5 |
---|
2142 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2143 | See \`config.log' for more details." >&2;} |
---|
2144 | { (exit 1); exit 1; }; } |
---|
2145 | fi |
---|
2146 | |
---|
2147 | rm -f conftest$ac_cv_exeext |
---|
2148 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2149 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2150 | |
---|
2151 | rm -f conftest.$ac_ext |
---|
2152 | EXEEXT=$ac_cv_exeext |
---|
2153 | ac_exeext=$EXEEXT |
---|
2154 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2155 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2156 | if test "${ac_cv_objext+set}" = set; then |
---|
2157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2158 | else |
---|
2159 | cat >conftest.$ac_ext <<_ACEOF |
---|
2160 | /* confdefs.h. */ |
---|
2161 | _ACEOF |
---|
2162 | cat confdefs.h >>conftest.$ac_ext |
---|
2163 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2164 | /* end confdefs.h. */ |
---|
2165 | |
---|
2166 | int |
---|
2167 | main () |
---|
2168 | { |
---|
2169 | |
---|
2170 | ; |
---|
2171 | return 0; |
---|
2172 | } |
---|
2173 | _ACEOF |
---|
2174 | rm -f conftest.o conftest.obj |
---|
2175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2176 | (eval $ac_compile) 2>&5 |
---|
2177 | ac_status=$? |
---|
2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2179 | (exit $ac_status); }; then |
---|
2180 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2181 | case $ac_file in |
---|
2182 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2183 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2184 | break;; |
---|
2185 | esac |
---|
2186 | done |
---|
2187 | else |
---|
2188 | echo "$as_me: failed program was:" >&5 |
---|
2189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2190 | |
---|
2191 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2192 | See \`config.log' for more details." >&5 |
---|
2193 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2194 | See \`config.log' for more details." >&2;} |
---|
2195 | { (exit 1); exit 1; }; } |
---|
2196 | fi |
---|
2197 | |
---|
2198 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2199 | fi |
---|
2200 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2201 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2202 | OBJEXT=$ac_cv_objext |
---|
2203 | ac_objext=$OBJEXT |
---|
2204 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2205 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2206 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2208 | else |
---|
2209 | cat >conftest.$ac_ext <<_ACEOF |
---|
2210 | /* confdefs.h. */ |
---|
2211 | _ACEOF |
---|
2212 | cat confdefs.h >>conftest.$ac_ext |
---|
2213 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2214 | /* end confdefs.h. */ |
---|
2215 | |
---|
2216 | int |
---|
2217 | main () |
---|
2218 | { |
---|
2219 | #ifndef __GNUC__ |
---|
2220 | choke me |
---|
2221 | #endif |
---|
2222 | |
---|
2223 | ; |
---|
2224 | return 0; |
---|
2225 | } |
---|
2226 | _ACEOF |
---|
2227 | rm -f conftest.$ac_objext |
---|
2228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2229 | (eval $ac_compile) 2>conftest.er1 |
---|
2230 | ac_status=$? |
---|
2231 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2232 | rm -f conftest.er1 |
---|
2233 | cat conftest.err >&5 |
---|
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2235 | (exit $ac_status); } && |
---|
2236 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2237 | || test ! -s conftest.err' |
---|
2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2239 | (eval $ac_try) 2>&5 |
---|
2240 | ac_status=$? |
---|
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2242 | (exit $ac_status); }; } && |
---|
2243 | { ac_try='test -s conftest.$ac_objext' |
---|
2244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2245 | (eval $ac_try) 2>&5 |
---|
2246 | ac_status=$? |
---|
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2248 | (exit $ac_status); }; }; then |
---|
2249 | ac_compiler_gnu=yes |
---|
2250 | else |
---|
2251 | echo "$as_me: failed program was:" >&5 |
---|
2252 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2253 | |
---|
2254 | ac_compiler_gnu=no |
---|
2255 | fi |
---|
2256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2257 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2258 | |
---|
2259 | fi |
---|
2260 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2261 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2262 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2263 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2264 | ac_save_CFLAGS=$CFLAGS |
---|
2265 | CFLAGS="-g" |
---|
2266 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2267 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2268 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2270 | else |
---|
2271 | cat >conftest.$ac_ext <<_ACEOF |
---|
2272 | /* confdefs.h. */ |
---|
2273 | _ACEOF |
---|
2274 | cat confdefs.h >>conftest.$ac_ext |
---|
2275 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2276 | /* end confdefs.h. */ |
---|
2277 | |
---|
2278 | int |
---|
2279 | main () |
---|
2280 | { |
---|
2281 | |
---|
2282 | ; |
---|
2283 | return 0; |
---|
2284 | } |
---|
2285 | _ACEOF |
---|
2286 | rm -f conftest.$ac_objext |
---|
2287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2288 | (eval $ac_compile) 2>conftest.er1 |
---|
2289 | ac_status=$? |
---|
2290 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2291 | rm -f conftest.er1 |
---|
2292 | cat conftest.err >&5 |
---|
2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2294 | (exit $ac_status); } && |
---|
2295 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2296 | || test ! -s conftest.err' |
---|
2297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2298 | (eval $ac_try) 2>&5 |
---|
2299 | ac_status=$? |
---|
2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2301 | (exit $ac_status); }; } && |
---|
2302 | { ac_try='test -s conftest.$ac_objext' |
---|
2303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2304 | (eval $ac_try) 2>&5 |
---|
2305 | ac_status=$? |
---|
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2307 | (exit $ac_status); }; }; then |
---|
2308 | ac_cv_prog_cc_g=yes |
---|
2309 | else |
---|
2310 | echo "$as_me: failed program was:" >&5 |
---|
2311 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2312 | |
---|
2313 | ac_cv_prog_cc_g=no |
---|
2314 | fi |
---|
2315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2316 | fi |
---|
2317 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2318 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2319 | if test "$ac_test_CFLAGS" = set; then |
---|
2320 | CFLAGS=$ac_save_CFLAGS |
---|
2321 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2322 | if test "$GCC" = yes; then |
---|
2323 | CFLAGS="-g -O2" |
---|
2324 | else |
---|
2325 | CFLAGS="-g" |
---|
2326 | fi |
---|
2327 | else |
---|
2328 | if test "$GCC" = yes; then |
---|
2329 | CFLAGS="-O2" |
---|
2330 | else |
---|
2331 | CFLAGS= |
---|
2332 | fi |
---|
2333 | fi |
---|
2334 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2335 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2336 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2338 | else |
---|
2339 | ac_cv_prog_cc_stdc=no |
---|
2340 | ac_save_CC=$CC |
---|
2341 | cat >conftest.$ac_ext <<_ACEOF |
---|
2342 | /* confdefs.h. */ |
---|
2343 | _ACEOF |
---|
2344 | cat confdefs.h >>conftest.$ac_ext |
---|
2345 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2346 | /* end confdefs.h. */ |
---|
2347 | #include <stdarg.h> |
---|
2348 | #include <stdio.h> |
---|
2349 | #include <sys/types.h> |
---|
2350 | #include <sys/stat.h> |
---|
2351 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2352 | struct buf { int x; }; |
---|
2353 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2354 | static char *e (p, i) |
---|
2355 | char **p; |
---|
2356 | int i; |
---|
2357 | { |
---|
2358 | return p[i]; |
---|
2359 | } |
---|
2360 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2361 | { |
---|
2362 | char *s; |
---|
2363 | va_list v; |
---|
2364 | va_start (v,p); |
---|
2365 | s = g (p, va_arg (v,int)); |
---|
2366 | va_end (v); |
---|
2367 | return s; |
---|
2368 | } |
---|
2369 | |
---|
2370 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2371 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2372 | These don't provoke an error unfortunately, instead are silently treated |
---|
2373 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2374 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2375 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2376 | that's true only with -std1. */ |
---|
2377 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2378 | |
---|
2379 | int test (int i, double x); |
---|
2380 | struct s1 {int (*f) (int a);}; |
---|
2381 | struct s2 {int (*f) (double a);}; |
---|
2382 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2383 | int argc; |
---|
2384 | char **argv; |
---|
2385 | int |
---|
2386 | main () |
---|
2387 | { |
---|
2388 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2389 | ; |
---|
2390 | return 0; |
---|
2391 | } |
---|
2392 | _ACEOF |
---|
2393 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2394 | # breaks some systems' header files. |
---|
2395 | # AIX -qlanglvl=ansi |
---|
2396 | # Ultrix and OSF/1 -std1 |
---|
2397 | # HP-UX 10.20 and later -Ae |
---|
2398 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2399 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2400 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2401 | do |
---|
2402 | CC="$ac_save_CC $ac_arg" |
---|
2403 | rm -f conftest.$ac_objext |
---|
2404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2405 | (eval $ac_compile) 2>conftest.er1 |
---|
2406 | ac_status=$? |
---|
2407 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2408 | rm -f conftest.er1 |
---|
2409 | cat conftest.err >&5 |
---|
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2411 | (exit $ac_status); } && |
---|
2412 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2413 | || test ! -s conftest.err' |
---|
2414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2415 | (eval $ac_try) 2>&5 |
---|
2416 | ac_status=$? |
---|
2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2418 | (exit $ac_status); }; } && |
---|
2419 | { ac_try='test -s conftest.$ac_objext' |
---|
2420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2421 | (eval $ac_try) 2>&5 |
---|
2422 | ac_status=$? |
---|
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2424 | (exit $ac_status); }; }; then |
---|
2425 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2426 | break |
---|
2427 | else |
---|
2428 | echo "$as_me: failed program was:" >&5 |
---|
2429 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2430 | |
---|
2431 | fi |
---|
2432 | rm -f conftest.err conftest.$ac_objext |
---|
2433 | done |
---|
2434 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2435 | CC=$ac_save_CC |
---|
2436 | |
---|
2437 | fi |
---|
2438 | |
---|
2439 | case "x$ac_cv_prog_cc_stdc" in |
---|
2440 | x|xno) |
---|
2441 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2442 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2443 | *) |
---|
2444 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2445 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2446 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2447 | esac |
---|
2448 | |
---|
2449 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2450 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2451 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2452 | # the declaration of exit, since it's the most demanding environment. |
---|
2453 | cat >conftest.$ac_ext <<_ACEOF |
---|
2454 | #ifndef __cplusplus |
---|
2455 | choke me |
---|
2456 | #endif |
---|
2457 | _ACEOF |
---|
2458 | rm -f conftest.$ac_objext |
---|
2459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2460 | (eval $ac_compile) 2>conftest.er1 |
---|
2461 | ac_status=$? |
---|
2462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2463 | rm -f conftest.er1 |
---|
2464 | cat conftest.err >&5 |
---|
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2466 | (exit $ac_status); } && |
---|
2467 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2468 | || test ! -s conftest.err' |
---|
2469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2470 | (eval $ac_try) 2>&5 |
---|
2471 | ac_status=$? |
---|
2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2473 | (exit $ac_status); }; } && |
---|
2474 | { ac_try='test -s conftest.$ac_objext' |
---|
2475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2476 | (eval $ac_try) 2>&5 |
---|
2477 | ac_status=$? |
---|
2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2479 | (exit $ac_status); }; }; then |
---|
2480 | for ac_declaration in \ |
---|
2481 | '' \ |
---|
2482 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2483 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2484 | 'extern "C" void exit (int) throw ();' \ |
---|
2485 | 'extern "C" void exit (int);' \ |
---|
2486 | 'void exit (int);' |
---|
2487 | do |
---|
2488 | cat >conftest.$ac_ext <<_ACEOF |
---|
2489 | /* confdefs.h. */ |
---|
2490 | _ACEOF |
---|
2491 | cat confdefs.h >>conftest.$ac_ext |
---|
2492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2493 | /* end confdefs.h. */ |
---|
2494 | $ac_declaration |
---|
2495 | #include <stdlib.h> |
---|
2496 | int |
---|
2497 | main () |
---|
2498 | { |
---|
2499 | exit (42); |
---|
2500 | ; |
---|
2501 | return 0; |
---|
2502 | } |
---|
2503 | _ACEOF |
---|
2504 | rm -f conftest.$ac_objext |
---|
2505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2506 | (eval $ac_compile) 2>conftest.er1 |
---|
2507 | ac_status=$? |
---|
2508 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2509 | rm -f conftest.er1 |
---|
2510 | cat conftest.err >&5 |
---|
2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2512 | (exit $ac_status); } && |
---|
2513 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2514 | || test ! -s conftest.err' |
---|
2515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2516 | (eval $ac_try) 2>&5 |
---|
2517 | ac_status=$? |
---|
2518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2519 | (exit $ac_status); }; } && |
---|
2520 | { ac_try='test -s conftest.$ac_objext' |
---|
2521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2522 | (eval $ac_try) 2>&5 |
---|
2523 | ac_status=$? |
---|
2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2525 | (exit $ac_status); }; }; then |
---|
2526 | : |
---|
2527 | else |
---|
2528 | echo "$as_me: failed program was:" >&5 |
---|
2529 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2530 | |
---|
2531 | continue |
---|
2532 | fi |
---|
2533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2534 | cat >conftest.$ac_ext <<_ACEOF |
---|
2535 | /* confdefs.h. */ |
---|
2536 | _ACEOF |
---|
2537 | cat confdefs.h >>conftest.$ac_ext |
---|
2538 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2539 | /* end confdefs.h. */ |
---|
2540 | $ac_declaration |
---|
2541 | int |
---|
2542 | main () |
---|
2543 | { |
---|
2544 | exit (42); |
---|
2545 | ; |
---|
2546 | return 0; |
---|
2547 | } |
---|
2548 | _ACEOF |
---|
2549 | rm -f conftest.$ac_objext |
---|
2550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2551 | (eval $ac_compile) 2>conftest.er1 |
---|
2552 | ac_status=$? |
---|
2553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2554 | rm -f conftest.er1 |
---|
2555 | cat conftest.err >&5 |
---|
2556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2557 | (exit $ac_status); } && |
---|
2558 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2559 | || test ! -s conftest.err' |
---|
2560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2561 | (eval $ac_try) 2>&5 |
---|
2562 | ac_status=$? |
---|
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2564 | (exit $ac_status); }; } && |
---|
2565 | { ac_try='test -s conftest.$ac_objext' |
---|
2566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2567 | (eval $ac_try) 2>&5 |
---|
2568 | ac_status=$? |
---|
2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2570 | (exit $ac_status); }; }; then |
---|
2571 | break |
---|
2572 | else |
---|
2573 | echo "$as_me: failed program was:" >&5 |
---|
2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2575 | |
---|
2576 | fi |
---|
2577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2578 | done |
---|
2579 | rm -f conftest* |
---|
2580 | if test -n "$ac_declaration"; then |
---|
2581 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2582 | echo $ac_declaration >>confdefs.h |
---|
2583 | echo '#endif' >>confdefs.h |
---|
2584 | fi |
---|
2585 | |
---|
2586 | else |
---|
2587 | echo "$as_me: failed program was:" >&5 |
---|
2588 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2589 | |
---|
2590 | fi |
---|
2591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2592 | ac_ext=c |
---|
2593 | ac_cpp='$CPP $CPPFLAGS' |
---|
2594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2597 | DEPDIR="${am__leading_dot}deps" |
---|
2598 | |
---|
2599 | ac_config_commands="$ac_config_commands depfiles" |
---|
2600 | |
---|
2601 | |
---|
2602 | am_make=${MAKE-make} |
---|
2603 | cat > confinc << 'END' |
---|
2604 | am__doit: |
---|
2605 | @echo done |
---|
2606 | .PHONY: am__doit |
---|
2607 | END |
---|
2608 | # If we don't find an include directive, just comment out the code. |
---|
2609 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2610 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2611 | am__include="#" |
---|
2612 | am__quote= |
---|
2613 | _am_result=none |
---|
2614 | # First try GNU make style include. |
---|
2615 | echo "include confinc" > confmf |
---|
2616 | # We grep out `Entering directory' and `Leaving directory' |
---|
2617 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2618 | # In particular we don't look at `^make:' because GNU make might |
---|
2619 | # be invoked under some other name (usually "gmake"), in which |
---|
2620 | # case it prints its new name instead of `make'. |
---|
2621 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2622 | am__include=include |
---|
2623 | am__quote= |
---|
2624 | _am_result=GNU |
---|
2625 | fi |
---|
2626 | # Now try BSD make style include. |
---|
2627 | if test "$am__include" = "#"; then |
---|
2628 | echo '.include "confinc"' > confmf |
---|
2629 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2630 | am__include=.include |
---|
2631 | am__quote="\"" |
---|
2632 | _am_result=BSD |
---|
2633 | fi |
---|
2634 | fi |
---|
2635 | |
---|
2636 | |
---|
2637 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2638 | echo "${ECHO_T}$_am_result" >&6 |
---|
2639 | rm -f confinc confmf |
---|
2640 | |
---|
2641 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2642 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2643 | enableval="$enable_dependency_tracking" |
---|
2644 | |
---|
2645 | fi; |
---|
2646 | if test "x$enable_dependency_tracking" != xno; then |
---|
2647 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2648 | AMDEPBACKSLASH='\' |
---|
2649 | fi |
---|
2650 | |
---|
2651 | |
---|
2652 | if test "x$enable_dependency_tracking" != xno; then |
---|
2653 | AMDEP_TRUE= |
---|
2654 | AMDEP_FALSE='#' |
---|
2655 | else |
---|
2656 | AMDEP_TRUE='#' |
---|
2657 | AMDEP_FALSE= |
---|
2658 | fi |
---|
2659 | |
---|
2660 | |
---|
2661 | |
---|
2662 | |
---|
2663 | depcc="$CC" am_compiler_list= |
---|
2664 | |
---|
2665 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2666 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2667 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2669 | else |
---|
2670 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2671 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2672 | # making bogus files that we don't know about and never remove. For |
---|
2673 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2674 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2675 | # in D'. |
---|
2676 | mkdir conftest.dir |
---|
2677 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2678 | # using a relative directory. |
---|
2679 | cp "$am_depcomp" conftest.dir |
---|
2680 | cd conftest.dir |
---|
2681 | # We will build objects and dependencies in a subdirectory because |
---|
2682 | # it helps to detect inapplicable dependency modes. For instance |
---|
2683 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2684 | # side effect of compilation, but ICC will put the dependencies in |
---|
2685 | # the current directory while Tru64 will put them in the object |
---|
2686 | # directory. |
---|
2687 | mkdir sub |
---|
2688 | |
---|
2689 | am_cv_CC_dependencies_compiler_type=none |
---|
2690 | if test "$am_compiler_list" = ""; then |
---|
2691 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2692 | fi |
---|
2693 | for depmode in $am_compiler_list; do |
---|
2694 | # Setup a source with many dependencies, because some compilers |
---|
2695 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2696 | # we should not choose a depcomp mode which is confused by this. |
---|
2697 | # |
---|
2698 | # We need to recreate these files for each test, as the compiler may |
---|
2699 | # overwrite some of them when testing with obscure command lines. |
---|
2700 | # This happens at least with the AIX C compiler. |
---|
2701 | : > sub/conftest.c |
---|
2702 | for i in 1 2 3 4 5 6; do |
---|
2703 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2704 | : > sub/conftst$i.h |
---|
2705 | done |
---|
2706 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2707 | |
---|
2708 | case $depmode in |
---|
2709 | nosideeffect) |
---|
2710 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2711 | # only be used when explicitly requested |
---|
2712 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2713 | continue |
---|
2714 | else |
---|
2715 | break |
---|
2716 | fi |
---|
2717 | ;; |
---|
2718 | none) break ;; |
---|
2719 | esac |
---|
2720 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2721 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2722 | # handle `-M -o', and we need to detect this. |
---|
2723 | if depmode=$depmode \ |
---|
2724 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2725 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2726 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2727 | >/dev/null 2>conftest.err && |
---|
2728 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2729 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2730 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2731 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2732 | # (even with -Werror). So we grep stderr for any message |
---|
2733 | # that says an option was ignored. |
---|
2734 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2735 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
2736 | break |
---|
2737 | fi |
---|
2738 | fi |
---|
2739 | done |
---|
2740 | |
---|
2741 | cd .. |
---|
2742 | rm -rf conftest.dir |
---|
2743 | else |
---|
2744 | am_cv_CC_dependencies_compiler_type=none |
---|
2745 | fi |
---|
2746 | |
---|
2747 | fi |
---|
2748 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
2749 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
2750 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
2751 | |
---|
2752 | |
---|
2753 | |
---|
2754 | if |
---|
2755 | test "x$enable_dependency_tracking" != xno \ |
---|
2756 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
2757 | am__fastdepCC_TRUE= |
---|
2758 | am__fastdepCC_FALSE='#' |
---|
2759 | else |
---|
2760 | am__fastdepCC_TRUE='#' |
---|
2761 | am__fastdepCC_FALSE= |
---|
2762 | fi |
---|
2763 | |
---|
2764 | |
---|
2765 | |
---|
2766 | if test "X$prefix" = "XNONE"; then |
---|
2767 | acl_final_prefix="$ac_default_prefix" |
---|
2768 | else |
---|
2769 | acl_final_prefix="$prefix" |
---|
2770 | fi |
---|
2771 | if test "X$exec_prefix" = "XNONE"; then |
---|
2772 | acl_final_exec_prefix='${prefix}' |
---|
2773 | else |
---|
2774 | acl_final_exec_prefix="$exec_prefix" |
---|
2775 | fi |
---|
2776 | acl_save_prefix="$prefix" |
---|
2777 | prefix="$acl_final_prefix" |
---|
2778 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
---|
2779 | prefix="$acl_save_prefix" |
---|
2780 | |
---|
2781 | # Make sure we can run config.sub. |
---|
2782 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
2783 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
2784 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
2785 | { (exit 1); exit 1; }; } |
---|
2786 | |
---|
2787 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
2788 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
2789 | if test "${ac_cv_build+set}" = set; then |
---|
2790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2791 | else |
---|
2792 | ac_cv_build_alias=$build_alias |
---|
2793 | test -z "$ac_cv_build_alias" && |
---|
2794 | ac_cv_build_alias=`$ac_config_guess` |
---|
2795 | test -z "$ac_cv_build_alias" && |
---|
2796 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
2797 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
2798 | { (exit 1); exit 1; }; } |
---|
2799 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
2800 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
2801 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
2802 | { (exit 1); exit 1; }; } |
---|
2803 | |
---|
2804 | fi |
---|
2805 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
2806 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
2807 | build=$ac_cv_build |
---|
2808 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2809 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2810 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2811 | |
---|
2812 | |
---|
2813 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
2814 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
2815 | if test "${ac_cv_host+set}" = set; then |
---|
2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2817 | else |
---|
2818 | ac_cv_host_alias=$host_alias |
---|
2819 | test -z "$ac_cv_host_alias" && |
---|
2820 | ac_cv_host_alias=$ac_cv_build_alias |
---|
2821 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
2822 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
2823 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
2824 | { (exit 1); exit 1; }; } |
---|
2825 | |
---|
2826 | fi |
---|
2827 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
2828 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
2829 | host=$ac_cv_host |
---|
2830 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2831 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2832 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2833 | |
---|
2834 | |
---|
2835 | |
---|
2836 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
2837 | if test "${with_gnu_ld+set}" = set; then |
---|
2838 | withval="$with_gnu_ld" |
---|
2839 | test "$withval" = no || with_gnu_ld=yes |
---|
2840 | else |
---|
2841 | with_gnu_ld=no |
---|
2842 | fi; |
---|
2843 | # Prepare PATH_SEPARATOR. |
---|
2844 | # The user is always right. |
---|
2845 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
2846 | echo "#! /bin/sh" >conf$$.sh |
---|
2847 | echo "exit 0" >>conf$$.sh |
---|
2848 | chmod +x conf$$.sh |
---|
2849 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
2850 | PATH_SEPARATOR=';' |
---|
2851 | else |
---|
2852 | PATH_SEPARATOR=: |
---|
2853 | fi |
---|
2854 | rm -f conf$$.sh |
---|
2855 | fi |
---|
2856 | ac_prog=ld |
---|
2857 | if test "$GCC" = yes; then |
---|
2858 | # Check if gcc -print-prog-name=ld gives a path. |
---|
2859 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
---|
2860 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
---|
2861 | case $host in |
---|
2862 | *-*-mingw*) |
---|
2863 | # gcc leaves a trailing carriage return which upsets mingw |
---|
2864 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
2865 | *) |
---|
2866 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
2867 | esac |
---|
2868 | case $ac_prog in |
---|
2869 | # Accept absolute paths. |
---|
2870 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
2871 | re_direlt='/[^/][^/]*/\.\./' |
---|
2872 | # Canonicalize the path of ld |
---|
2873 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
2874 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
2875 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
2876 | done |
---|
2877 | test -z "$LD" && LD="$ac_prog" |
---|
2878 | ;; |
---|
2879 | "") |
---|
2880 | # If it fails, then pretend we aren't using GCC. |
---|
2881 | ac_prog=ld |
---|
2882 | ;; |
---|
2883 | *) |
---|
2884 | # If it is relative, then search for the first ld in PATH. |
---|
2885 | with_gnu_ld=unknown |
---|
2886 | ;; |
---|
2887 | esac |
---|
2888 | elif test "$with_gnu_ld" = yes; then |
---|
2889 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
2890 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
2891 | else |
---|
2892 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
2893 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
2894 | fi |
---|
2895 | if test "${acl_cv_path_LD+set}" = set; then |
---|
2896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2897 | else |
---|
2898 | if test -z "$LD"; then |
---|
2899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
2900 | for ac_dir in $PATH; do |
---|
2901 | test -z "$ac_dir" && ac_dir=. |
---|
2902 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
2903 | acl_cv_path_LD="$ac_dir/$ac_prog" |
---|
2904 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
2905 | # but apparently some GNU ld's only accept -v. |
---|
2906 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
2907 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
---|
2908 | *GNU* | *'with BFD'*) |
---|
2909 | test "$with_gnu_ld" != no && break ;; |
---|
2910 | *) |
---|
2911 | test "$with_gnu_ld" != yes && break ;; |
---|
2912 | esac |
---|
2913 | fi |
---|
2914 | done |
---|
2915 | IFS="$ac_save_ifs" |
---|
2916 | else |
---|
2917 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
2918 | fi |
---|
2919 | fi |
---|
2920 | |
---|
2921 | LD="$acl_cv_path_LD" |
---|
2922 | if test -n "$LD"; then |
---|
2923 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
2924 | echo "${ECHO_T}$LD" >&6 |
---|
2925 | else |
---|
2926 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2927 | echo "${ECHO_T}no" >&6 |
---|
2928 | fi |
---|
2929 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
2930 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
2931 | { (exit 1); exit 1; }; } |
---|
2932 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
2933 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
2934 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
---|
2935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2936 | else |
---|
2937 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
2938 | case `$LD -v 2>&1 </dev/null` in |
---|
2939 | *GNU* | *'with BFD'*) |
---|
2940 | acl_cv_prog_gnu_ld=yes ;; |
---|
2941 | *) |
---|
2942 | acl_cv_prog_gnu_ld=no ;; |
---|
2943 | esac |
---|
2944 | fi |
---|
2945 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
---|
2946 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
---|
2947 | with_gnu_ld=$acl_cv_prog_gnu_ld |
---|
2948 | |
---|
2949 | |
---|
2950 | |
---|
2951 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
---|
2952 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
---|
2953 | if test "${acl_cv_rpath+set}" = set; then |
---|
2954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2955 | else |
---|
2956 | |
---|
2957 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
---|
2958 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
---|
2959 | . ./conftest.sh |
---|
2960 | rm -f ./conftest.sh |
---|
2961 | acl_cv_rpath=done |
---|
2962 | |
---|
2963 | fi |
---|
2964 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
---|
2965 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
---|
2966 | wl="$acl_cv_wl" |
---|
2967 | libext="$acl_cv_libext" |
---|
2968 | shlibext="$acl_cv_shlibext" |
---|
2969 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
---|
2970 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
---|
2971 | hardcode_direct="$acl_cv_hardcode_direct" |
---|
2972 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
---|
2973 | # Check whether --enable-rpath or --disable-rpath was given. |
---|
2974 | if test "${enable_rpath+set}" = set; then |
---|
2975 | enableval="$enable_rpath" |
---|
2976 | : |
---|
2977 | else |
---|
2978 | enable_rpath=yes |
---|
2979 | fi; |
---|
2980 | |
---|
2981 | |
---|
2982 | |
---|
2983 | |
---|
2984 | |
---|
2985 | |
---|
2986 | echo "$as_me:$LINENO: checking how to link with librpathx" >&5 |
---|
2987 | echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6 |
---|
2988 | if test "${ac_cv_librpathx_libs+set}" = set; then |
---|
2989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2990 | else |
---|
2991 | |
---|
2992 | |
---|
2993 | |
---|
2994 | use_additional=yes |
---|
2995 | |
---|
2996 | acl_save_prefix="$prefix" |
---|
2997 | prefix="$acl_final_prefix" |
---|
2998 | acl_save_exec_prefix="$exec_prefix" |
---|
2999 | exec_prefix="$acl_final_exec_prefix" |
---|
3000 | |
---|
3001 | eval additional_includedir=\"$includedir\" |
---|
3002 | eval additional_libdir=\"$libdir\" |
---|
3003 | |
---|
3004 | exec_prefix="$acl_save_exec_prefix" |
---|
3005 | prefix="$acl_save_prefix" |
---|
3006 | |
---|
3007 | |
---|
3008 | # Check whether --with-librpathx-prefix or --without-librpathx-prefix was given. |
---|
3009 | if test "${with_librpathx_prefix+set}" = set; then |
---|
3010 | withval="$with_librpathx_prefix" |
---|
3011 | |
---|
3012 | if test "X$withval" = "Xno"; then |
---|
3013 | use_additional=no |
---|
3014 | else |
---|
3015 | if test "X$withval" = "X"; then |
---|
3016 | |
---|
3017 | acl_save_prefix="$prefix" |
---|
3018 | prefix="$acl_final_prefix" |
---|
3019 | acl_save_exec_prefix="$exec_prefix" |
---|
3020 | exec_prefix="$acl_final_exec_prefix" |
---|
3021 | |
---|
3022 | eval additional_includedir=\"$includedir\" |
---|
3023 | eval additional_libdir=\"$libdir\" |
---|
3024 | |
---|
3025 | exec_prefix="$acl_save_exec_prefix" |
---|
3026 | prefix="$acl_save_prefix" |
---|
3027 | |
---|
3028 | else |
---|
3029 | additional_includedir="$withval/include" |
---|
3030 | additional_libdir="$withval/lib" |
---|
3031 | fi |
---|
3032 | fi |
---|
3033 | |
---|
3034 | fi; |
---|
3035 | LIBRPATHX= |
---|
3036 | LTLIBRPATHX= |
---|
3037 | INCRPATHX= |
---|
3038 | rpathdirs= |
---|
3039 | ltrpathdirs= |
---|
3040 | names_already_handled= |
---|
3041 | names_next_round='rpathx ' |
---|
3042 | while test -n "$names_next_round"; do |
---|
3043 | names_this_round="$names_next_round" |
---|
3044 | names_next_round= |
---|
3045 | for name in $names_this_round; do |
---|
3046 | already_handled= |
---|
3047 | for n in $names_already_handled; do |
---|
3048 | if test "$n" = "$name"; then |
---|
3049 | already_handled=yes |
---|
3050 | break |
---|
3051 | fi |
---|
3052 | done |
---|
3053 | if test -z "$already_handled"; then |
---|
3054 | names_already_handled="$names_already_handled $name" |
---|
3055 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
---|
3056 | eval value=\"\$HAVE_LIB$uppername\" |
---|
3057 | if test -n "$value"; then |
---|
3058 | if test "$value" = yes; then |
---|
3059 | eval value=\"\$LIB$uppername\" |
---|
3060 | test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" |
---|
3061 | eval value=\"\$LTLIB$uppername\" |
---|
3062 | test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" |
---|
3063 | else |
---|
3064 | : |
---|
3065 | fi |
---|
3066 | else |
---|
3067 | found_dir= |
---|
3068 | found_la= |
---|
3069 | found_so= |
---|
3070 | found_a= |
---|
3071 | if test $use_additional = yes; then |
---|
3072 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
---|
3073 | found_dir="$additional_libdir" |
---|
3074 | found_so="$additional_libdir/lib$name.$shlibext" |
---|
3075 | if test -f "$additional_libdir/lib$name.la"; then |
---|
3076 | found_la="$additional_libdir/lib$name.la" |
---|
3077 | fi |
---|
3078 | else |
---|
3079 | if test -f "$additional_libdir/lib$name.$libext"; then |
---|
3080 | found_dir="$additional_libdir" |
---|
3081 | found_a="$additional_libdir/lib$name.$libext" |
---|
3082 | if test -f "$additional_libdir/lib$name.la"; then |
---|
3083 | found_la="$additional_libdir/lib$name.la" |
---|
3084 | fi |
---|
3085 | fi |
---|
3086 | fi |
---|
3087 | fi |
---|
3088 | if test "X$found_dir" = "X"; then |
---|
3089 | for x in $LDFLAGS $LTLIBRPATHX; do |
---|
3090 | |
---|
3091 | acl_save_prefix="$prefix" |
---|
3092 | prefix="$acl_final_prefix" |
---|
3093 | acl_save_exec_prefix="$exec_prefix" |
---|
3094 | exec_prefix="$acl_final_exec_prefix" |
---|
3095 | eval x=\"$x\" |
---|
3096 | exec_prefix="$acl_save_exec_prefix" |
---|
3097 | prefix="$acl_save_prefix" |
---|
3098 | |
---|
3099 | case "$x" in |
---|
3100 | -L*) |
---|
3101 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
---|
3102 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
---|
3103 | found_dir="$dir" |
---|
3104 | found_so="$dir/lib$name.$shlibext" |
---|
3105 | if test -f "$dir/lib$name.la"; then |
---|
3106 | found_la="$dir/lib$name.la" |
---|
3107 | fi |
---|
3108 | else |
---|
3109 | if test -f "$dir/lib$name.$libext"; then |
---|
3110 | found_dir="$dir" |
---|
3111 | found_a="$dir/lib$name.$libext" |
---|
3112 | if test -f "$dir/lib$name.la"; then |
---|
3113 | found_la="$dir/lib$name.la" |
---|
3114 | fi |
---|
3115 | fi |
---|
3116 | fi |
---|
3117 | ;; |
---|
3118 | esac |
---|
3119 | if test "X$found_dir" != "X"; then |
---|
3120 | break |
---|
3121 | fi |
---|
3122 | done |
---|
3123 | fi |
---|
3124 | if test "X$found_dir" != "X"; then |
---|
3125 | LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" |
---|
3126 | if test "X$found_so" != "X"; then |
---|
3127 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
---|
3128 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" |
---|
3129 | else |
---|
3130 | haveit= |
---|
3131 | for x in $ltrpathdirs; do |
---|
3132 | if test "X$x" = "X$found_dir"; then |
---|
3133 | haveit=yes |
---|
3134 | break |
---|
3135 | fi |
---|
3136 | done |
---|
3137 | if test -z "$haveit"; then |
---|
3138 | ltrpathdirs="$ltrpathdirs $found_dir" |
---|
3139 | fi |
---|
3140 | if test "$hardcode_direct" = yes; then |
---|
3141 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" |
---|
3142 | else |
---|
3143 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
---|
3144 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" |
---|
3145 | haveit= |
---|
3146 | for x in $rpathdirs; do |
---|
3147 | if test "X$x" = "X$found_dir"; then |
---|
3148 | haveit=yes |
---|
3149 | break |
---|
3150 | fi |
---|
3151 | done |
---|
3152 | if test -z "$haveit"; then |
---|
3153 | rpathdirs="$rpathdirs $found_dir" |
---|
3154 | fi |
---|
3155 | else |
---|
3156 | haveit= |
---|
3157 | for x in $LDFLAGS $LIBRPATHX; do |
---|
3158 | |
---|
3159 | acl_save_prefix="$prefix" |
---|
3160 | prefix="$acl_final_prefix" |
---|
3161 | acl_save_exec_prefix="$exec_prefix" |
---|
3162 | exec_prefix="$acl_final_exec_prefix" |
---|
3163 | eval x=\"$x\" |
---|
3164 | exec_prefix="$acl_save_exec_prefix" |
---|
3165 | prefix="$acl_save_prefix" |
---|
3166 | |
---|
3167 | if test "X$x" = "X-L$found_dir"; then |
---|
3168 | haveit=yes |
---|
3169 | break |
---|
3170 | fi |
---|
3171 | done |
---|
3172 | if test -z "$haveit"; then |
---|
3173 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" |
---|
3174 | fi |
---|
3175 | if test "$hardcode_minus_L" != no; then |
---|
3176 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" |
---|
3177 | else |
---|
3178 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" |
---|
3179 | fi |
---|
3180 | fi |
---|
3181 | fi |
---|
3182 | fi |
---|
3183 | else |
---|
3184 | if test "X$found_a" != "X"; then |
---|
3185 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" |
---|
3186 | else |
---|
3187 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" |
---|
3188 | fi |
---|
3189 | fi |
---|
3190 | additional_includedir= |
---|
3191 | case "$found_dir" in |
---|
3192 | */lib | */lib/) |
---|
3193 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
---|
3194 | additional_includedir="$basedir/include" |
---|
3195 | ;; |
---|
3196 | esac |
---|
3197 | if test "X$additional_includedir" != "X"; then |
---|
3198 | if test "X$additional_includedir" != "X/usr/include"; then |
---|
3199 | haveit= |
---|
3200 | if test "X$additional_includedir" = "X/usr/local/include"; then |
---|
3201 | if test -n "$GCC"; then |
---|
3202 | case $host_os in |
---|
3203 | linux*) haveit=yes;; |
---|
3204 | esac |
---|
3205 | fi |
---|
3206 | fi |
---|
3207 | if test -z "$haveit"; then |
---|
3208 | for x in $CPPFLAGS $INCRPATHX; do |
---|
3209 | |
---|
3210 | acl_save_prefix="$prefix" |
---|
3211 | prefix="$acl_final_prefix" |
---|
3212 | acl_save_exec_prefix="$exec_prefix" |
---|
3213 | exec_prefix="$acl_final_exec_prefix" |
---|
3214 | eval x=\"$x\" |
---|
3215 | exec_prefix="$acl_save_exec_prefix" |
---|
3216 | prefix="$acl_save_prefix" |
---|
3217 | |
---|
3218 | if test "X$x" = "X-I$additional_includedir"; then |
---|
3219 | haveit=yes |
---|
3220 | break |
---|
3221 | fi |
---|
3222 | done |
---|
3223 | if test -z "$haveit"; then |
---|
3224 | if test -d "$additional_includedir"; then |
---|
3225 | INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" |
---|
3226 | fi |
---|
3227 | fi |
---|
3228 | fi |
---|
3229 | fi |
---|
3230 | fi |
---|
3231 | if test -n "$found_la"; then |
---|
3232 | save_libdir="$libdir" |
---|
3233 | case "$found_la" in |
---|
3234 | */* | *\\*) . "$found_la" ;; |
---|
3235 | *) . "./$found_la" ;; |
---|
3236 | esac |
---|
3237 | libdir="$save_libdir" |
---|
3238 | for dep in $dependency_libs; do |
---|
3239 | case "$dep" in |
---|
3240 | -L*) |
---|
3241 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
---|
3242 | if test "X$additional_libdir" != "X/usr/lib"; then |
---|
3243 | haveit= |
---|
3244 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
---|
3245 | if test -n "$GCC"; then |
---|
3246 | case $host_os in |
---|
3247 | linux*) haveit=yes;; |
---|
3248 | esac |
---|
3249 | fi |
---|
3250 | fi |
---|
3251 | if test -z "$haveit"; then |
---|
3252 | haveit= |
---|
3253 | for x in $LDFLAGS $LIBRPATHX; do |
---|
3254 | |
---|
3255 | acl_save_prefix="$prefix" |
---|
3256 | prefix="$acl_final_prefix" |
---|
3257 | acl_save_exec_prefix="$exec_prefix" |
---|
3258 | exec_prefix="$acl_final_exec_prefix" |
---|
3259 | eval x=\"$x\" |
---|
3260 | exec_prefix="$acl_save_exec_prefix" |
---|
3261 | prefix="$acl_save_prefix" |
---|
3262 | |
---|
3263 | if test "X$x" = "X-L$additional_libdir"; then |
---|
3264 | haveit=yes |
---|
3265 | break |
---|
3266 | fi |
---|
3267 | done |
---|
3268 | if test -z "$haveit"; then |
---|
3269 | if test -d "$additional_libdir"; then |
---|
3270 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" |
---|
3271 | fi |
---|
3272 | fi |
---|
3273 | haveit= |
---|
3274 | for x in $LDFLAGS $LTLIBRPATHX; do |
---|
3275 | |
---|
3276 | acl_save_prefix="$prefix" |
---|
3277 | prefix="$acl_final_prefix" |
---|
3278 | acl_save_exec_prefix="$exec_prefix" |
---|
3279 | exec_prefix="$acl_final_exec_prefix" |
---|
3280 | eval x=\"$x\" |
---|
3281 | exec_prefix="$acl_save_exec_prefix" |
---|
3282 | prefix="$acl_save_prefix" |
---|
3283 | |
---|
3284 | if test "X$x" = "X-L$additional_libdir"; then |
---|
3285 | haveit=yes |
---|
3286 | break |
---|
3287 | fi |
---|
3288 | done |
---|
3289 | if test -z "$haveit"; then |
---|
3290 | if test -d "$additional_libdir"; then |
---|
3291 | LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" |
---|
3292 | fi |
---|
3293 | fi |
---|
3294 | fi |
---|
3295 | fi |
---|
3296 | ;; |
---|
3297 | -R*) |
---|
3298 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
---|
3299 | if test "$enable_rpath" != no; then |
---|
3300 | haveit= |
---|
3301 | for x in $rpathdirs; do |
---|
3302 | if test "X$x" = "X$dir"; then |
---|
3303 | haveit=yes |
---|
3304 | break |
---|
3305 | fi |
---|
3306 | done |
---|
3307 | if test -z "$haveit"; then |
---|
3308 | rpathdirs="$rpathdirs $dir" |
---|
3309 | fi |
---|
3310 | haveit= |
---|
3311 | for x in $ltrpathdirs; do |
---|
3312 | if test "X$x" = "X$dir"; then |
---|
3313 | haveit=yes |
---|
3314 | break |
---|
3315 | fi |
---|
3316 | done |
---|
3317 | if test -z "$haveit"; then |
---|
3318 | ltrpathdirs="$ltrpathdirs $dir" |
---|
3319 | fi |
---|
3320 | fi |
---|
3321 | ;; |
---|
3322 | -l*) |
---|
3323 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
---|
3324 | ;; |
---|
3325 | *.la) |
---|
3326 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
---|
3327 | ;; |
---|
3328 | *) |
---|
3329 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" |
---|
3330 | LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" |
---|
3331 | ;; |
---|
3332 | esac |
---|
3333 | done |
---|
3334 | fi |
---|
3335 | else |
---|
3336 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" |
---|
3337 | LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" |
---|
3338 | fi |
---|
3339 | fi |
---|
3340 | fi |
---|
3341 | done |
---|
3342 | done |
---|
3343 | if test "X$rpathdirs" != "X"; then |
---|
3344 | if test -n "$hardcode_libdir_separator"; then |
---|
3345 | alldirs= |
---|
3346 | for found_dir in $rpathdirs; do |
---|
3347 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
---|
3348 | done |
---|
3349 | acl_save_libdir="$libdir" |
---|
3350 | libdir="$alldirs" |
---|
3351 | eval flag=\"$hardcode_libdir_flag_spec\" |
---|
3352 | libdir="$acl_save_libdir" |
---|
3353 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" |
---|
3354 | else |
---|
3355 | for found_dir in $rpathdirs; do |
---|
3356 | acl_save_libdir="$libdir" |
---|
3357 | libdir="$found_dir" |
---|
3358 | eval flag=\"$hardcode_libdir_flag_spec\" |
---|
3359 | libdir="$acl_save_libdir" |
---|
3360 | LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" |
---|
3361 | done |
---|
3362 | fi |
---|
3363 | fi |
---|
3364 | if test "X$ltrpathdirs" != "X"; then |
---|
3365 | for found_dir in $ltrpathdirs; do |
---|
3366 | LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" |
---|
3367 | done |
---|
3368 | fi |
---|
3369 | |
---|
3370 | ac_cv_librpathx_libs="$LIBRPATHX" |
---|
3371 | ac_cv_librpathx_ltlibs="$LTLIBRPATHX" |
---|
3372 | ac_cv_librpathx_cppflags="$INCRPATHX" |
---|
3373 | |
---|
3374 | fi |
---|
3375 | echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 |
---|
3376 | echo "${ECHO_T}$ac_cv_librpathx_libs" >&6 |
---|
3377 | LIBRPATHX="$ac_cv_librpathx_libs" |
---|
3378 | LTLIBRPATHX="$ac_cv_librpathx_ltlibs" |
---|
3379 | INCRPATHX="$ac_cv_librpathx_cppflags" |
---|
3380 | |
---|
3381 | for element in $INCRPATHX; do |
---|
3382 | haveit= |
---|
3383 | for x in $CPPFLAGS; do |
---|
3384 | |
---|
3385 | acl_save_prefix="$prefix" |
---|
3386 | prefix="$acl_final_prefix" |
---|
3387 | acl_save_exec_prefix="$exec_prefix" |
---|
3388 | exec_prefix="$acl_final_exec_prefix" |
---|
3389 | eval x=\"$x\" |
---|
3390 | exec_prefix="$acl_save_exec_prefix" |
---|
3391 | prefix="$acl_save_prefix" |
---|
3392 | |
---|
3393 | if test "X$x" = "X$element"; then |
---|
3394 | haveit=yes |
---|
3395 | break |
---|
3396 | fi |
---|
3397 | done |
---|
3398 | if test -z "$haveit"; then |
---|
3399 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
---|
3400 | fi |
---|
3401 | done |
---|
3402 | |
---|
3403 | |
---|
3404 | |
---|
3405 | HAVE_LIBRPATHX=yes |
---|
3406 | |
---|
3407 | |
---|
3408 | |
---|
3409 | |
---|
3410 | |
---|
3411 | |
---|
3412 | |
---|
3413 | |
---|
3414 | echo "$as_me:$LINENO: checking how to link with librpathy" >&5 |
---|
3415 | echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6 |
---|
3416 | if test "${ac_cv_librpathy_libs+set}" = set; then |
---|
3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3418 | else |
---|
3419 | |
---|
3420 | |
---|
3421 | |
---|
3422 | use_additional=yes |
---|
3423 | |
---|
3424 | acl_save_prefix="$prefix" |
---|
3425 | prefix="$acl_final_prefix" |
---|
3426 | acl_save_exec_prefix="$exec_prefix" |
---|
3427 | exec_prefix="$acl_final_exec_prefix" |
---|
3428 | |
---|
3429 | eval additional_includedir=\"$includedir\" |
---|
3430 | eval additional_libdir=\"$libdir\" |
---|
3431 | |
---|
3432 | exec_prefix="$acl_save_exec_prefix" |
---|
3433 | prefix="$acl_save_prefix" |
---|
3434 | |
---|
3435 | |
---|
3436 | # Check whether --with-librpathy-prefix or --without-librpathy-prefix was given. |
---|
3437 | if test "${with_librpathy_prefix+set}" = set; then |
---|
3438 | withval="$with_librpathy_prefix" |
---|
3439 | |
---|
3440 | if test "X$withval" = "Xno"; then |
---|
3441 | use_additional=no |
---|
3442 | else |
---|
3443 | if test "X$withval" = "X"; then |
---|
3444 | |
---|
3445 | acl_save_prefix="$prefix" |
---|
3446 | prefix="$acl_final_prefix" |
---|
3447 | acl_save_exec_prefix="$exec_prefix" |
---|
3448 | exec_prefix="$acl_final_exec_prefix" |
---|
3449 | |
---|
3450 | eval additional_includedir=\"$includedir\" |
---|
3451 | eval additional_libdir=\"$libdir\" |
---|
3452 | |
---|
3453 | exec_prefix="$acl_save_exec_prefix" |
---|
3454 | prefix="$acl_save_prefix" |
---|
3455 | |
---|
3456 | else |
---|
3457 | additional_includedir="$withval/include" |
---|
3458 | additional_libdir="$withval/lib" |
---|
3459 | fi |
---|
3460 | fi |
---|
3461 | |
---|
3462 | fi; |
---|
3463 | LIBRPATHY= |
---|
3464 | LTLIBRPATHY= |
---|
3465 | INCRPATHY= |
---|
3466 | rpathdirs= |
---|
3467 | ltrpathdirs= |
---|
3468 | names_already_handled= |
---|
3469 | names_next_round='rpathy rpathx' |
---|
3470 | while test -n "$names_next_round"; do |
---|
3471 | names_this_round="$names_next_round" |
---|
3472 | names_next_round= |
---|
3473 | for name in $names_this_round; do |
---|
3474 | already_handled= |
---|
3475 | for n in $names_already_handled; do |
---|
3476 | if test "$n" = "$name"; then |
---|
3477 | already_handled=yes |
---|
3478 | break |
---|
3479 | fi |
---|
3480 | done |
---|
3481 | if test -z "$already_handled"; then |
---|
3482 | names_already_handled="$names_already_handled $name" |
---|
3483 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
---|
3484 | eval value=\"\$HAVE_LIB$uppername\" |
---|
3485 | if test -n "$value"; then |
---|
3486 | if test "$value" = yes; then |
---|
3487 | eval value=\"\$LIB$uppername\" |
---|
3488 | test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value" |
---|
3489 | eval value=\"\$LTLIB$uppername\" |
---|
3490 | test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value" |
---|
3491 | else |
---|
3492 | : |
---|
3493 | fi |
---|
3494 | else |
---|
3495 | found_dir= |
---|
3496 | found_la= |
---|
3497 | found_so= |
---|
3498 | found_a= |
---|
3499 | if test $use_additional = yes; then |
---|
3500 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
---|
3501 | found_dir="$additional_libdir" |
---|
3502 | found_so="$additional_libdir/lib$name.$shlibext" |
---|
3503 | if test -f "$additional_libdir/lib$name.la"; then |
---|
3504 | found_la="$additional_libdir/lib$name.la" |
---|
3505 | fi |
---|
3506 | else |
---|
3507 | if test -f "$additional_libdir/lib$name.$libext"; then |
---|
3508 | found_dir="$additional_libdir" |
---|
3509 | found_a="$additional_libdir/lib$name.$libext" |
---|
3510 | if test -f "$additional_libdir/lib$name.la"; then |
---|
3511 | found_la="$additional_libdir/lib$name.la" |
---|
3512 | fi |
---|
3513 | fi |
---|
3514 | fi |
---|
3515 | fi |
---|
3516 | if test "X$found_dir" = "X"; then |
---|
3517 | for x in $LDFLAGS $LTLIBRPATHY; do |
---|
3518 | |
---|
3519 | acl_save_prefix="$prefix" |
---|
3520 | prefix="$acl_final_prefix" |
---|
3521 | acl_save_exec_prefix="$exec_prefix" |
---|
3522 | exec_prefix="$acl_final_exec_prefix" |
---|
3523 | eval x=\"$x\" |
---|
3524 | exec_prefix="$acl_save_exec_prefix" |
---|
3525 | prefix="$acl_save_prefix" |
---|
3526 | |
---|
3527 | case "$x" in |
---|
3528 | -L*) |
---|
3529 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
---|
3530 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
---|
3531 | found_dir="$dir" |
---|
3532 | found_so="$dir/lib$name.$shlibext" |
---|
3533 | if test -f "$dir/lib$name.la"; then |
---|
3534 | found_la="$dir/lib$name.la" |
---|
3535 | fi |
---|
3536 | else |
---|
3537 | if test -f "$dir/lib$name.$libext"; then |
---|
3538 | found_dir="$dir" |
---|
3539 | found_a="$dir/lib$name.$libext" |
---|
3540 | if test -f "$dir/lib$name.la"; then |
---|
3541 | found_la="$dir/lib$name.la" |
---|
3542 | fi |
---|
3543 | fi |
---|
3544 | fi |
---|
3545 | ;; |
---|
3546 | esac |
---|
3547 | if test "X$found_dir" != "X"; then |
---|
3548 | break |
---|
3549 | fi |
---|
3550 | done |
---|
3551 | fi |
---|
3552 | if test "X$found_dir" != "X"; then |
---|
3553 | LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name" |
---|
3554 | if test "X$found_so" != "X"; then |
---|
3555 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
---|
3556 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" |
---|
3557 | else |
---|
3558 | haveit= |
---|
3559 | for x in $ltrpathdirs; do |
---|
3560 | if test "X$x" = "X$found_dir"; then |
---|
3561 | haveit=yes |
---|
3562 | break |
---|
3563 | fi |
---|
3564 | done |
---|
3565 | if test -z "$haveit"; then |
---|
3566 | ltrpathdirs="$ltrpathdirs $found_dir" |
---|
3567 | fi |
---|
3568 | if test "$hardcode_direct" = yes; then |
---|
3569 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" |
---|
3570 | else |
---|
3571 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
---|
3572 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" |
---|
3573 | haveit= |
---|
3574 | for x in $rpathdirs; do |
---|
3575 | if test "X$x" = "X$found_dir"; then |
---|
3576 | haveit=yes |
---|
3577 | break |
---|
3578 | fi |
---|
3579 | done |
---|
3580 | if test -z "$haveit"; then |
---|
3581 | rpathdirs="$rpathdirs $found_dir" |
---|
3582 | fi |
---|
3583 | else |
---|
3584 | haveit= |
---|
3585 | for x in $LDFLAGS $LIBRPATHY; do |
---|
3586 | |
---|
3587 | acl_save_prefix="$prefix" |
---|
3588 | prefix="$acl_final_prefix" |
---|
3589 | acl_save_exec_prefix="$exec_prefix" |
---|
3590 | exec_prefix="$acl_final_exec_prefix" |
---|
3591 | eval x=\"$x\" |
---|
3592 | exec_prefix="$acl_save_exec_prefix" |
---|
3593 | prefix="$acl_save_prefix" |
---|
3594 | |
---|
3595 | if test "X$x" = "X-L$found_dir"; then |
---|
3596 | haveit=yes |
---|
3597 | break |
---|
3598 | fi |
---|
3599 | done |
---|
3600 | if test -z "$haveit"; then |
---|
3601 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir" |
---|
3602 | fi |
---|
3603 | if test "$hardcode_minus_L" != no; then |
---|
3604 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" |
---|
3605 | else |
---|
3606 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" |
---|
3607 | fi |
---|
3608 | fi |
---|
3609 | fi |
---|
3610 | fi |
---|
3611 | else |
---|
3612 | if test "X$found_a" != "X"; then |
---|
3613 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a" |
---|
3614 | else |
---|
3615 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name" |
---|
3616 | fi |
---|
3617 | fi |
---|
3618 | additional_includedir= |
---|
3619 | case "$found_dir" in |
---|
3620 | */lib | */lib/) |
---|
3621 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
---|
3622 | additional_includedir="$basedir/include" |
---|
3623 | ;; |
---|
3624 | esac |
---|
3625 | if test "X$additional_includedir" != "X"; then |
---|
3626 | if test "X$additional_includedir" != "X/usr/include"; then |
---|
3627 | haveit= |
---|
3628 | if test "X$additional_includedir" = "X/usr/local/include"; then |
---|
3629 | if test -n "$GCC"; then |
---|
3630 | case $host_os in |
---|
3631 | linux*) haveit=yes;; |
---|
3632 | esac |
---|
3633 | fi |
---|
3634 | fi |
---|
3635 | if test -z "$haveit"; then |
---|
3636 | for x in $CPPFLAGS $INCRPATHY; do |
---|
3637 | |
---|
3638 | acl_save_prefix="$prefix" |
---|
3639 | prefix="$acl_final_prefix" |
---|
3640 | acl_save_exec_prefix="$exec_prefix" |
---|
3641 | exec_prefix="$acl_final_exec_prefix" |
---|
3642 | eval x=\"$x\" |
---|
3643 | exec_prefix="$acl_save_exec_prefix" |
---|
3644 | prefix="$acl_save_prefix" |
---|
3645 | |
---|
3646 | if test "X$x" = "X-I$additional_includedir"; then |
---|
3647 | haveit=yes |
---|
3648 | break |
---|
3649 | fi |
---|
3650 | done |
---|
3651 | if test -z "$haveit"; then |
---|
3652 | if test -d "$additional_includedir"; then |
---|
3653 | INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir" |
---|
3654 | fi |
---|
3655 | fi |
---|
3656 | fi |
---|
3657 | fi |
---|
3658 | fi |
---|
3659 | if test -n "$found_la"; then |
---|
3660 | save_libdir="$libdir" |
---|
3661 | case "$found_la" in |
---|
3662 | */* | *\\*) . "$found_la" ;; |
---|
3663 | *) . "./$found_la" ;; |
---|
3664 | esac |
---|
3665 | libdir="$save_libdir" |
---|
3666 | for dep in $dependency_libs; do |
---|
3667 | case "$dep" in |
---|
3668 | -L*) |
---|
3669 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
---|
3670 | if test "X$additional_libdir" != "X/usr/lib"; then |
---|
3671 | haveit= |
---|
3672 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
---|
3673 | if test -n "$GCC"; then |
---|
3674 | case $host_os in |
---|
3675 | linux*) haveit=yes;; |
---|
3676 | esac |
---|
3677 | fi |
---|
3678 | fi |
---|
3679 | if test -z "$haveit"; then |
---|
3680 | haveit= |
---|
3681 | for x in $LDFLAGS $LIBRPATHY; do |
---|
3682 | |
---|
3683 | acl_save_prefix="$prefix" |
---|
3684 | prefix="$acl_final_prefix" |
---|
3685 | acl_save_exec_prefix="$exec_prefix" |
---|
3686 | exec_prefix="$acl_final_exec_prefix" |
---|
3687 | eval x=\"$x\" |
---|
3688 | exec_prefix="$acl_save_exec_prefix" |
---|
3689 | prefix="$acl_save_prefix" |
---|
3690 | |
---|
3691 | if test "X$x" = "X-L$additional_libdir"; then |
---|
3692 | haveit=yes |
---|
3693 | break |
---|
3694 | fi |
---|
3695 | done |
---|
3696 | if test -z "$haveit"; then |
---|
3697 | if test -d "$additional_libdir"; then |
---|
3698 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir" |
---|
3699 | fi |
---|
3700 | fi |
---|
3701 | haveit= |
---|
3702 | for x in $LDFLAGS $LTLIBRPATHY; do |
---|
3703 | |
---|
3704 | acl_save_prefix="$prefix" |
---|
3705 | prefix="$acl_final_prefix" |
---|
3706 | acl_save_exec_prefix="$exec_prefix" |
---|
3707 | exec_prefix="$acl_final_exec_prefix" |
---|
3708 | eval x=\"$x\" |
---|
3709 | exec_prefix="$acl_save_exec_prefix" |
---|
3710 | prefix="$acl_save_prefix" |
---|
3711 | |
---|
3712 | if test "X$x" = "X-L$additional_libdir"; then |
---|
3713 | haveit=yes |
---|
3714 | break |
---|
3715 | fi |
---|
3716 | done |
---|
3717 | if test -z "$haveit"; then |
---|
3718 | if test -d "$additional_libdir"; then |
---|
3719 | LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir" |
---|
3720 | fi |
---|
3721 | fi |
---|
3722 | fi |
---|
3723 | fi |
---|
3724 | ;; |
---|
3725 | -R*) |
---|
3726 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
---|
3727 | if test "$enable_rpath" != no; then |
---|
3728 | haveit= |
---|
3729 | for x in $rpathdirs; do |
---|
3730 | if test "X$x" = "X$dir"; then |
---|
3731 | haveit=yes |
---|
3732 | break |
---|
3733 | fi |
---|
3734 | done |
---|
3735 | if test -z "$haveit"; then |
---|
3736 | rpathdirs="$rpathdirs $dir" |
---|
3737 | fi |
---|
3738 | haveit= |
---|
3739 | for x in $ltrpathdirs; do |
---|
3740 | if test "X$x" = "X$dir"; then |
---|
3741 | haveit=yes |
---|
3742 | break |
---|
3743 | fi |
---|
3744 | done |
---|
3745 | if test -z "$haveit"; then |
---|
3746 | ltrpathdirs="$ltrpathdirs $dir" |
---|
3747 | fi |
---|
3748 | fi |
---|
3749 | ;; |
---|
3750 | -l*) |
---|
3751 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
---|
3752 | ;; |
---|
3753 | *.la) |
---|
3754 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
---|
3755 | ;; |
---|
3756 | *) |
---|
3757 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep" |
---|
3758 | LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep" |
---|
3759 | ;; |
---|
3760 | esac |
---|
3761 | done |
---|
3762 | fi |
---|
3763 | else |
---|
3764 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" |
---|
3765 | LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name" |
---|
3766 | fi |
---|
3767 | fi |
---|
3768 | fi |
---|
3769 | done |
---|
3770 | done |
---|
3771 | if test "X$rpathdirs" != "X"; then |
---|
3772 | if test -n "$hardcode_libdir_separator"; then |
---|
3773 | alldirs= |
---|
3774 | for found_dir in $rpathdirs; do |
---|
3775 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
---|
3776 | done |
---|
3777 | acl_save_libdir="$libdir" |
---|
3778 | libdir="$alldirs" |
---|
3779 | eval flag=\"$hardcode_libdir_flag_spec\" |
---|
3780 | libdir="$acl_save_libdir" |
---|
3781 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" |
---|
3782 | else |
---|
3783 | for found_dir in $rpathdirs; do |
---|
3784 | acl_save_libdir="$libdir" |
---|
3785 | libdir="$found_dir" |
---|
3786 | eval flag=\"$hardcode_libdir_flag_spec\" |
---|
3787 | libdir="$acl_save_libdir" |
---|
3788 | LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" |
---|
3789 | done |
---|
3790 | fi |
---|
3791 | fi |
---|
3792 | if test "X$ltrpathdirs" != "X"; then |
---|
3793 | for found_dir in $ltrpathdirs; do |
---|
3794 | LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir" |
---|
3795 | done |
---|
3796 | fi |
---|
3797 | |
---|
3798 | ac_cv_librpathy_libs="$LIBRPATHY" |
---|
3799 | ac_cv_librpathy_ltlibs="$LTLIBRPATHY" |
---|
3800 | ac_cv_librpathy_cppflags="$INCRPATHY" |
---|
3801 | |
---|
3802 | fi |
---|
3803 | echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5 |
---|
3804 | echo "${ECHO_T}$ac_cv_librpathy_libs" >&6 |
---|
3805 | LIBRPATHY="$ac_cv_librpathy_libs" |
---|
3806 | LTLIBRPATHY="$ac_cv_librpathy_ltlibs" |
---|
3807 | INCRPATHY="$ac_cv_librpathy_cppflags" |
---|
3808 | |
---|
3809 | for element in $INCRPATHY; do |
---|
3810 | haveit= |
---|
3811 | for x in $CPPFLAGS; do |
---|
3812 | |
---|
3813 | acl_save_prefix="$prefix" |
---|
3814 | prefix="$acl_final_prefix" |
---|
3815 | acl_save_exec_prefix="$exec_prefix" |
---|
3816 | exec_prefix="$acl_final_exec_prefix" |
---|
3817 | eval x=\"$x\" |
---|
3818 | exec_prefix="$acl_save_exec_prefix" |
---|
3819 | prefix="$acl_save_prefix" |
---|
3820 | |
---|
3821 | if test "X$x" = "X$element"; then |
---|
3822 | haveit=yes |
---|
3823 | break |
---|
3824 | fi |
---|
3825 | done |
---|
3826 | if test -z "$haveit"; then |
---|
3827 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
---|
3828 | fi |
---|
3829 | done |
---|
3830 | |
---|
3831 | |
---|
3832 | |
---|
3833 | HAVE_LIBRPATHY=yes |
---|
3834 | |
---|
3835 | |
---|
3836 | |
---|
3837 | LIBRPATHY="$LIBRPATHY $LIBRPATHX" |
---|
3838 | |
---|
3839 | ac_config_files="$ac_config_files Makefile" |
---|
3840 | cat >confcache <<\_ACEOF |
---|
3841 | # This file is a shell script that caches the results of configure |
---|
3842 | # tests run on this system so they can be shared between configure |
---|
3843 | # scripts and configure runs, see configure's option --config-cache. |
---|
3844 | # It is not useful on other systems. If it contains results you don't |
---|
3845 | # want to keep, you may remove or edit it. |
---|
3846 | # |
---|
3847 | # config.status only pays attention to the cache file if you give it |
---|
3848 | # the --recheck option to rerun configure. |
---|
3849 | # |
---|
3850 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
3851 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
3852 | # following values. |
---|
3853 | |
---|
3854 | _ACEOF |
---|
3855 | |
---|
3856 | # The following way of writing the cache mishandles newlines in values, |
---|
3857 | # but we know of no workaround that is simple, portable, and efficient. |
---|
3858 | # So, don't put newlines in cache variables' values. |
---|
3859 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
3860 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
3861 | { |
---|
3862 | (set) 2>&1 | |
---|
3863 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
3864 | *ac_space=\ *) |
---|
3865 | # `set' does not quote correctly, so add quotes (double-quote |
---|
3866 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
3867 | sed -n \ |
---|
3868 | "s/'/'\\\\''/g; |
---|
3869 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
3870 | ;; |
---|
3871 | *) |
---|
3872 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
3873 | sed -n \ |
---|
3874 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
3875 | ;; |
---|
3876 | esac; |
---|
3877 | } | |
---|
3878 | sed ' |
---|
3879 | t clear |
---|
3880 | : clear |
---|
3881 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
3882 | t end |
---|
3883 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
3884 | : end' >>confcache |
---|
3885 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
3886 | if test -w $cache_file; then |
---|
3887 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
3888 | cat confcache >$cache_file |
---|
3889 | else |
---|
3890 | echo "not updating unwritable cache $cache_file" |
---|
3891 | fi |
---|
3892 | fi |
---|
3893 | rm -f confcache |
---|
3894 | |
---|
3895 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
3896 | # Let make expand exec_prefix. |
---|
3897 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
3898 | |
---|
3899 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
3900 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
3901 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
3902 | # (actually we leave an empty line to preserve line numbers). |
---|
3903 | if test "x$srcdir" = x.; then |
---|
3904 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
3905 | s/:*\$(srcdir):*/:/; |
---|
3906 | s/:*\${srcdir}:*/:/; |
---|
3907 | s/:*@srcdir@:*/:/; |
---|
3908 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
3909 | s/:*$//; |
---|
3910 | s/^[^=]*=[ ]*$//; |
---|
3911 | }' |
---|
3912 | fi |
---|
3913 | |
---|
3914 | # Transform confdefs.h into DEFS. |
---|
3915 | # Protect against shell expansion while executing Makefile rules. |
---|
3916 | # Protect against Makefile macro expansion. |
---|
3917 | # |
---|
3918 | # If the first sed substitution is executed (which looks for macros that |
---|
3919 | # take arguments), then we branch to the quote section. Otherwise, |
---|
3920 | # look for a macro that doesn't take arguments. |
---|
3921 | cat >confdef2opt.sed <<\_ACEOF |
---|
3922 | t clear |
---|
3923 | : clear |
---|
3924 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
3925 | t quote |
---|
3926 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
3927 | t quote |
---|
3928 | d |
---|
3929 | : quote |
---|
3930 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
3931 | s,\[,\\&,g |
---|
3932 | s,\],\\&,g |
---|
3933 | s,\$,$$,g |
---|
3934 | p |
---|
3935 | _ACEOF |
---|
3936 | # We use echo to avoid assuming a particular line-breaking character. |
---|
3937 | # The extra dot is to prevent the shell from consuming trailing |
---|
3938 | # line-breaks from the sub-command output. A line-break within |
---|
3939 | # single-quotes doesn't work because, if this script is created in a |
---|
3940 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
3941 | # would break. |
---|
3942 | ac_LF_and_DOT=`echo; echo .` |
---|
3943 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
3944 | rm -f confdef2opt.sed |
---|
3945 | |
---|
3946 | |
---|
3947 | ac_libobjs= |
---|
3948 | ac_ltlibobjs= |
---|
3949 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
3950 | # 1. Remove the extension, and $U if already installed. |
---|
3951 | ac_i=`echo "$ac_i" | |
---|
3952 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
3953 | # 2. Add them. |
---|
3954 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
3955 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
3956 | done |
---|
3957 | LIBOBJS=$ac_libobjs |
---|
3958 | |
---|
3959 | LTLIBOBJS=$ac_ltlibobjs |
---|
3960 | |
---|
3961 | |
---|
3962 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
3963 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
3964 | Usually this means the macro was only invoked conditionally." >&5 |
---|
3965 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
3966 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
3967 | { (exit 1); exit 1; }; } |
---|
3968 | fi |
---|
3969 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
3970 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
3971 | Usually this means the macro was only invoked conditionally." >&5 |
---|
3972 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
3973 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
3974 | { (exit 1); exit 1; }; } |
---|
3975 | fi |
---|
3976 | |
---|
3977 | : ${CONFIG_STATUS=./config.status} |
---|
3978 | ac_clean_files_save=$ac_clean_files |
---|
3979 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
3980 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
3981 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
3982 | cat >$CONFIG_STATUS <<_ACEOF |
---|
3983 | #! $SHELL |
---|
3984 | # Generated by $as_me. |
---|
3985 | # Run this file to recreate the current configuration. |
---|
3986 | # Compiler output produced by configure, useful for debugging |
---|
3987 | # configure, is in config.log if it exists. |
---|
3988 | |
---|
3989 | debug=false |
---|
3990 | ac_cs_recheck=false |
---|
3991 | ac_cs_silent=false |
---|
3992 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
3993 | _ACEOF |
---|
3994 | |
---|
3995 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3996 | ## --------------------- ## |
---|
3997 | ## M4sh Initialization. ## |
---|
3998 | ## --------------------- ## |
---|
3999 | |
---|
4000 | # Be Bourne compatible |
---|
4001 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
4002 | emulate sh |
---|
4003 | NULLCMD=: |
---|
4004 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
4005 | # is contrary to our usage. Disable this feature. |
---|
4006 | alias -g '${1+"$@"}'='"$@"' |
---|
4007 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
4008 | set -o posix |
---|
4009 | fi |
---|
4010 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
4011 | |
---|
4012 | # Support unset when possible. |
---|
4013 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
4014 | as_unset=unset |
---|
4015 | else |
---|
4016 | as_unset=false |
---|
4017 | fi |
---|
4018 | |
---|
4019 | |
---|
4020 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
4021 | $as_unset ENV MAIL MAILPATH |
---|
4022 | PS1='$ ' |
---|
4023 | PS2='> ' |
---|
4024 | PS4='+ ' |
---|
4025 | |
---|
4026 | # NLS nuisances. |
---|
4027 | for as_var in \ |
---|
4028 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
4029 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
4030 | LC_TELEPHONE LC_TIME |
---|
4031 | do |
---|
4032 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
4033 | eval $as_var=C; export $as_var |
---|
4034 | else |
---|
4035 | $as_unset $as_var |
---|
4036 | fi |
---|
4037 | done |
---|
4038 | |
---|
4039 | # Required to use basename. |
---|
4040 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
4041 | as_expr=expr |
---|
4042 | else |
---|
4043 | as_expr=false |
---|
4044 | fi |
---|
4045 | |
---|
4046 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
4047 | as_basename=basename |
---|
4048 | else |
---|
4049 | as_basename=false |
---|
4050 | fi |
---|
4051 | |
---|
4052 | |
---|
4053 | # Name of the executable. |
---|
4054 | as_me=`$as_basename "$0" || |
---|
4055 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
4056 | X"$0" : 'X\(//\)$' \| \ |
---|
4057 | X"$0" : 'X\(/\)$' \| \ |
---|
4058 | . : '\(.\)' 2>/dev/null || |
---|
4059 | echo X/"$0" | |
---|
4060 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
4061 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
4062 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
4063 | s/.*/./; q'` |
---|
4064 | |
---|
4065 | |
---|
4066 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
4067 | # Avoid depending upon Character Ranges. |
---|
4068 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
4069 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
4070 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
4071 | as_cr_digits='0123456789' |
---|
4072 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
4073 | |
---|
4074 | # The user is always right. |
---|
4075 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
4076 | echo "#! /bin/sh" >conf$$.sh |
---|
4077 | echo "exit 0" >>conf$$.sh |
---|
4078 | chmod +x conf$$.sh |
---|
4079 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
4080 | PATH_SEPARATOR=';' |
---|
4081 | else |
---|
4082 | PATH_SEPARATOR=: |
---|
4083 | fi |
---|
4084 | rm -f conf$$.sh |
---|
4085 | fi |
---|
4086 | |
---|
4087 | |
---|
4088 | as_lineno_1=$LINENO |
---|
4089 | as_lineno_2=$LINENO |
---|
4090 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
4091 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
4092 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
4093 | # Find who we are. Look in the path if we contain no path at all |
---|
4094 | # relative or not. |
---|
4095 | case $0 in |
---|
4096 | *[\\/]* ) as_myself=$0 ;; |
---|
4097 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4098 | for as_dir in $PATH |
---|
4099 | do |
---|
4100 | IFS=$as_save_IFS |
---|
4101 | test -z "$as_dir" && as_dir=. |
---|
4102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
4103 | done |
---|
4104 | |
---|
4105 | ;; |
---|
4106 | esac |
---|
4107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
4108 | # in which case we are not to be found in the path. |
---|
4109 | if test "x$as_myself" = x; then |
---|
4110 | as_myself=$0 |
---|
4111 | fi |
---|
4112 | if test ! -f "$as_myself"; then |
---|
4113 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
4114 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
4115 | { (exit 1); exit 1; }; } |
---|
4116 | fi |
---|
4117 | case $CONFIG_SHELL in |
---|
4118 | '') |
---|
4119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4120 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
4121 | do |
---|
4122 | IFS=$as_save_IFS |
---|
4123 | test -z "$as_dir" && as_dir=. |
---|
4124 | for as_base in sh bash ksh sh5; do |
---|
4125 | case $as_dir in |
---|
4126 | /*) |
---|
4127 | if ("$as_dir/$as_base" -c ' |
---|
4128 | as_lineno_1=$LINENO |
---|
4129 | as_lineno_2=$LINENO |
---|
4130 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
4131 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
4132 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
4133 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
4134 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
4135 | CONFIG_SHELL=$as_dir/$as_base |
---|
4136 | export CONFIG_SHELL |
---|
4137 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
4138 | fi;; |
---|
4139 | esac |
---|
4140 | done |
---|
4141 | done |
---|
4142 | ;; |
---|
4143 | esac |
---|
4144 | |
---|
4145 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
4146 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
4147 | # line-number line before each line; the second 'sed' does the real |
---|
4148 | # work. The second script uses 'N' to pair each line-number line |
---|
4149 | # with the numbered line, and appends trailing '-' during |
---|
4150 | # substitution so that $LINENO is not a special case at line end. |
---|
4151 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
4152 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
4153 | sed '=' <$as_myself | |
---|
4154 | sed ' |
---|
4155 | N |
---|
4156 | s,$,-, |
---|
4157 | : loop |
---|
4158 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
4159 | t loop |
---|
4160 | s,-$,, |
---|
4161 | s,^['$as_cr_digits']*\n,, |
---|
4162 | ' >$as_me.lineno && |
---|
4163 | chmod +x $as_me.lineno || |
---|
4164 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
4165 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
4166 | { (exit 1); exit 1; }; } |
---|
4167 | |
---|
4168 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
4169 | # (the dirname of $[0] is not the place where we might find the |
---|
4170 | # original and so on. Autoconf is especially sensible to this). |
---|
4171 | . ./$as_me.lineno |
---|
4172 | # Exit status is that of the last command. |
---|
4173 | exit |
---|
4174 | } |
---|
4175 | |
---|
4176 | |
---|
4177 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
4178 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
4179 | ' ECHO_T=' ' ;; |
---|
4180 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
4181 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
4182 | esac |
---|
4183 | |
---|
4184 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
4185 | as_expr=expr |
---|
4186 | else |
---|
4187 | as_expr=false |
---|
4188 | fi |
---|
4189 | |
---|
4190 | rm -f conf$$ conf$$.exe conf$$.file |
---|
4191 | echo >conf$$.file |
---|
4192 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
4193 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
4194 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
4195 | if test -f conf$$.exe; then |
---|
4196 | # Don't use ln at all; we don't have any links |
---|
4197 | as_ln_s='cp -p' |
---|
4198 | else |
---|
4199 | as_ln_s='ln -s' |
---|
4200 | fi |
---|
4201 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
4202 | as_ln_s=ln |
---|
4203 | else |
---|
4204 | as_ln_s='cp -p' |
---|
4205 | fi |
---|
4206 | rm -f conf$$ conf$$.exe conf$$.file |
---|
4207 | |
---|
4208 | if mkdir -p . 2>/dev/null; then |
---|
4209 | as_mkdir_p=: |
---|
4210 | else |
---|
4211 | test -d ./-p && rmdir ./-p |
---|
4212 | as_mkdir_p=false |
---|
4213 | fi |
---|
4214 | |
---|
4215 | as_executable_p="test -f" |
---|
4216 | |
---|
4217 | # Sed expression to map a string onto a valid CPP name. |
---|
4218 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
4219 | |
---|
4220 | # Sed expression to map a string onto a valid variable name. |
---|
4221 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
4222 | |
---|
4223 | |
---|
4224 | # IFS |
---|
4225 | # We need space, tab and new line, in precisely that order. |
---|
4226 | as_nl=' |
---|
4227 | ' |
---|
4228 | IFS=" $as_nl" |
---|
4229 | |
---|
4230 | # CDPATH. |
---|
4231 | $as_unset CDPATH |
---|
4232 | |
---|
4233 | exec 6>&1 |
---|
4234 | |
---|
4235 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
4236 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
4237 | # values after options handling. Logging --version etc. is OK. |
---|
4238 | exec 5>>config.log |
---|
4239 | { |
---|
4240 | echo |
---|
4241 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
4242 | ## Running $as_me. ## |
---|
4243 | _ASBOX |
---|
4244 | } >&5 |
---|
4245 | cat >&5 <<_CSEOF |
---|
4246 | |
---|
4247 | This file was extended by $as_me, which was |
---|
4248 | generated by GNU Autoconf 2.58. Invocation command line was |
---|
4249 | |
---|
4250 | CONFIG_FILES = $CONFIG_FILES |
---|
4251 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
4252 | CONFIG_LINKS = $CONFIG_LINKS |
---|
4253 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
4254 | $ $0 $@ |
---|
4255 | |
---|
4256 | _CSEOF |
---|
4257 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
4258 | echo >&5 |
---|
4259 | _ACEOF |
---|
4260 | |
---|
4261 | # Files that config.status was made for. |
---|
4262 | if test -n "$ac_config_files"; then |
---|
4263 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
4264 | fi |
---|
4265 | |
---|
4266 | if test -n "$ac_config_headers"; then |
---|
4267 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
4268 | fi |
---|
4269 | |
---|
4270 | if test -n "$ac_config_links"; then |
---|
4271 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
4272 | fi |
---|
4273 | |
---|
4274 | if test -n "$ac_config_commands"; then |
---|
4275 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
4276 | fi |
---|
4277 | |
---|
4278 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4279 | |
---|
4280 | ac_cs_usage="\ |
---|
4281 | \`$as_me' instantiates files from templates according to the |
---|
4282 | current configuration. |
---|
4283 | |
---|
4284 | Usage: $0 [OPTIONS] [FILE]... |
---|
4285 | |
---|
4286 | -h, --help print this help, then exit |
---|
4287 | -V, --version print version number, then exit |
---|
4288 | -q, --quiet do not print progress messages |
---|
4289 | -d, --debug don't remove temporary files |
---|
4290 | --recheck update $as_me by reconfiguring in the same conditions |
---|
4291 | --file=FILE[:TEMPLATE] |
---|
4292 | instantiate the configuration file FILE |
---|
4293 | |
---|
4294 | Configuration files: |
---|
4295 | $config_files |
---|
4296 | |
---|
4297 | Configuration commands: |
---|
4298 | $config_commands |
---|
4299 | |
---|
4300 | Report bugs to <bug-autoconf@gnu.org>." |
---|
4301 | _ACEOF |
---|
4302 | |
---|
4303 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4304 | ac_cs_version="\\ |
---|
4305 | config.status |
---|
4306 | configured by $0, generated by GNU Autoconf 2.58, |
---|
4307 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
4308 | |
---|
4309 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
4310 | This config.status script is free software; the Free Software Foundation |
---|
4311 | gives unlimited permission to copy, distribute and modify it." |
---|
4312 | srcdir=$srcdir |
---|
4313 | INSTALL="$INSTALL" |
---|
4314 | _ACEOF |
---|
4315 | |
---|
4316 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4317 | # If no file are specified by the user, then we need to provide default |
---|
4318 | # value. By we need to know if files were specified by the user. |
---|
4319 | ac_need_defaults=: |
---|
4320 | while test $# != 0 |
---|
4321 | do |
---|
4322 | case $1 in |
---|
4323 | --*=*) |
---|
4324 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
4325 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
4326 | ac_shift=: |
---|
4327 | ;; |
---|
4328 | -*) |
---|
4329 | ac_option=$1 |
---|
4330 | ac_optarg=$2 |
---|
4331 | ac_shift=shift |
---|
4332 | ;; |
---|
4333 | *) # This is not an option, so the user has probably given explicit |
---|
4334 | # arguments. |
---|
4335 | ac_option=$1 |
---|
4336 | ac_need_defaults=false;; |
---|
4337 | esac |
---|
4338 | |
---|
4339 | case $ac_option in |
---|
4340 | # Handling of the options. |
---|
4341 | _ACEOF |
---|
4342 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4343 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4344 | ac_cs_recheck=: ;; |
---|
4345 | --version | --vers* | -V ) |
---|
4346 | echo "$ac_cs_version"; exit 0 ;; |
---|
4347 | --he | --h) |
---|
4348 | # Conflict between --help and --header |
---|
4349 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
4350 | Try \`$0 --help' for more information." >&5 |
---|
4351 | echo "$as_me: error: ambiguous option: $1 |
---|
4352 | Try \`$0 --help' for more information." >&2;} |
---|
4353 | { (exit 1); exit 1; }; };; |
---|
4354 | --help | --hel | -h ) |
---|
4355 | echo "$ac_cs_usage"; exit 0 ;; |
---|
4356 | --debug | --d* | -d ) |
---|
4357 | debug=: ;; |
---|
4358 | --file | --fil | --fi | --f ) |
---|
4359 | $ac_shift |
---|
4360 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
4361 | ac_need_defaults=false;; |
---|
4362 | --header | --heade | --head | --hea ) |
---|
4363 | $ac_shift |
---|
4364 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
4365 | ac_need_defaults=false;; |
---|
4366 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
4367 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
4368 | ac_cs_silent=: ;; |
---|
4369 | |
---|
4370 | # This is an error. |
---|
4371 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
4372 | Try \`$0 --help' for more information." >&5 |
---|
4373 | echo "$as_me: error: unrecognized option: $1 |
---|
4374 | Try \`$0 --help' for more information." >&2;} |
---|
4375 | { (exit 1); exit 1; }; } ;; |
---|
4376 | |
---|
4377 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
4378 | |
---|
4379 | esac |
---|
4380 | shift |
---|
4381 | done |
---|
4382 | |
---|
4383 | ac_configure_extra_args= |
---|
4384 | |
---|
4385 | if $ac_cs_silent; then |
---|
4386 | exec 6>/dev/null |
---|
4387 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
4388 | fi |
---|
4389 | |
---|
4390 | _ACEOF |
---|
4391 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4392 | if \$ac_cs_recheck; then |
---|
4393 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
4394 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
4395 | fi |
---|
4396 | |
---|
4397 | _ACEOF |
---|
4398 | |
---|
4399 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4400 | # |
---|
4401 | # INIT-COMMANDS section. |
---|
4402 | # |
---|
4403 | |
---|
4404 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
4405 | |
---|
4406 | _ACEOF |
---|
4407 | |
---|
4408 | |
---|
4409 | |
---|
4410 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4411 | for ac_config_target in $ac_config_targets |
---|
4412 | do |
---|
4413 | case "$ac_config_target" in |
---|
4414 | # Handling of arguments. |
---|
4415 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
4416 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
4417 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
4418 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
4419 | { (exit 1); exit 1; }; };; |
---|
4420 | esac |
---|
4421 | done |
---|
4422 | |
---|
4423 | # If the user did not use the arguments to specify the items to instantiate, |
---|
4424 | # then the envvar interface is used. Set only those that are not. |
---|
4425 | # We use the long form for the default assignment because of an extremely |
---|
4426 | # bizarre bug on SunOS 4.1.3. |
---|
4427 | if $ac_need_defaults; then |
---|
4428 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
4429 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
4430 | fi |
---|
4431 | |
---|
4432 | # Have a temporary directory for convenience. Make it in the build tree |
---|
4433 | # simply because there is no reason to put it here, and in addition, |
---|
4434 | # creating and moving files from /tmp can sometimes cause problems. |
---|
4435 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
4436 | $debug || |
---|
4437 | { |
---|
4438 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
4439 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
4440 | } |
---|
4441 | |
---|
4442 | # Create a (secure) tmp directory for tmp files. |
---|
4443 | |
---|
4444 | { |
---|
4445 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
4446 | test -n "$tmp" && test -d "$tmp" |
---|
4447 | } || |
---|
4448 | { |
---|
4449 | tmp=./confstat$$-$RANDOM |
---|
4450 | (umask 077 && mkdir $tmp) |
---|
4451 | } || |
---|
4452 | { |
---|
4453 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
4454 | { (exit 1); exit 1; } |
---|
4455 | } |
---|
4456 | |
---|
4457 | _ACEOF |
---|
4458 | |
---|
4459 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4460 | |
---|
4461 | # |
---|
4462 | # CONFIG_FILES section. |
---|
4463 | # |
---|
4464 | |
---|
4465 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
4466 | # This happens for instance when ./config.status config.h |
---|
4467 | if test -n "\$CONFIG_FILES"; then |
---|
4468 | # Protect against being on the right side of a sed subst in config.status. |
---|
4469 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
4470 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
4471 | s,@SHELL@,$SHELL,;t t |
---|
4472 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
4473 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
4474 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
4475 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
4476 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
4477 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
4478 | s,@exec_prefix@,$exec_prefix,;t t |
---|
4479 | s,@prefix@,$prefix,;t t |
---|
4480 | s,@program_transform_name@,$program_transform_name,;t t |
---|
4481 | s,@bindir@,$bindir,;t t |
---|
4482 | s,@sbindir@,$sbindir,;t t |
---|
4483 | s,@libexecdir@,$libexecdir,;t t |
---|
4484 | s,@datadir@,$datadir,;t t |
---|
4485 | s,@sysconfdir@,$sysconfdir,;t t |
---|
4486 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
4487 | s,@localstatedir@,$localstatedir,;t t |
---|
4488 | s,@libdir@,$libdir,;t t |
---|
4489 | s,@includedir@,$includedir,;t t |
---|
4490 | s,@oldincludedir@,$oldincludedir,;t t |
---|
4491 | s,@infodir@,$infodir,;t t |
---|
4492 | s,@mandir@,$mandir,;t t |
---|
4493 | s,@build_alias@,$build_alias,;t t |
---|
4494 | s,@host_alias@,$host_alias,;t t |
---|
4495 | s,@target_alias@,$target_alias,;t t |
---|
4496 | s,@DEFS@,$DEFS,;t t |
---|
4497 | s,@ECHO_C@,$ECHO_C,;t t |
---|
4498 | s,@ECHO_N@,$ECHO_N,;t t |
---|
4499 | s,@ECHO_T@,$ECHO_T,;t t |
---|
4500 | s,@LIBS@,$LIBS,;t t |
---|
4501 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
4502 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
4503 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
4504 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
4505 | s,@PACKAGE@,$PACKAGE,;t t |
---|
4506 | s,@VERSION@,$VERSION,;t t |
---|
4507 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
4508 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
4509 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
4510 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
4511 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
4512 | s,@AMTAR@,$AMTAR,;t t |
---|
4513 | s,@install_sh@,$install_sh,;t t |
---|
4514 | s,@STRIP@,$STRIP,;t t |
---|
4515 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
4516 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
4517 | s,@AWK@,$AWK,;t t |
---|
4518 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
4519 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
4520 | s,@CC@,$CC,;t t |
---|
4521 | s,@CFLAGS@,$CFLAGS,;t t |
---|
4522 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
4523 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
4524 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
4525 | s,@EXEEXT@,$EXEEXT,;t t |
---|
4526 | s,@OBJEXT@,$OBJEXT,;t t |
---|
4527 | s,@DEPDIR@,$DEPDIR,;t t |
---|
4528 | s,@am__include@,$am__include,;t t |
---|
4529 | s,@am__quote@,$am__quote,;t t |
---|
4530 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
4531 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
4532 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
4533 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
4534 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
4535 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
4536 | s,@build@,$build,;t t |
---|
4537 | s,@build_cpu@,$build_cpu,;t t |
---|
4538 | s,@build_vendor@,$build_vendor,;t t |
---|
4539 | s,@build_os@,$build_os,;t t |
---|
4540 | s,@host@,$host,;t t |
---|
4541 | s,@host_cpu@,$host_cpu,;t t |
---|
4542 | s,@host_vendor@,$host_vendor,;t t |
---|
4543 | s,@host_os@,$host_os,;t t |
---|
4544 | s,@LIBRPATHX@,$LIBRPATHX,;t t |
---|
4545 | s,@LTLIBRPATHX@,$LTLIBRPATHX,;t t |
---|
4546 | s,@LIBRPATHY@,$LIBRPATHY,;t t |
---|
4547 | s,@LTLIBRPATHY@,$LTLIBRPATHY,;t t |
---|
4548 | s,@global_top_auxdir@,$global_top_auxdir,;t t |
---|
4549 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
4550 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
4551 | CEOF |
---|
4552 | |
---|
4553 | _ACEOF |
---|
4554 | |
---|
4555 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4556 | # Split the substitutions into bite-sized pieces for seds with |
---|
4557 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4558 | ac_max_sed_lines=48 |
---|
4559 | ac_sed_frag=1 # Number of current file. |
---|
4560 | ac_beg=1 # First line for current file. |
---|
4561 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
4562 | ac_more_lines=: |
---|
4563 | ac_sed_cmds= |
---|
4564 | while $ac_more_lines; do |
---|
4565 | if test $ac_beg -gt 1; then |
---|
4566 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
4567 | else |
---|
4568 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
4569 | fi |
---|
4570 | if test ! -s $tmp/subs.frag; then |
---|
4571 | ac_more_lines=false |
---|
4572 | else |
---|
4573 | # The purpose of the label and of the branching condition is to |
---|
4574 | # speed up the sed processing (if there are no `@' at all, there |
---|
4575 | # is no need to browse any of the substitutions). |
---|
4576 | # These are the two extra sed commands mentioned above. |
---|
4577 | (echo ':t |
---|
4578 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
4579 | if test -z "$ac_sed_cmds"; then |
---|
4580 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
4581 | else |
---|
4582 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
4583 | fi |
---|
4584 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
4585 | ac_beg=$ac_end |
---|
4586 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
4587 | fi |
---|
4588 | done |
---|
4589 | if test -z "$ac_sed_cmds"; then |
---|
4590 | ac_sed_cmds=cat |
---|
4591 | fi |
---|
4592 | fi # test -n "$CONFIG_FILES" |
---|
4593 | |
---|
4594 | _ACEOF |
---|
4595 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4596 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
4597 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4598 | case $ac_file in |
---|
4599 | - | *:- | *:-:* ) # input from stdin |
---|
4600 | cat >$tmp/stdin |
---|
4601 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
4602 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
4603 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
4604 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
4605 | * ) ac_file_in=$ac_file.in ;; |
---|
4606 | esac |
---|
4607 | |
---|
4608 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
4609 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
4610 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4611 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
4612 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
4613 | X"$ac_file" : 'X\(/\)' \| \ |
---|
4614 | . : '\(.\)' 2>/dev/null || |
---|
4615 | echo X"$ac_file" | |
---|
4616 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4617 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4618 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4619 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4620 | s/.*/./; q'` |
---|
4621 | { if $as_mkdir_p; then |
---|
4622 | mkdir -p "$ac_dir" |
---|
4623 | else |
---|
4624 | as_dir="$ac_dir" |
---|
4625 | as_dirs= |
---|
4626 | while test ! -d "$as_dir"; do |
---|
4627 | as_dirs="$as_dir $as_dirs" |
---|
4628 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
4629 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4630 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
4631 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
4632 | X"$as_dir" : 'X\(/\)' \| \ |
---|
4633 | . : '\(.\)' 2>/dev/null || |
---|
4634 | echo X"$as_dir" | |
---|
4635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4636 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4637 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4638 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4639 | s/.*/./; q'` |
---|
4640 | done |
---|
4641 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
4642 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
4643 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
4644 | { (exit 1); exit 1; }; }; } |
---|
4645 | |
---|
4646 | ac_builddir=. |
---|
4647 | |
---|
4648 | if test "$ac_dir" != .; then |
---|
4649 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
4650 | # A "../" for each directory in $ac_dir_suffix. |
---|
4651 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
4652 | else |
---|
4653 | ac_dir_suffix= ac_top_builddir= |
---|
4654 | fi |
---|
4655 | |
---|
4656 | case $srcdir in |
---|
4657 | .) # No --srcdir option. We are building in place. |
---|
4658 | ac_srcdir=. |
---|
4659 | if test -z "$ac_top_builddir"; then |
---|
4660 | ac_top_srcdir=. |
---|
4661 | else |
---|
4662 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
4663 | fi ;; |
---|
4664 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
4665 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
4666 | ac_top_srcdir=$srcdir ;; |
---|
4667 | *) # Relative path. |
---|
4668 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
4669 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
4670 | esac |
---|
4671 | case "$ac_dir" in |
---|
4672 | .) ac_abs_builddir=$ac_builddir;; |
---|
4673 | *) |
---|
4674 | case $ac_builddir in |
---|
4675 | .) ac_abs_builddir="$ac_dir";; |
---|
4676 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; |
---|
4677 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; |
---|
4678 | esac;; |
---|
4679 | esac |
---|
4680 | case "$ac_dir" in |
---|
4681 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
4682 | *) |
---|
4683 | case ${ac_top_builddir}. in |
---|
4684 | .) ac_abs_top_builddir="$ac_dir";; |
---|
4685 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
4686 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; |
---|
4687 | esac;; |
---|
4688 | esac |
---|
4689 | case "$ac_dir" in |
---|
4690 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
4691 | *) |
---|
4692 | case $ac_srcdir in |
---|
4693 | .) ac_abs_srcdir="$ac_dir";; |
---|
4694 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
4695 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; |
---|
4696 | esac;; |
---|
4697 | esac |
---|
4698 | case "$ac_dir" in |
---|
4699 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
4700 | *) |
---|
4701 | case $ac_top_srcdir in |
---|
4702 | .) ac_abs_top_srcdir="$ac_dir";; |
---|
4703 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
4704 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; |
---|
4705 | esac;; |
---|
4706 | esac |
---|
4707 | |
---|
4708 | |
---|
4709 | case $INSTALL in |
---|
4710 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
4711 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
4712 | esac |
---|
4713 | |
---|
4714 | if test x"$ac_file" != x-; then |
---|
4715 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
4716 | echo "$as_me: creating $ac_file" >&6;} |
---|
4717 | rm -f "$ac_file" |
---|
4718 | fi |
---|
4719 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
4720 | # use $as_me), people would be surprised to read: |
---|
4721 | # /* config.h. Generated by config.status. */ |
---|
4722 | if test x"$ac_file" = x-; then |
---|
4723 | configure_input= |
---|
4724 | else |
---|
4725 | configure_input="$ac_file. " |
---|
4726 | fi |
---|
4727 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
4728 | sed 's,.*/,,'` by configure." |
---|
4729 | |
---|
4730 | # First look for the input files in the build tree, otherwise in the |
---|
4731 | # src tree. |
---|
4732 | ac_file_inputs=`IFS=: |
---|
4733 | for f in $ac_file_in; do |
---|
4734 | case $f in |
---|
4735 | -) echo $tmp/stdin ;; |
---|
4736 | [\\/$]*) |
---|
4737 | # Absolute (can't be DOS-style, as IFS=:) |
---|
4738 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
4739 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
4740 | { (exit 1); exit 1; }; } |
---|
4741 | echo "$f";; |
---|
4742 | *) # Relative |
---|
4743 | if test -f "$f"; then |
---|
4744 | # Build tree |
---|
4745 | echo "$f" |
---|
4746 | elif test -f "$srcdir/$f"; then |
---|
4747 | # Source tree |
---|
4748 | echo "$srcdir/$f" |
---|
4749 | else |
---|
4750 | # /dev/null tree |
---|
4751 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
4752 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
4753 | { (exit 1); exit 1; }; } |
---|
4754 | fi;; |
---|
4755 | esac |
---|
4756 | done` || { (exit 1); exit 1; } |
---|
4757 | _ACEOF |
---|
4758 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
4759 | sed "$ac_vpsub |
---|
4760 | $extrasub |
---|
4761 | _ACEOF |
---|
4762 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4763 | :t |
---|
4764 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
4765 | s,@configure_input@,$configure_input,;t t |
---|
4766 | s,@srcdir@,$ac_srcdir,;t t |
---|
4767 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
4768 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
4769 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
4770 | s,@builddir@,$ac_builddir,;t t |
---|
4771 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
4772 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
4773 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
4774 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
4775 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
4776 | rm -f $tmp/stdin |
---|
4777 | if test x"$ac_file" != x-; then |
---|
4778 | mv $tmp/out $ac_file |
---|
4779 | else |
---|
4780 | cat $tmp/out |
---|
4781 | rm -f $tmp/out |
---|
4782 | fi |
---|
4783 | |
---|
4784 | done |
---|
4785 | _ACEOF |
---|
4786 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4787 | |
---|
4788 | # |
---|
4789 | # CONFIG_COMMANDS section. |
---|
4790 | # |
---|
4791 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
4792 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
4793 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
4794 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
4795 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4796 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
4797 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
4798 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
4799 | . : '\(.\)' 2>/dev/null || |
---|
4800 | echo X"$ac_dest" | |
---|
4801 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4802 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4803 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4804 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4805 | s/.*/./; q'` |
---|
4806 | { if $as_mkdir_p; then |
---|
4807 | mkdir -p "$ac_dir" |
---|
4808 | else |
---|
4809 | as_dir="$ac_dir" |
---|
4810 | as_dirs= |
---|
4811 | while test ! -d "$as_dir"; do |
---|
4812 | as_dirs="$as_dir $as_dirs" |
---|
4813 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
4814 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4815 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
4816 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
4817 | X"$as_dir" : 'X\(/\)' \| \ |
---|
4818 | . : '\(.\)' 2>/dev/null || |
---|
4819 | echo X"$as_dir" | |
---|
4820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4821 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4822 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4823 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4824 | s/.*/./; q'` |
---|
4825 | done |
---|
4826 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
4827 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
4828 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
4829 | { (exit 1); exit 1; }; }; } |
---|
4830 | |
---|
4831 | ac_builddir=. |
---|
4832 | |
---|
4833 | if test "$ac_dir" != .; then |
---|
4834 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
4835 | # A "../" for each directory in $ac_dir_suffix. |
---|
4836 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
4837 | else |
---|
4838 | ac_dir_suffix= ac_top_builddir= |
---|
4839 | fi |
---|
4840 | |
---|
4841 | case $srcdir in |
---|
4842 | .) # No --srcdir option. We are building in place. |
---|
4843 | ac_srcdir=. |
---|
4844 | if test -z "$ac_top_builddir"; then |
---|
4845 | ac_top_srcdir=. |
---|
4846 | else |
---|
4847 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
4848 | fi ;; |
---|
4849 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
4850 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
4851 | ac_top_srcdir=$srcdir ;; |
---|
4852 | *) # Relative path. |
---|
4853 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
4854 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
4855 | esac |
---|
4856 | case "$ac_dir" in |
---|
4857 | .) ac_abs_builddir=$ac_builddir;; |
---|
4858 | *) |
---|
4859 | case $ac_builddir in |
---|
4860 | .) ac_abs_builddir="$ac_dir";; |
---|
4861 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; |
---|
4862 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; |
---|
4863 | esac;; |
---|
4864 | esac |
---|
4865 | case "$ac_dir" in |
---|
4866 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
4867 | *) |
---|
4868 | case ${ac_top_builddir}. in |
---|
4869 | .) ac_abs_top_builddir="$ac_dir";; |
---|
4870 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
4871 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; |
---|
4872 | esac;; |
---|
4873 | esac |
---|
4874 | case "$ac_dir" in |
---|
4875 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
4876 | *) |
---|
4877 | case $ac_srcdir in |
---|
4878 | .) ac_abs_srcdir="$ac_dir";; |
---|
4879 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
4880 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; |
---|
4881 | esac;; |
---|
4882 | esac |
---|
4883 | case "$ac_dir" in |
---|
4884 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
4885 | *) |
---|
4886 | case $ac_top_srcdir in |
---|
4887 | .) ac_abs_top_srcdir="$ac_dir";; |
---|
4888 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
4889 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; |
---|
4890 | esac;; |
---|
4891 | esac |
---|
4892 | |
---|
4893 | |
---|
4894 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
4895 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
4896 | case $ac_dest in |
---|
4897 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
4898 | # Strip MF so we end up with the name of the file. |
---|
4899 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
4900 | # Check whether this is an Automake generated Makefile or not. |
---|
4901 | # We used to match only the files named `Makefile.in', but |
---|
4902 | # some people rename them; so instead we look at the file content. |
---|
4903 | # Grep'ing the first line is not enough: some people post-process |
---|
4904 | # each Makefile.in and add a new line on top of each file to say so. |
---|
4905 | # So let's grep whole file. |
---|
4906 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
4907 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
4908 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4909 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
4910 | X"$mf" : 'X\(//\)$' \| \ |
---|
4911 | X"$mf" : 'X\(/\)' \| \ |
---|
4912 | . : '\(.\)' 2>/dev/null || |
---|
4913 | echo X"$mf" | |
---|
4914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4915 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4916 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4917 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4918 | s/.*/./; q'` |
---|
4919 | else |
---|
4920 | continue |
---|
4921 | fi |
---|
4922 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
4923 | # Extract the definition of DEP_FILES from the Makefile without |
---|
4924 | # running `make'. |
---|
4925 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
4926 | test -z "$DEPDIR" && continue |
---|
4927 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
4928 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
4929 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
4930 | # We invoke sed twice because it is the simplest approach to |
---|
4931 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
4932 | for file in `sed -n -e ' |
---|
4933 | /^DEP_FILES = .*\\\\$/ { |
---|
4934 | s/^DEP_FILES = // |
---|
4935 | :loop |
---|
4936 | s/\\\\$// |
---|
4937 | p |
---|
4938 | n |
---|
4939 | /\\\\$/ b loop |
---|
4940 | p |
---|
4941 | } |
---|
4942 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
4943 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
4944 | # Make sure the directory exists. |
---|
4945 | test -f "$dirpart/$file" && continue |
---|
4946 | fdir=`(dirname "$file") 2>/dev/null || |
---|
4947 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4948 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
4949 | X"$file" : 'X\(//\)$' \| \ |
---|
4950 | X"$file" : 'X\(/\)' \| \ |
---|
4951 | . : '\(.\)' 2>/dev/null || |
---|
4952 | echo X"$file" | |
---|
4953 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4954 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4955 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4956 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4957 | s/.*/./; q'` |
---|
4958 | { if $as_mkdir_p; then |
---|
4959 | mkdir -p $dirpart/$fdir |
---|
4960 | else |
---|
4961 | as_dir=$dirpart/$fdir |
---|
4962 | as_dirs= |
---|
4963 | while test ! -d "$as_dir"; do |
---|
4964 | as_dirs="$as_dir $as_dirs" |
---|
4965 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
4966 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4967 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
4968 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
4969 | X"$as_dir" : 'X\(/\)' \| \ |
---|
4970 | . : '\(.\)' 2>/dev/null || |
---|
4971 | echo X"$as_dir" | |
---|
4972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
4973 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
4974 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
4975 | /^X\(\/\).*/{ s//\1/; q; } |
---|
4976 | s/.*/./; q'` |
---|
4977 | done |
---|
4978 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
4979 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
4980 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
4981 | { (exit 1); exit 1; }; }; } |
---|
4982 | |
---|
4983 | # echo "creating $dirpart/$file" |
---|
4984 | echo '# dummy' > "$dirpart/$file" |
---|
4985 | done |
---|
4986 | done |
---|
4987 | ;; |
---|
4988 | esac |
---|
4989 | done |
---|
4990 | _ACEOF |
---|
4991 | |
---|
4992 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
4993 | |
---|
4994 | { (exit 0); exit 0; } |
---|
4995 | _ACEOF |
---|
4996 | chmod +x $CONFIG_STATUS |
---|
4997 | ac_clean_files=$ac_clean_files_save |
---|
4998 | |
---|
4999 | |
---|
5000 | # configure is writing to config.log, and then calls config.status. |
---|
5001 | # config.status does its own redirection, appending to config.log. |
---|
5002 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
5003 | # by configure, so config.status won't be able to write to it; its |
---|
5004 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
5005 | # effectively closing config.log, so it can be properly (re)opened and |
---|
5006 | # appended to by config.status. When coming back to configure, we |
---|
5007 | # need to make the FD available again. |
---|
5008 | if test "$no_create" != yes; then |
---|
5009 | ac_cs_success=: |
---|
5010 | ac_config_status_args= |
---|
5011 | test "$silent" = yes && |
---|
5012 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
5013 | exec 5>/dev/null |
---|
5014 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
5015 | exec 5>>config.log |
---|
5016 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
5017 | # would make configure fail if this is the last instruction. |
---|
5018 | $ac_cs_success || { (exit 1); exit 1; } |
---|
5019 | fi |
---|
5020 | |
---|