upgrade to new version of br2684ctl
[openwrt/svn-archive/archive.git] / package / linux-atm / patches / 000-debian_16.patch
1 --- linux-atm-2.4.1.orig/Makefile.in
2 +++ linux-atm-2.4.1/Makefile.in
3 @@ -1,4 +1,4 @@
4 -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
5 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
6
7 # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
8 # This Makefile.in is free software; the Free Software Foundation
9 @@ -100,14 +100,14 @@
10
11 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
12
13 -TAR = gtar
14 +TAR = tar
15 GZIP_ENV = --best
16 all: all-redirect
17 .SUFFIXES:
18 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
19 - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
20 + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
21
22 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
23 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
24 cd $(top_builddir) \
25 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
26
27 @@ -225,7 +225,7 @@
28 awk ' { files[$$0] = 1; } \
29 END { for (i in files) print i; }'`; \
30 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
31 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
32 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
33
34 mostlyclean-tags:
35
36 @@ -274,6 +274,11 @@
37 -rm -rf $(distdir)
38 mkdir $(distdir)
39 -chmod 777 $(distdir)
40 + here=`cd $(top_builddir) && pwd`; \
41 + top_distdir=`cd $(distdir) && pwd`; \
42 + distdir=`cd $(distdir) && pwd`; \
43 + cd $(top_srcdir) \
44 + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
45 @for file in $(DISTFILES); do \
46 d=$(srcdir); \
47 if test -d $$d/$$file; then \
48 --- linux-atm-2.4.1.orig/aclocal.m4
49 +++ linux-atm-2.4.1/aclocal.m4
50 @@ -1,4 +1,4 @@
51 -dnl aclocal.m4 generated automatically by aclocal 1.4-p5
52 +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
53
54 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
55 dnl This file is free software; the Free Software Foundation
56 @@ -43,7 +43,8 @@
57 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
58
59 AC_DEFUN([AM_INIT_AUTOMAKE],
60 -[AC_REQUIRE([AC_PROG_INSTALL])
61 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
62 +AC_REQUIRE([AC_PROG_INSTALL])
63 PACKAGE=[$1]
64 AC_SUBST(PACKAGE)
65 VERSION=[$2]
66 @@ -59,13 +60,42 @@
67 AC_REQUIRE([AC_ARG_PROGRAM])
68 dnl FIXME This is truly gross.
69 missing_dir=`cd $ac_aux_dir && pwd`
70 -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
71 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
72 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
73 -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
74 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
75 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
76 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
77 AC_REQUIRE([AC_PROG_MAKE_SET])])
78
79 +# Copyright 2002 Free Software Foundation, Inc.
80 +
81 +# This program is free software; you can redistribute it and/or modify
82 +# it under the terms of the GNU General Public License as published by
83 +# the Free Software Foundation; either version 2, or (at your option)
84 +# any later version.
85 +
86 +# This program is distributed in the hope that it will be useful,
87 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
88 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
89 +# GNU General Public License for more details.
90 +
91 +# You should have received a copy of the GNU General Public License
92 +# along with this program; if not, write to the Free Software
93 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
94 +
95 +# AM_AUTOMAKE_VERSION(VERSION)
96 +# ----------------------------
97 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
98 +# generated from the m4 files accompanying Automake X.Y.
99 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
100 +
101 +# AM_SET_CURRENT_AUTOMAKE_VERSION
102 +# -------------------------------
103 +# Call AM_AUTOMAKE_VERSION so it can be traced.
104 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
105 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
106 + [AM_AUTOMAKE_VERSION([1.4-p6])])
107 +
108 #
109 # Check to make sure that the build environment is sane.
110 #
111 @@ -130,13 +160,14 @@
112 dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
113 AC_DEFUN([AM_PROG_LEX],
114 [missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
115 -AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
116 +AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
117 AC_PROG_LEX
118 AC_DECL_YYTEXT])
119
120 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
121
122 # serial 46 AC_PROG_LIBTOOL
123 +
124 AC_DEFUN([AC_PROG_LIBTOOL],
125 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
126
127 @@ -162,6 +193,8 @@
128 AC_REQUIRE([AC_PROG_LD])dnl
129 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
130 AC_REQUIRE([AC_PROG_NM])dnl
131 +AC_REQUIRE([LT_AC_PROG_SED])dnl
132 +
133 AC_REQUIRE([AC_PROG_LN_S])dnl
134 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
135 AC_REQUIRE([AC_OBJEXT])dnl
136 @@ -262,9 +295,30 @@
137
138 ])
139
140 +# AC_LIBTOOL_HEADER_ASSERT
141 +# ------------------------
142 +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
143 +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
144 + [lt_cv_func_assert_works],
145 + [case $host in
146 + *-*-solaris*)
147 + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
148 + case `$CC --version 2>/dev/null` in
149 + [[12]].*) lt_cv_func_assert_works=no ;;
150 + *) lt_cv_func_assert_works=yes ;;
151 + esac
152 + fi
153 + ;;
154 + esac])
155 +
156 +if test "x$lt_cv_func_assert_works" = xyes; then
157 + AC_CHECK_HEADERS(assert.h)
158 +fi
159 +])# AC_LIBTOOL_HEADER_ASSERT
160 +
161 # _LT_AC_CHECK_DLFCN
162 # --------------------
163 -AC_DEFUN(_LT_AC_CHECK_DLFCN,
164 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
165 [AC_CHECK_HEADERS(dlfcn.h)
166 ])# _LT_AC_CHECK_DLFCN
167
168 @@ -282,10 +336,10 @@
169 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
170
171 # Character class describing NM global symbol codes.
172 -[symcode='[BCDEGRST]']
173 +symcode='[[BCDEGRST]]'
174
175 # Regexp to match symbols that can be accessed directly from C.
176 -[sympat='\([_A-Za-z][_A-Za-z0-9]*\)']
177 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
178
179 # Transform the above into a raw symbol and a C symbol.
180 symxfrm='\1 \2\3 \3'
181 @@ -293,25 +347,32 @@
182 # Transform an extracted symbol line into a proper C declaration
183 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
184
185 +# Transform an extracted symbol line into symbol name and symbol address
186 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
187 +
188 # Define system-specific variables.
189 case $host_os in
190 aix*)
191 - [symcode='[BCDT]']
192 + symcode='[[BCDT]]'
193 ;;
194 cygwin* | mingw* | pw32*)
195 - [symcode='[ABCDGISTW]']
196 + symcode='[[ABCDGISTW]]'
197 ;;
198 hpux*) # Its linker distinguishes data from code symbols
199 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
200 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
201 + ;;
202 +irix* | nonstopux*)
203 + symcode='[[BCDEGRST]]'
204 ;;
205 -irix*)
206 - [symcode='[BCDEGRST]']
207 +osf*)
208 + symcode='[[BCDEGQRST]]'
209 ;;
210 solaris* | sysv5*)
211 - [symcode='[BDT]']
212 + symcode='[[BDT]]'
213 ;;
214 sysv4)
215 - [symcode='[DFNSTU]']
216 + symcode='[[DFNSTU]]'
217 ;;
218 esac
219
220 @@ -325,14 +386,14 @@
221
222 # If we're using GNU nm, then use its standard symbol codes.
223 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
224 - [symcode='[ABCDGISTW]']
225 + symcode='[[ABCDGISTW]]'
226 fi
227
228 # Try without a prefix undercore, then with it.
229 for ac_symprfx in "" "_"; do
230
231 # Write the raw and C identifiers.
232 -[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
233 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
234
235 # Check to see that the pipe works correctly.
236 pipe_works=no
237 @@ -374,23 +435,23 @@
238
239 cat <<EOF >> conftest.$ac_ext
240 #if defined (__STDC__) && __STDC__
241 -# define lt_ptr_t void *
242 +# define lt_ptr void *
243 #else
244 -# define lt_ptr_t char *
245 +# define lt_ptr char *
246 # define const
247 #endif
248
249 /* The mapping between symbol names and symbols. */
250 const struct {
251 const char *name;
252 - lt_ptr_t address;
253 + lt_ptr address;
254 }
255 -[lt_preloaded_symbols[] =]
256 +lt_preloaded_symbols[[]] =
257 {
258 EOF
259 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
260 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
261 cat <<\EOF >> conftest.$ac_ext
262 - {0, (lt_ptr_t) 0}
263 + {0, (lt_ptr) 0}
264 };
265
266 #ifdef __cplusplus
267 @@ -403,7 +464,7 @@
268 save_CFLAGS="$CFLAGS"
269 LIBS="conftstm.$ac_objext"
270 CFLAGS="$CFLAGS$no_builtin_flag"
271 - if AC_TRY_EVAL(ac_link) && test -s conftest; then
272 + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
273 pipe_works=yes
274 fi
275 LIBS="$save_LIBS"
276 @@ -434,10 +495,13 @@
277 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
279 global_symbol_to_cdecl=
280 + global_symbol_to_c_name_address=
281 else
282 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
283 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
284 fi
285 -if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
286 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
287 +then
288 AC_MSG_RESULT(failed)
289 else
290 AC_MSG_RESULT(ok)
291 @@ -455,16 +519,17 @@
292 *-DOS) lt_cv_sys_path_separator=';' ;;
293 *) lt_cv_sys_path_separator=':' ;;
294 esac
295 + PATH_SEPARATOR=$lt_cv_sys_path_separator
296 fi
297 ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
298
299 # _LT_AC_PROG_ECHO_BACKSLASH
300 # --------------------------
301 # Add some code to the start of the generated configure script which
302 -# will find an echo command which doesn;t interpret backslashes.
303 +# will find an echo command which doesn't interpret backslashes.
304 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
305 [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
306 - [AC_DIVERT_PUSH(NOTICE)])
307 + [AC_DIVERT_PUSH(NOTICE)])
308 _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
309
310 # Check that we are running under the correct shell.
311 @@ -530,7 +595,7 @@
312 #
313 # So, first we look for a working echo in the user's PATH.
314
315 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
316 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317 for dir in $PATH /usr/ucb; do
318 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
319 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
320 @@ -619,7 +684,7 @@
321 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
322 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
323 # ------------------------------------------------------------------
324 -AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,
325 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
326 [if test "$cross_compiling" = yes; then :
327 [$4]
328 else
329 @@ -706,7 +771,7 @@
330
331 # AC_LIBTOOL_DLOPEN_SELF
332 # -------------------
333 -AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,
334 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
335 [if test "x$enable_dlopen" != xyes; then
336 enable_dlopen=unknown
337 enable_dlopen_self=unknown
338 @@ -728,16 +793,22 @@
339 ;;
340
341 *)
342 - AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
343 - [AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
344 - [AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
345 - [AC_CHECK_LIB(svld, dlopen,
346 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
347 - [AC_CHECK_LIB(dld, shl_load,
348 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
349 + AC_CHECK_FUNC([shl_load],
350 + [lt_cv_dlopen="shl_load"],
351 + [AC_CHECK_LIB([dld], [shl_load],
352 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
353 + [AC_CHECK_FUNC([dlopen],
354 + [lt_cv_dlopen="dlopen"],
355 + [AC_CHECK_LIB([dl], [dlopen],
356 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
357 + [AC_CHECK_LIB([svld], [dlopen],
358 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
359 + [AC_CHECK_LIB([dld], [dld_link],
360 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
361 + ])
362 ])
363 - ])
364 - ])
365 + ])
366 + ])
367 ])
368 ;;
369 esac
370 @@ -800,10 +871,10 @@
371 # Sed substitution that helps us do robust quoting. It backslashifies
372 # metacharacters that are still active within double-quoted strings.
373 Xsed='sed -e s/^X//'
374 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
375 +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
376
377 # Same as above, but do not quote variable references.
378 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
379 +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
380
381 # Sed substitution to delay expansion of an escaped shell variable in a
382 # double_quote_subst'ed string.
383 @@ -872,8 +943,15 @@
384 old_postuninstall_cmds=
385
386 if test -n "$RANLIB"; then
387 + case $host_os in
388 + openbsd*)
389 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
390 + ;;
391 + *)
392 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
393 + ;;
394 + esac
395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
396 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
397 fi
398
399 # Allow CC to be a program name with arguments.
400 @@ -893,7 +971,7 @@
401 AC_MSG_RESULT($objdir)
402
403
404 -AC_ARG_WITH(pic,
405 +AC_ARG_WITH(pic,
406 [ --with-pic try to use only PIC/non-PIC objects [default=use both]],
407 pic_mode="$withval", pic_mode=default)
408 test -z "$pic_mode" && pic_mode=default
409 @@ -921,7 +999,7 @@
410 # libC (AIX C++ library), which obviously doesn't included in libraries
411 # list by gcc. This cause undefined symbols with -static flags.
412 # This hack allows C programs to be linked with "-static -ldl", but
413 - # we not sure about C++ programs.
414 + # not sure about C++ programs.
415 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
416 ;;
417 amigaos*)
418 @@ -930,7 +1008,7 @@
419 # like `-m68040'.
420 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
421 ;;
422 - beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
423 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
424 # PIC is the default for these OSes.
425 ;;
426 darwin* | rhapsody*)
427 @@ -956,13 +1034,13 @@
428 # PORTME Check for PIC flags for the system compiler.
429 case $host_os in
430 aix3* | aix4* | aix5*)
431 + lt_cv_prog_cc_wl='-Wl,'
432 # All AIX code is PIC.
433 if test "$host_cpu" = ia64; then
434 - # AIX 5 now supports IA64 processor
435 - lt_cv_prog_cc_static='-Bstatic'
436 - lt_cv_prog_cc_wl='-Wl,'
437 + # AIX 5 now supports IA64 processor
438 + lt_cv_prog_cc_static='-Bstatic'
439 else
440 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
441 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
442 fi
443 ;;
444
445 @@ -973,7 +1051,7 @@
446 lt_cv_prog_cc_pic='+Z'
447 ;;
448
449 - irix5* | irix6*)
450 + irix5* | irix6* | nonstopux*)
451 lt_cv_prog_cc_wl='-Wl,'
452 lt_cv_prog_cc_static='-non_shared'
453 # PIC (with -KPIC) is the default.
454 @@ -1017,11 +1095,7 @@
455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
456 lt_cv_prog_cc_pic='-KPIC'
457 lt_cv_prog_cc_static='-Bstatic'
458 - if test "x$host_vendor" = xsni; then
459 - lt_cv_prog_cc_wl='-LD'
460 - else
461 - lt_cv_prog_cc_wl='-Wl,'
462 - fi
463 + lt_cv_prog_cc_wl='-Wl,'
464 ;;
465
466 uts4*)
467 @@ -1087,7 +1161,7 @@
468 # Check for any special shared library compilation flags.
469 if test -n "$lt_cv_prog_cc_shlib"; then
470 AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
471 - if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then :
472 + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
473 else
474 AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
475 lt_cv_prog_cc_can_build_shared=no
476 @@ -1163,6 +1237,8 @@
477 lt_cv_compiler_o_lo=no
478 save_CFLAGS="$CFLAGS"
479 CFLAGS="$CFLAGS -c -o conftest.lo"
480 + save_objext="$ac_objext"
481 + ac_objext=lo
482 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
483 # The compiler can only warn and ignore the option if not recognized
484 # So say no if there are warnings
485 @@ -1172,6 +1248,7 @@
486 lt_cv_compiler_o_lo=yes
487 fi
488 ])
489 + ac_objext="$save_objext"
490 CFLAGS="$save_CFLAGS"
491 ])
492 compiler_o_lo=$lt_cv_compiler_o_lo
493 @@ -1268,7 +1345,7 @@
494 extract_expsyms_cmds=
495
496 case $host_os in
497 -cygwin* | mingw* | pw32* )
498 +cygwin* | mingw* | pw32*)
499 # FIXME: the MSVC++ port hasn't been tested in a loooong time
500 # When not using gcc, we currently assume that we are using
501 # Microsoft Visual C++.
502 @@ -1276,7 +1353,9 @@
503 with_gnu_ld=no
504 fi
505 ;;
506 -
507 +openbsd*)
508 + with_gnu_ld=no
509 + ;;
510 esac
511
512 ld_shlibs=yes
513 @@ -1363,7 +1442,7 @@
514 # can override, but on older systems we have to supply one (in ltdll.c)
515 if test "x$lt_cv_need_dllmain" = "xyes"; then
516 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
517 - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
518 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
519 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
520 else
521 ltdll_obj=
522 @@ -1376,24 +1455,25 @@
523 # Be careful not to strip the DATA tag left be newer dlltools.
524 export_symbols_cmds="$ltdll_cmds"'
525 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
526 - [sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols'
527 + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
528
529 # If the export-symbols file already is a .def file (1st line
530 # is EXPORTS), use it as is.
531 # If DATA tags from a recent dlltool are present, honour them!
532 - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
533 - cp $export_symbols $output_objdir/$soname-def;
534 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
535 + cp $export_symbols $output_objdir/$soname-def;
536 else
537 - echo EXPORTS > $output_objdir/$soname-def;
538 - _lt_hint=1;
539 - cat $export_symbols | while read symbol; do
540 - set dummy \$symbol;
541 - case \[$]# in
542 - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
543 - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
544 - esac;
545 - _lt_hint=`expr 1 + \$_lt_hint`;
546 - done;
547 + echo EXPORTS > $output_objdir/$soname-def;
548 + _lt_hint=1;
549 + cat $export_symbols | while read symbol; do
550 + set dummy \$symbol;
551 + case \[$]# in
552 + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
553 + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
554 + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
555 + esac;
556 + _lt_hint=`expr 1 + \$_lt_hint`;
557 + done;
558 fi~
559 '"$ltdll_cmds"'
560 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
561 @@ -1488,80 +1568,98 @@
562 ;;
563
564 aix4* | aix5*)
565 + if test "$host_cpu" = ia64; then
566 + # On IA64, the linker does run time linking by default, so we don't
567 + # have to do anything special.
568 + aix_use_runtimelinking=no
569 + exp_sym_flag='-Bexport'
570 + no_entry_flag=""
571 + else
572 + aix_use_runtimelinking=no
573 +
574 + # Test if we are trying to use run time linking or normal
575 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
576 + # need to do runtime linking.
577 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
578 + for ld_flag in $LDFLAGS; do
579 + case $ld_flag in
580 + *-brtl*)
581 + aix_use_runtimelinking=yes
582 + break
583 + ;;
584 + esac
585 + done
586 + esac
587 +
588 + exp_sym_flag='-bexport'
589 + no_entry_flag='-bnoentry'
590 + fi
591 +
592 # When large executables or shared objects are built, AIX ld can
593 # have problems creating the table of contents. If linking a library
594 # or program results in "error TOC overflow" add -mminimal-toc to
595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
597
598 + hardcode_direct=yes
599 archive_cmds=''
600 hardcode_libdir_separator=':'
601 if test "$GCC" = yes; then
602 - collect2name=`${CC} -print-prog-name=collect2`
603 - if test -f "$collect2name" && \
604 - strings "$collect2name" | grep resolve_lib_name >/dev/null
605 - then
606 - # We have reworked collect2
607 - hardcode_direct=yes
608 - else
609 - # We have old collect2
610 - hardcode_direct=unsupported
611 - # It fails to find uninstalled libraries when the uninstalled
612 - # path is not listed in the libpath. Setting hardcode_minus_L
613 - # to unsupported forces relinking
614 - hardcode_minus_L=yes
615 - hardcode_libdir_flag_spec='-L$libdir'
616 - hardcode_libdir_separator=
617 - fi
618 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
619 + collect2name=`${CC} -print-prog-name=collect2`
620 + if test -f "$collect2name" && \
621 + strings "$collect2name" | grep resolve_lib_name >/dev/null
622 + then
623 + # We have reworked collect2
624 + hardcode_direct=yes
625 + else
626 + # We have old collect2
627 + hardcode_direct=unsupported
628 + # It fails to find uninstalled libraries when the uninstalled
629 + # path is not listed in the libpath. Setting hardcode_minus_L
630 + # to unsupported forces relinking
631 + hardcode_minus_L=yes
632 + hardcode_libdir_flag_spec='-L$libdir'
633 + hardcode_libdir_separator=
634 + fi
635 + esac
636 +
637 shared_flag='-shared'
638 else
639 + # not using gcc
640 if test "$host_cpu" = ia64; then
641 - shared_flag='-G'
642 + shared_flag='${wl}-G'
643 else
644 - shared_flag='${wl}-bM:SRE'
645 + if test "$aix_use_runtimelinking" = yes; then
646 + shared_flag='${wl}-G'
647 + else
648 + shared_flag='${wl}-bM:SRE'
649 + fi
650 fi
651 - hardcode_direct=yes
652 fi
653
654 - if test "$host_cpu" = ia64; then
655 - # On IA64, the linker does run time linking by default, so we don't
656 - # have to do anything special.
657 - aix_use_runtimelinking=no
658 - exp_sym_flag='-Bexport'
659 - no_entry_flag=""
660 - else
661 - # Test if we are trying to use run time linking, or normal AIX style linking.
662 - # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
663 - aix_use_runtimelinking=no
664 - for ld_flag in $LDFLAGS; do
665 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
666 - aix_use_runtimelinking=yes
667 - break
668 - fi
669 - done
670 - exp_sym_flag='-bexport'
671 - no_entry_flag='-bnoentry'
672 - fi
673 # It seems that -bexpall can do strange things, so it is better to
674 # generate a list of symbols to export.
675 always_export_symbols=yes
676 if test "$aix_use_runtimelinking" = yes; then
677 + # Warning - without using the other runtime loading flags (-brtl),
678 + # -berok will link without error, but may produce a broken library.
679 + allow_undefined_flag='-berok'
680 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
681 - allow_undefined_flag=' -Wl,-G'
682 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
683 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
684 else
685 if test "$host_cpu" = ia64; then
686 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
687 - allow_undefined_flag="-znodefs"
688 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
689 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
690 + allow_undefined_flag="-z nodefs"
691 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
692 else
693 - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
694 - # Warning - without using the other run time loading flags, -berok will
695 - # link without error, but may produce a broken library.
696 - allow_undefined_flag='${wl}-berok'
697 - # This is a bit strange, but is similar to how AIX traditionally builds
698 - # it's shared libraries.
699 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
700 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
701 + # Warning - without using the other run time loading flags,
702 + # -berok will link without error, but may produce a broken library.
703 + allow_undefined_flag='${wl}-berok'
704 + # This is a bit strange, but is similar to how AIX traditionally builds
705 + # it's shared libraries.
706 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
707 fi
708 fi
709 ;;
710 @@ -1593,11 +1691,19 @@
711 ;;
712
713 darwin* | rhapsody*)
714 - allow_undefined_flag='-undefined suppress'
715 + case "$host_os" in
716 + rhapsody* | darwin1.[[012]])
717 + allow_undefined_flag='-undefined suppress'
718 + ;;
719 + *) # Darwin 1.3 on
720 + allow_undefined_flag='-flat_namespace -undefined suppress'
721 + ;;
722 + esac
723 # FIXME: Relying on posixy $() will cause problems for
724 # cross-compilation, but unfortunately the echo tests do not
725 - # yet detect zsh echo's removal of \ escapes.
726 - archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
727 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
728 + # `"' quotes if we put them in here... so don't!
729 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
730 # We need to add '_' to the symbols in $export_symbols first
731 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
732 hardcode_direct=yes
733 @@ -1649,13 +1755,14 @@
734 export_dynamic_flag_spec='${wl}-E'
735 ;;
736
737 - irix5* | irix6*)
738 + irix5* | irix6* | nonstopux*)
739 if test "$GCC" = yes; then
740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
741 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
742 else
743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
744 + hardcode_libdir_flag_spec='-rpath $libdir'
745 fi
746 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
747 hardcode_libdir_separator=:
748 link_all_deplibs=yes
749 ;;
750 @@ -1672,7 +1779,7 @@
751 ;;
752
753 newsos6)
754 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
755 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
756 hardcode_direct=yes
757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
758 hardcode_libdir_separator=:
759 @@ -1680,10 +1787,24 @@
760 ;;
761
762 openbsd*)
763 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
764 - hardcode_libdir_flag_spec='-R$libdir'
765 hardcode_direct=yes
766 hardcode_shlibpath_var=no
767 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
768 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
769 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
770 + export_dynamic_flag_spec='${wl}-E'
771 + else
772 + case "$host_os" in
773 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
774 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
775 + hardcode_libdir_flag_spec='-R$libdir'
776 + ;;
777 + *)
778 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
779 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
780 + ;;
781 + esac
782 + fi
783 ;;
784
785 os2*)
786 @@ -1728,10 +1849,39 @@
787 hardcode_shlibpath_var=no
788 runpath_var=LD_RUN_PATH
789 hardcode_runpath_var=yes
790 + export_dynamic_flag_spec='${wl}-Bexport'
791 ;;
792
793 solaris*)
794 + # gcc --version < 3.0 without binutils cannot create self contained
795 + # shared libraries reliably, requiring libgcc.a to resolve some of
796 + # the object symbols generated in some cases. Libraries that use
797 + # assert need libgcc.a to resolve __eprintf, for example. Linking
798 + # a copy of libgcc.a into every shared library to guarantee resolving
799 + # such symbols causes other problems: According to Tim Van Holder
800 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
801 + # (to the application) exception stack for one thing.
802 no_undefined_flag=' -z defs'
803 + if test "$GCC" = yes; then
804 + case `$CC --version 2>/dev/null` in
805 + [[12]].*)
806 + cat <<EOF 1>&2
807 +
808 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
809 +*** create self contained shared libraries on Solaris systems, without
810 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
811 +*** -no-undefined support, which will at least allow you to build shared
812 +*** libraries. However, you may find that when you link such libraries
813 +*** into an application without using GCC, you have to manually add
814 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
815 +*** upgrade to a newer version of GCC. Another option is to rebuild your
816 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
817 +
818 +EOF
819 + no_undefined_flag=
820 + ;;
821 + esac
822 + fi
823 # $CC -shared without GNU ld will not create a library from C++
824 # object files and a static libstdc++, better avoid it by now
825 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
826 @@ -1740,7 +1890,7 @@
827 hardcode_libdir_flag_spec='-R$libdir'
828 hardcode_shlibpath_var=no
829 case $host_os in
830 - [solaris2.[0-5] | solaris2.[0-5].*]) ;;
831 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
832 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
833 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
834 esac
835 @@ -1762,13 +1912,23 @@
836 ;;
837
838 sysv4)
839 - if test "x$host_vendor" = xsno; then
840 - archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
841 - hardcode_direct=yes # is this really true???
842 - else
843 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
844 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
845 - fi
846 + case $host_vendor in
847 + sni)
848 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
849 + hardcode_direct=yes # is this really true???
850 + ;;
851 + siemens)
852 + ## LD is ld it makes a PLAMLIB
853 + ## CC just makes a GrossModule.
854 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
855 + reload_cmds='$CC -r -o $output$reload_objs'
856 + hardcode_direct=no
857 + ;;
858 + motorola)
859 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
860 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
861 + ;;
862 + esac
863 runpath_var='LD_RUN_PATH'
864 hardcode_shlibpath_var=no
865 ;;
866 @@ -1909,6 +2069,9 @@
867
868 aix4* | aix5*)
869 version_type=linux
870 + need_lib_prefix=no
871 + need_version=no
872 + hardcode_into_libs=yes
873 if test "$host_cpu" = ia64; then
874 # AIX 5 supports IA64
875 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
876 @@ -1920,22 +2083,24 @@
877 # depend on `.', always an invalid library. This was fixed in
878 # development snapshots of GCC prior to 3.0.
879 case $host_os in
880 - [ aix4 | aix4.[01] | aix4.[01].*)]
881 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
882 - echo ' yes '
883 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
884 - :
885 - else
886 - can_build_shared=no
887 - fi
888 - ;;
889 + aix4 | aix4.[[01]] | aix4.[[01]].*)
890 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
891 + echo ' yes '
892 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
893 + :
894 + else
895 + can_build_shared=no
896 + fi
897 + ;;
898 esac
899 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
900 - # soname into executable. Probably we can add versioning support to
901 - # collect2, so additional links can be useful in future.
902 + # AIX (on Power*) has no versioning support, so currently we can
903 + # not hardcode correct soname into executable. Probably we can
904 + # add versioning support to collect2, so additional links can
905 + # be useful in future.
906 if test "$aix_use_runtimelinking" = yes; then
907 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
908 - # lib<name>.a to let people know that these are not typical AIX shared libraries.
909 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
910 + # instead of lib<name>.a to let people know that these are not
911 + # typical AIX shared libraries.
912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
913 else
914 # We preserve .a as extension for shared libraries through AIX4.2
915 @@ -1944,14 +2109,14 @@
916 soname_spec='${libname}${release}.so$major'
917 fi
918 shlibpath_var=LIBPATH
919 - deplibs_check_method=pass_all
920 fi
921 + hardcode_into_libs=yes
922 ;;
923
924 amigaos*)
925 library_names_spec='$libname.ixlibrary $libname.a'
926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
927 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | [$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
928 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
929 ;;
930
931 beos*)
932 @@ -1982,7 +2147,7 @@
933 case $GCC,$host_os in
934 yes,cygwin*)
935 library_names_spec='$libname.dll.a'
936 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
937 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
938 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
939 dldir=$destdir/`dirname \$dlpath`~
940 test -d \$dldir || mkdir -p \$dldir~
941 @@ -1992,14 +2157,14 @@
942 $rm \$dlpath'
943 ;;
944 yes,mingw*)
945 - library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
946 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
947 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
948 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
949 ;;
950 yes,pw32*)
951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
952 ;;
953 *)
954 - library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib'
955 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
956 ;;
957 esac
958 dynamic_linker='Win32 ld.exe'
959 @@ -2025,6 +2190,18 @@
960 dynamic_linker=no
961 ;;
962
963 +freebsd*-gnu*)
964 + version_type=linux
965 + need_lib_prefix=no
966 + need_version=no
967 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
968 + soname_spec='${libname}${release}.so$major'
969 + shlibpath_var=LD_LIBRARY_PATH
970 + shlibpath_overrides_runpath=no
971 + hardcode_into_libs=yes
972 + dynamic_linker='GNU/FreeBSD ld.so'
973 + ;;
974 +
975 freebsd*)
976 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
977 version_type=freebsd-$objformat
978 @@ -2076,14 +2253,17 @@
979 postinstall_cmds='chmod 555 $lib'
980 ;;
981
982 -irix5* | irix6*)
983 - version_type=irix
984 +irix5* | irix6* | nonstopux*)
985 + case $host_os in
986 + nonstopux*) version_type=nonstopux ;;
987 + *) version_type=irix ;;
988 + esac
989 need_lib_prefix=no
990 need_version=no
991 soname_spec='${libname}${release}.so$major'
992 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
993 case $host_os in
994 - irix5*)
995 + irix5* | nonstopux*)
996 libsuff= shlibsuff=
997 ;;
998 *)
999 @@ -2157,9 +2337,19 @@
1000
1001 openbsd*)
1002 version_type=sunos
1003 - if test "$with_gnu_ld" = yes; then
1004 - need_lib_prefix=no
1005 - need_version=no
1006 + need_lib_prefix=no
1007 + need_version=no
1008 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1009 + case "$host_os" in
1010 + openbsd2.[[89]] | openbsd2.[[89]].*)
1011 + shlibpath_overrides_runpath=no
1012 + ;;
1013 + *)
1014 + shlibpath_overrides_runpath=yes
1015 + ;;
1016 + esac
1017 + else
1018 + shlibpath_overrides_runpath=yes
1019 fi
1020 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
1021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1022 @@ -2177,11 +2367,13 @@
1023 osf3* | osf4* | osf5*)
1024 version_type=osf
1025 need_version=no
1026 - soname_spec='${libname}${release}.so'
1027 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
1028 + need_lib_prefix=no
1029 + soname_spec='${libname}${release}.so$major'
1030 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1031 shlibpath_var=LD_LIBRARY_PATH
1032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1034 + hardcode_into_libs=yes
1035 ;;
1036
1037 sco3.2v5*)
1038 @@ -2224,6 +2416,12 @@
1039 case $host_vendor in
1040 sni)
1041 shlibpath_overrides_runpath=no
1042 + need_lib_prefix=no
1043 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1044 + runpath_var=LD_RUN_PATH
1045 + ;;
1046 + siemens)
1047 + need_lib_prefix=no
1048 ;;
1049 motorola)
1050 need_lib_prefix=no
1051 @@ -2270,6 +2468,33 @@
1052 AC_MSG_CHECKING([if libtool supports shared libraries])
1053 AC_MSG_RESULT([$can_build_shared])
1054
1055 +AC_MSG_CHECKING([whether to build shared libraries])
1056 +test "$can_build_shared" = "no" && enable_shared=no
1057 +
1058 +# On AIX, shared libraries and static libraries use the same namespace, and
1059 +# are all built from PIC.
1060 +case "$host_os" in
1061 +aix3*)
1062 + test "$enable_shared" = yes && enable_static=no
1063 + if test -n "$RANLIB"; then
1064 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
1065 + postinstall_cmds='$RANLIB $lib'
1066 + fi
1067 + ;;
1068 +
1069 +aix4*)
1070 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1071 + test "$enable_shared" = yes && enable_static=no
1072 + fi
1073 + ;;
1074 +esac
1075 +AC_MSG_RESULT([$enable_shared])
1076 +
1077 +AC_MSG_CHECKING([whether to build static libraries])
1078 +# Make sure either enable_shared or enable_static is yes.
1079 +test "$enable_shared" = yes || enable_static=yes
1080 +AC_MSG_RESULT([$enable_static])
1081 +
1082 if test "$hardcode_action" = relink; then
1083 # Fast installation is not supported
1084 enable_fast_install=no
1085 @@ -2351,7 +2576,7 @@
1086 # Now quote all the things that may contain metacharacters while being
1087 # careful not to overquote the AC_SUBSTed values. We take copies of the
1088 # variables and quote the copies for generation of the libtool script.
1089 - for var in echo old_CC old_CFLAGS \
1090 + for var in echo old_CC old_CFLAGS SED \
1091 AR AR_FLAGS CC LD LN_S NM SHELL \
1092 reload_flag reload_cmds wl \
1093 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
1094 @@ -2363,6 +2588,7 @@
1095 old_striplib striplib file_magic_cmd export_symbols_cmds \
1096 deplibs_check_method allow_undefined_flag no_undefined_flag \
1097 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
1098 + global_symbol_to_c_name_address \
1099 hardcode_libdir_flag_spec hardcode_libdir_separator \
1100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1101 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
1102 @@ -2412,8 +2638,11 @@
1103 # configuration script generated by Autoconf, you may include it under
1104 # the same distribution terms that you use for the rest of that program.
1105
1106 +# A sed that does not truncate output.
1107 +SED=$lt_SED
1108 +
1109 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1110 -Xsed="sed -e s/^X//"
1111 +Xsed="${SED} -e s/^X//"
1112
1113 # The HP-UX ksh and POSIX shell print the target directory to stdout
1114 # if CDPATH is set.
1115 @@ -2429,12 +2658,12 @@
1116 # Whether or not to build shared libraries.
1117 build_libtool_libs=$enable_shared
1118
1119 -# Whether or not to add -lc for building shared libraries.
1120 -build_libtool_need_lc=$need_lc
1121 -
1122 # Whether or not to build static libraries.
1123 build_old_libs=$enable_static
1124
1125 +# Whether or not to add -lc for building shared libraries.
1126 +build_libtool_need_lc=$need_lc
1127 +
1128 # Whether or not to optimize for fast installation.
1129 fast_install=$enable_fast_install
1130
1131 @@ -2600,6 +2829,9 @@
1132 # Transform the output of nm in a proper C declaration
1133 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
1134
1135 +# Transform the output of nm in a C name address pair
1136 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
1137 +
1138 # This is the shared library runtime path variable.
1139 runpath_var=$runpath_var
1140
1141 @@ -2722,9 +2954,9 @@
1142 # return TRUE;
1143 # }
1144 # /* ltdll.c ends here */
1145 - # This is a source program that is used to create import libraries
1146 - # on Windows for dlls which lack them. Don't remove nor modify the
1147 - # starting and closing comments
1148 + # This is a source program that is used to create import libraries
1149 + # on Windows for dlls which lack them. Don't remove nor modify the
1150 + # starting and closing comments
1151 # /* impgen.c starts here */
1152 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
1153 #
1154 @@ -3079,6 +3311,7 @@
1155 AC_REQUIRE([AC_PROG_CC])dnl
1156 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1157 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1158 +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1159 ac_prog=ld
1160 if test "$GCC" = yes; then
1161 # Check if gcc -print-prog-name=ld gives a path.
1162 @@ -3092,8 +3325,8 @@
1163 esac
1164 case $ac_prog in
1165 # Accept absolute paths.
1166 - [[\\/]* | [A-Za-z]:[\\/]*)]
1167 - [re_direlt='/[^/][^/]*/\.\./']
1168 + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
1169 + re_direlt='/[[^/]][[^/]]*/\.\./'
1170 # Canonicalize the path of ld
1171 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1172 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1173 @@ -3117,7 +3350,7 @@
1174 fi
1175 AC_CACHE_VAL(lt_cv_path_LD,
1176 [if test -z "$LD"; then
1177 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1178 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1179 for ac_dir in $PATH; do
1180 test -z "$ac_dir" && ac_dir=.
1181 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1182 @@ -3170,7 +3403,7 @@
1183 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
1184 # -- PORTME fill in with the dynamic library characteristics
1185 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
1186 -[AC_CACHE_CHECK([how to recognise dependant libraries],
1187 +[AC_CACHE_CHECK([how to recognise dependent libraries],
1188 lt_cv_deplibs_check_method,
1189 [lt_cv_file_magic_cmd='$MAGIC_CMD'
1190 lt_cv_file_magic_test_file=
1191 @@ -3181,7 +3414,7 @@
1192 # `unknown' -- same as none, but documents that we really don't know.
1193 # 'pass_all' -- all dependencies passed with no checks.
1194 # 'test_compile' -- check by making test program.
1195 -# ['file_magic [regex]'] -- check by looking for files in library path
1196 +# 'file_magic [[regex]]' -- check by looking for files in library path
1197 # which responds to the $file_magic_cmd with a given egrep regex.
1198 # If you have `file' or equivalent on your system and you're not sure
1199 # whether `pass_all' will *always* work, you probably want this one.
1200 @@ -3196,7 +3429,7 @@
1201 ;;
1202
1203 bsdi4*)
1204 - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
1205 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1206 lt_cv_file_magic_cmd='/usr/bin/file -L'
1207 lt_cv_file_magic_test_file=/shlib/libc.so
1208 ;;
1209 @@ -3210,7 +3443,7 @@
1210 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1211 lt_cv_file_magic_cmd='/usr/bin/file -L'
1212 case "$host_os" in
1213 - rhapsody* | darwin1.[012])
1214 + rhapsody* | darwin1.[[012]])
1215 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1216 ;;
1217 *) # Darwin 1.3 on
1218 @@ -3225,7 +3458,7 @@
1219 i*86 )
1220 # Not sure whether the presence of OpenBSD here was a mistake.
1221 # Let's accept both of them until this is cleared up.
1222 - [lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
1223 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1224 lt_cv_file_magic_cmd=/usr/bin/file
1225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1226 ;;
1227 @@ -3240,14 +3473,14 @@
1228 ;;
1229
1230 hpux10.20*|hpux11*)
1231 - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
1232 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
1233 lt_cv_file_magic_cmd=/usr/bin/file
1234 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1235 ;;
1236
1237 -irix5* | irix6*)
1238 +irix5* | irix6* | nonstopux*)
1239 case $host_os in
1240 - irix5*)
1241 + irix5* | nonstopux*)
1242 # this will be overridden with pass_all, but let us keep it just in case
1243 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1244 ;;
1245 @@ -3259,7 +3492,7 @@
1246 *) libmagic=never-match;;
1247 esac
1248 # this will be overridden with pass_all, but let us keep it just in case
1249 - [lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
1250 + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
1251 ;;
1252 esac
1253 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1254 @@ -3269,29 +3502,39 @@
1255 # This must be Linux ELF.
1256 linux-gnu*)
1257 case $host_cpu in
1258 - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
1259 + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
1260 lt_cv_deplibs_check_method=pass_all ;;
1261 *)
1262 # glibc up to 2.1.1 does not perform some relocations on ARM
1263 - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]
1264 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
1265 esac
1266 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1267 ;;
1268
1269 netbsd*)
1270 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1271 - [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
1272 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
1273 else
1274 - [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
1275 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
1276 fi
1277 ;;
1278
1279 newos6*)
1280 - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
1281 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
1282 lt_cv_file_magic_cmd=/usr/bin/file
1283 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1284 ;;
1285
1286 +openbsd*)
1287 + lt_cv_file_magic_cmd=/usr/bin/file
1288 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1289 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1290 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1291 + else
1292 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1293 + fi
1294 + ;;
1295 +
1296 osf3* | osf4* | osf5*)
1297 # this will be overridden with pass_all, but let us keep it just in case
1298 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1299 @@ -3308,14 +3551,14 @@
1300 lt_cv_file_magic_test_file=/lib/libc.so
1301 ;;
1302
1303 -[sysv5uw[78]* | sysv4*uw2*)]
1304 +sysv5uw[[78]]* | sysv4*uw2*)
1305 lt_cv_deplibs_check_method=pass_all
1306 ;;
1307
1308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1309 case $host_vendor in
1310 motorola)
1311 - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
1312 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
1313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1314 ;;
1315 ncr)
1316 @@ -3323,13 +3566,16 @@
1317 ;;
1318 sequent)
1319 lt_cv_file_magic_cmd='/bin/file'
1320 - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']
1321 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
1322 ;;
1323 sni)
1324 lt_cv_file_magic_cmd='/bin/file'
1325 - [lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]
1326 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
1327 lt_cv_file_magic_test_file=/lib/libc.so
1328 ;;
1329 + siemens)
1330 + lt_cv_deplibs_check_method=pass_all
1331 + ;;
1332 esac
1333 ;;
1334 esac
1335 @@ -3341,13 +3587,14 @@
1336
1337 # AC_PROG_NM - find the path to a BSD-compatible name lister
1338 AC_DEFUN([AC_PROG_NM],
1339 -[AC_MSG_CHECKING([for BSD-compatible nm])
1340 +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1341 +AC_MSG_CHECKING([for BSD-compatible nm])
1342 AC_CACHE_VAL(lt_cv_path_NM,
1343 [if test -n "$NM"; then
1344 # Let the user override the test.
1345 lt_cv_path_NM="$NM"
1346 else
1347 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1348 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1349 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1350 test -z "$ac_dir" && ac_dir=.
1351 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1352 @@ -3394,12 +3641,12 @@
1353 ])
1354
1355 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1356 -# the libltdl convenience library and INCLTDL to the include flags for
1357 +# the libltdl convenience library and LTDLINCL to the include flags for
1358 # the libltdl header and adds --enable-ltdl-convenience to the
1359 -# configure arguments. Note that LIBLTDL and INCLTDL are not
1360 +# configure arguments. Note that LIBLTDL and LTDLINCL are not
1361 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
1362 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
1363 -# with '${top_builddir}/' and INCLTDL will be prefixed with
1364 +# with '${top_builddir}/' and LTDLINCL will be prefixed with
1365 # '${top_srcdir}/' (note the single quotes!). If your package is not
1366 # flat and you're not using automake, define top_builddir and
1367 # top_srcdir appropriately in the Makefiles.
1368 @@ -3411,16 +3658,18 @@
1369 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1370 esac
1371 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
1372 - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1373 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1374 + # For backwards non-gettext consistent compatibility...
1375 + INCLTDL="$LTDLINCL"
1376 ])
1377
1378 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1379 -# the libltdl installable library and INCLTDL to the include flags for
1380 +# the libltdl installable library and LTDLINCL to the include flags for
1381 # the libltdl header and adds --enable-ltdl-install to the configure
1382 -# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1383 +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
1384 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
1385 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
1386 -# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1387 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
1388 # with '${top_srcdir}/' (note the single quotes!). If your package is
1389 # not flat and you're not using automake, define top_builddir and
1390 # top_srcdir appropriately in the Makefiles.
1391 @@ -3438,12 +3687,14 @@
1392 if test x"$enable_ltdl_install" = x"yes"; then
1393 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1394 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
1395 - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1396 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1397 else
1398 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1399 LIBLTDL="-lltdl"
1400 - INCLTDL=
1401 + LTDLINCL=
1402 fi
1403 + # For backwards non-gettext consistent compatibility...
1404 + INCLTDL="$LTDLINCL"
1405 ])
1406
1407 # old names
1408 @@ -3458,3 +3709,92 @@
1409 # This is just to silence aclocal about the macro not being used
1410 ifelse([AC_DISABLE_FAST_INSTALL])
1411
1412 +# NOTE: This macro has been submitted for inclusion into #
1413 +# GNU Autoconf as AC_PROG_SED. When it is available in #
1414 +# a released version of Autoconf we should remove this #
1415 +# macro and use it instead. #
1416 +# LT_AC_PROG_SED
1417 +# --------------
1418 +# Check for a fully-functional sed program, that truncates
1419 +# as few characters as possible. Prefer GNU sed if found.
1420 +AC_DEFUN([LT_AC_PROG_SED],
1421 +[AC_MSG_CHECKING([for a sed that does not truncate output])
1422 +AC_CACHE_VAL(lt_cv_path_SED,
1423 +[# Loop through the user's path and test for sed and gsed.
1424 +# Then use that list of sed's as ones to test for truncation.
1425 +as_executable_p="test -f"
1426 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 +for as_dir in $PATH
1428 +do
1429 + IFS=$as_save_IFS
1430 + test -z "$as_dir" && as_dir=.
1431 + for ac_prog in sed gsed; do
1432 + for ac_exec_ext in '' $ac_executable_extensions; do
1433 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1434 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
1435 + fi
1436 + done
1437 + done
1438 +done
1439 +
1440 + # Create a temporary directory, and hook for its removal unless debugging.
1441 +$debug ||
1442 +{
1443 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1444 + trap '{ (exit 1); exit 1; }' 1 2 13 15
1445 +}
1446 +
1447 +# Create a (secure) tmp directory for tmp files.
1448 +: ${TMPDIR=/tmp}
1449 +{
1450 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
1451 + test -n "$tmp" && test -d "$tmp"
1452 +} ||
1453 +{
1454 + tmp=$TMPDIR/sed$$-$RANDOM
1455 + (umask 077 && mkdir $tmp)
1456 +} ||
1457 +{
1458 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1459 + { (exit 1); exit 1; }
1460 +}
1461 + _max=0
1462 + _count=0
1463 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
1464 + # along with /bin/sed that truncates output.
1465 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
1466 + test ! -f ${_sed} && break
1467 + cat /dev/null > "$tmp/sed.in"
1468 + _count=0
1469 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
1470 + # Check for GNU sed and select it if it is found.
1471 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
1472 + lt_cv_path_SED=${_sed}
1473 + break
1474 + fi
1475 + while true; do
1476 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
1477 + mv "$tmp/sed.tmp" "$tmp/sed.in"
1478 + cp "$tmp/sed.in" "$tmp/sed.nl"
1479 + echo >>"$tmp/sed.nl"
1480 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
1481 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
1482 + # 40000 chars as input seems more than enough
1483 + test $_count -gt 10 && break
1484 + _count=`expr $_count + 1`
1485 + if test $_count -gt $_max; then
1486 + _max=$_count
1487 + lt_cv_path_SED=$_sed
1488 + fi
1489 + done
1490 + done
1491 + rm -rf "$tmp"
1492 +])
1493 +if test "X$SED" != "X"; then
1494 + lt_cv_path_SED=$SED
1495 +else
1496 + SED=$lt_cv_path_SED
1497 +fi
1498 +AC_MSG_RESULT([$SED])
1499 +])
1500 +
1501 --- linux-atm-2.4.1.orig/config.guess
1502 +++ linux-atm-2.4.1/config.guess
1503 @@ -1,9 +1,9 @@
1504 #! /bin/sh
1505 # Attempt to guess a canonical system name.
1506 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
1507 -# Free Software Foundation, Inc.
1508 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1509 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
1510
1511 -timestamp='2001-04-20'
1512 +timestamp='2003-05-19'
1513
1514 # This file is free software; you can redistribute it and/or modify it
1515 # under the terms of the GNU General Public License as published by
1516 @@ -24,8 +24,9 @@
1517 # configuration script generated by Autoconf, you may include it under
1518 # the same distribution terms that you use for the rest of that program.
1519
1520 -# Written by Per Bothner <bothner@cygnus.com>.
1521 -# Please send patches to <config-patches@gnu.org>.
1522 +# Originally written by Per Bothner <per@bothner.com>.
1523 +# Please send patches to <config-patches@gnu.org>. Submit a context
1524 +# diff and a properly formatted ChangeLog entry.
1525 #
1526 # This script attempts to guess a canonical system name similar to
1527 # config.sub. If it succeeds, it prints the system name on stdout, and
1528 @@ -52,7 +53,7 @@
1529 GNU config.guess ($timestamp)
1530
1531 Originally written by Per Bothner.
1532 -Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
1533 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
1534 Free Software Foundation, Inc.
1535
1536 This is free software; see the source for copying conditions. There is NO
1537 @@ -87,33 +88,44 @@
1538 exit 1
1539 fi
1540
1541 +trap 'exit 1' 1 2 15
1542
1543 -dummy=dummy-$$
1544 -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
1545 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
1546 +# compiler to aid in system detection is discouraged as it requires
1547 +# temporary files to be created and, as you can see below, it is a
1548 +# headache to deal with in a portable fashion.
1549
1550 -# CC_FOR_BUILD -- compiler used by this script.
1551 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
1552 # use `HOST_CC' if defined, but it is deprecated.
1553
1554 +# Portable tmp directory creation inspired by the Autoconf team.
1555 +
1556 +set_cc_for_build='
1557 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
1558 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
1559 +: ${TMPDIR=/tmp} ;
1560 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
1561 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
1562 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
1563 +dummy=$tmp/dummy ;
1564 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
1565 case $CC_FOR_BUILD,$HOST_CC,$CC in
1566 - ,,) echo "int dummy(){}" > $dummy.c
1567 - for c in cc gcc c89 ; do
1568 - ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
1569 - if test $? = 0 ; then
1570 - CC_FOR_BUILD="$c"; break
1571 - fi
1572 - done
1573 - rm -f $dummy.c $dummy.o $dummy.rel
1574 + ,,) echo "int x;" > $dummy.c ;
1575 + for c in cc gcc c89 c99 ; do
1576 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
1577 + CC_FOR_BUILD="$c"; break ;
1578 + fi ;
1579 + done ;
1580 if test x"$CC_FOR_BUILD" = x ; then
1581 - CC_FOR_BUILD=no_compiler_found
1582 + CC_FOR_BUILD=no_compiler_found ;
1583 fi
1584 ;;
1585 ,,*) CC_FOR_BUILD=$CC ;;
1586 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
1587 -esac
1588 +esac ;'
1589
1590 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
1591 -# (ghazi@noc.rutgers.edu 8/24/94.)
1592 +# (ghazi@noc.rutgers.edu 1994-08-24)
1593 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
1594 PATH=$PATH:/.attbin ; export PATH
1595 fi
1596 @@ -127,29 +139,31 @@
1597
1598 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1599 *:NetBSD:*:*)
1600 - # Netbsd (nbsd) targets should (where applicable) match one or
1601 + # NetBSD (nbsd) targets should (where applicable) match one or
1602 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
1603 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
1604 # switched to ELF, *-*-netbsd* would select the old
1605 # object file format. This provides both forward
1606 # compatibility and a consistent mechanism for selecting the
1607 # object file format.
1608 - # Determine the machine/vendor (is the vendor relevant).
1609 - case "${UNAME_MACHINE}" in
1610 - amiga) machine=m68k-unknown ;;
1611 - arm32) machine=arm-unknown ;;
1612 - atari*) machine=m68k-atari ;;
1613 - sun3*) machine=m68k-sun ;;
1614 - mac68k) machine=m68k-apple ;;
1615 - macppc) machine=powerpc-apple ;;
1616 - hp3[0-9][05]) machine=m68k-hp ;;
1617 - ibmrt|romp-ibm) machine=romp-ibm ;;
1618 - *) machine=${UNAME_MACHINE}-unknown ;;
1619 + #
1620 + # Note: NetBSD doesn't particularly care about the vendor
1621 + # portion of the name. We always set it to "unknown".
1622 + sysctl="sysctl -n hw.machine_arch"
1623 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
1624 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
1625 + case "${UNAME_MACHINE_ARCH}" in
1626 + armeb) machine=armeb-unknown ;;
1627 + arm*) machine=arm-unknown ;;
1628 + sh3el) machine=shl-unknown ;;
1629 + sh3eb) machine=sh-unknown ;;
1630 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
1631 esac
1632 # The Operating System including object format, if it has switched
1633 # to ELF recently, or will in the future.
1634 - case "${UNAME_MACHINE}" in
1635 - i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
1636 + case "${UNAME_MACHINE_ARCH}" in
1637 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1638 + eval $set_cc_for_build
1639 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
1640 | grep __ELF__ >/dev/null
1641 then
1642 @@ -165,69 +179,107 @@
1643 ;;
1644 esac
1645 # The OS release
1646 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
1647 + # Debian GNU/NetBSD machines have a different userland, and
1648 + # thus, need a distinct triplet. However, they do not need
1649 + # kernel version information, so it can be replaced with a
1650 + # suitable tag, in the style of linux-gnu.
1651 + case "${UNAME_VERSION}" in
1652 + Debian*)
1653 + release='-gnu'
1654 + ;;
1655 + *)
1656 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
1657 + ;;
1658 + esac
1659 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
1660 # contains redundant information, the shorter form:
1661 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
1662 echo "${machine}-${os}${release}"
1663 exit 0 ;;
1664 + amiga:OpenBSD:*:*)
1665 + echo m68k-unknown-openbsd${UNAME_RELEASE}
1666 + exit 0 ;;
1667 + arc:OpenBSD:*:*)
1668 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
1669 + exit 0 ;;
1670 + hp300:OpenBSD:*:*)
1671 + echo m68k-unknown-openbsd${UNAME_RELEASE}
1672 + exit 0 ;;
1673 + mac68k:OpenBSD:*:*)
1674 + echo m68k-unknown-openbsd${UNAME_RELEASE}
1675 + exit 0 ;;
1676 + macppc:OpenBSD:*:*)
1677 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
1678 + exit 0 ;;
1679 + mvme68k:OpenBSD:*:*)
1680 + echo m68k-unknown-openbsd${UNAME_RELEASE}
1681 + exit 0 ;;
1682 + mvme88k:OpenBSD:*:*)
1683 + echo m88k-unknown-openbsd${UNAME_RELEASE}
1684 + exit 0 ;;
1685 + mvmeppc:OpenBSD:*:*)
1686 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
1687 + exit 0 ;;
1688 + pmax:OpenBSD:*:*)
1689 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
1690 + exit 0 ;;
1691 + sgi:OpenBSD:*:*)
1692 + echo mipseb-unknown-openbsd${UNAME_RELEASE}
1693 + exit 0 ;;
1694 + sun3:OpenBSD:*:*)
1695 + echo m68k-unknown-openbsd${UNAME_RELEASE}
1696 + exit 0 ;;
1697 + wgrisc:OpenBSD:*:*)
1698 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
1699 + exit 0 ;;
1700 + *:OpenBSD:*:*)
1701 + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
1702 + exit 0 ;;
1703 alpha:OSF1:*:*)
1704 if test $UNAME_RELEASE = "V4.0"; then
1705 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
1706 fi
1707 + # According to Compaq, /usr/sbin/psrinfo has been available on
1708 + # OSF/1 and Tru64 systems produced since 1995. I hope that
1709 + # covers most systems running today. This code pipes the CPU
1710 + # types through head -n 1, so we only detect the type of CPU 0.
1711 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
1712 + case "$ALPHA_CPU_TYPE" in
1713 + "EV4 (21064)")
1714 + UNAME_MACHINE="alpha" ;;
1715 + "EV4.5 (21064)")
1716 + UNAME_MACHINE="alpha" ;;
1717 + "LCA4 (21066/21068)")
1718 + UNAME_MACHINE="alpha" ;;
1719 + "EV5 (21164)")
1720 + UNAME_MACHINE="alphaev5" ;;
1721 + "EV5.6 (21164A)")
1722 + UNAME_MACHINE="alphaev56" ;;
1723 + "EV5.6 (21164PC)")
1724 + UNAME_MACHINE="alphapca56" ;;
1725 + "EV5.7 (21164PC)")
1726 + UNAME_MACHINE="alphapca57" ;;
1727 + "EV6 (21264)")
1728 + UNAME_MACHINE="alphaev6" ;;
1729 + "EV6.7 (21264A)")
1730 + UNAME_MACHINE="alphaev67" ;;
1731 + "EV6.8CB (21264C)")
1732 + UNAME_MACHINE="alphaev68" ;;
1733 + "EV6.8AL (21264B)")
1734 + UNAME_MACHINE="alphaev68" ;;
1735 + "EV6.8CX (21264D)")
1736 + UNAME_MACHINE="alphaev68" ;;
1737 + "EV6.9A (21264/EV69A)")
1738 + UNAME_MACHINE="alphaev69" ;;
1739 + "EV7 (21364)")
1740 + UNAME_MACHINE="alphaev7" ;;
1741 + "EV7.9 (21364A)")
1742 + UNAME_MACHINE="alphaev79" ;;
1743 + esac
1744 # A Vn.n version is a released version.
1745 # A Tn.n version is a released field test version.
1746 # A Xn.n version is an unreleased experimental baselevel.
1747 # 1.2 uses "1.2" for uname -r.
1748 - cat <<EOF >$dummy.s
1749 - .data
1750 -\$Lformat:
1751 - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
1752 -
1753 - .text
1754 - .globl main
1755 - .align 4
1756 - .ent main
1757 -main:
1758 - .frame \$30,16,\$26,0
1759 - ldgp \$29,0(\$27)
1760 - .prologue 1
1761 - .long 0x47e03d80 # implver \$0
1762 - lda \$2,-1
1763 - .long 0x47e20c21 # amask \$2,\$1
1764 - lda \$16,\$Lformat
1765 - mov \$0,\$17
1766 - not \$1,\$18
1767 - jsr \$26,printf
1768 - ldgp \$29,0(\$26)
1769 - mov 0,\$16
1770 - jsr \$26,exit
1771 - .end main
1772 -EOF
1773 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
1774 - if test "$?" = 0 ; then
1775 - case `./$dummy` in
1776 - 0-0)
1777 - UNAME_MACHINE="alpha"
1778 - ;;
1779 - 1-0)
1780 - UNAME_MACHINE="alphaev5"
1781 - ;;
1782 - 1-1)
1783 - UNAME_MACHINE="alphaev56"
1784 - ;;
1785 - 1-101)
1786 - UNAME_MACHINE="alphapca56"
1787 - ;;
1788 - 2-303)
1789 - UNAME_MACHINE="alphaev6"
1790 - ;;
1791 - 2-307)
1792 - UNAME_MACHINE="alphaev67"
1793 - ;;
1794 - esac
1795 - fi
1796 - rm -f $dummy.s $dummy
1797 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1798 exit 0 ;;
1799 Alpha\ *:Windows_NT*:*)
1800 @@ -242,29 +294,11 @@
1801 Amiga*:UNIX_System_V:4.0:*)
1802 echo m68k-unknown-sysv4
1803 exit 0;;
1804 - amiga:OpenBSD:*:*)
1805 - echo m68k-unknown-openbsd${UNAME_RELEASE}
1806 - exit 0 ;;
1807 *:[Aa]miga[Oo][Ss]:*:*)
1808 echo ${UNAME_MACHINE}-unknown-amigaos
1809 exit 0 ;;
1810 - arc64:OpenBSD:*:*)
1811 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
1812 - exit 0 ;;
1813 - arc:OpenBSD:*:*)
1814 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
1815 - exit 0 ;;
1816 - hkmips:OpenBSD:*:*)
1817 - echo mips-unknown-openbsd${UNAME_RELEASE}
1818 - exit 0 ;;
1819 - pmax:OpenBSD:*:*)
1820 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
1821 - exit 0 ;;
1822 - sgi:OpenBSD:*:*)
1823 - echo mips-unknown-openbsd${UNAME_RELEASE}
1824 - exit 0 ;;
1825 - wgrisc:OpenBSD:*:*)
1826 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
1827 + *:[Mm]orph[Oo][Ss]:*:*)
1828 + echo ${UNAME_MACHINE}-unknown-morphos
1829 exit 0 ;;
1830 *:OS/390:*:*)
1831 echo i370-ibm-openedition
1832 @@ -286,6 +320,10 @@
1833 NILE*:*:*:dcosx)
1834 echo pyramid-pyramid-svr4
1835 exit 0 ;;
1836 + DRS?6000:UNIX_SV:4.2*:7*)
1837 + case `/usr/bin/uname -p` in
1838 + sparc) echo sparc-icl-nx7 && exit 0 ;;
1839 + esac ;;
1840 sun4H:SunOS:5.*:*)
1841 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1842 exit 0 ;;
1843 @@ -314,7 +352,7 @@
1844 echo m68k-sun-sunos${UNAME_RELEASE}
1845 exit 0 ;;
1846 sun*:*:4.2BSD:*)
1847 - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
1848 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
1849 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
1850 case "`/bin/arch`" in
1851 sun3)
1852 @@ -328,9 +366,6 @@
1853 aushp:SunOS:*:*)
1854 echo sparc-auspex-sunos${UNAME_RELEASE}
1855 exit 0 ;;
1856 - atari*:OpenBSD:*:*)
1857 - echo m68k-unknown-openbsd${UNAME_RELEASE}
1858 - exit 0 ;;
1859 # The situation for MiNT is a little confusing. The machine name
1860 # can be virtually everything (everything which is not
1861 # "atarist" or "atariste" at least should have a processor
1862 @@ -357,18 +392,6 @@
1863 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
1864 echo m68k-unknown-mint${UNAME_RELEASE}
1865 exit 0 ;;
1866 - sun3*:OpenBSD:*:*)
1867 - echo m68k-unknown-openbsd${UNAME_RELEASE}
1868 - exit 0 ;;
1869 - mac68k:OpenBSD:*:*)
1870 - echo m68k-unknown-openbsd${UNAME_RELEASE}
1871 - exit 0 ;;
1872 - mvme68k:OpenBSD:*:*)
1873 - echo m68k-unknown-openbsd${UNAME_RELEASE}
1874 - exit 0 ;;
1875 - mvme88k:OpenBSD:*:*)
1876 - echo m88k-unknown-openbsd${UNAME_RELEASE}
1877 - exit 0 ;;
1878 powerpc:machten:*:*)
1879 echo powerpc-apple-machten${UNAME_RELEASE}
1880 exit 0 ;;
1881 @@ -385,6 +408,7 @@
1882 echo clipper-intergraph-clix${UNAME_RELEASE}
1883 exit 0 ;;
1884 mips:*:*:UMIPS | mips:*:*:RISCos)
1885 + eval $set_cc_for_build
1886 sed 's/^ //' << EOF >$dummy.c
1887 #ifdef __cplusplus
1888 #include <stdio.h> /* for printf() prototype */
1889 @@ -406,15 +430,20 @@
1890 exit (-1);
1891 }
1892 EOF
1893 - $CC_FOR_BUILD $dummy.c -o $dummy \
1894 - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
1895 - && rm -f $dummy.c $dummy && exit 0
1896 - rm -f $dummy.c $dummy
1897 + $CC_FOR_BUILD -o $dummy $dummy.c \
1898 + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
1899 + && exit 0
1900 echo mips-mips-riscos${UNAME_RELEASE}
1901 exit 0 ;;
1902 Motorola:PowerMAX_OS:*:*)
1903 echo powerpc-motorola-powermax
1904 exit 0 ;;
1905 + Motorola:*:4.3:PL8-*)
1906 + echo powerpc-harris-powermax
1907 + exit 0 ;;
1908 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
1909 + echo powerpc-harris-powermax
1910 + exit 0 ;;
1911 Night_Hawk:Power_UNIX:*:*)
1912 echo powerpc-harris-powerunix
1913 exit 0 ;;
1914 @@ -475,6 +504,7 @@
1915 exit 0 ;;
1916 *:AIX:2:3)
1917 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
1918 + eval $set_cc_for_build
1919 sed 's/^ //' << EOF >$dummy.c
1920 #include <sys/systemcfg.h>
1921
1922 @@ -486,8 +516,7 @@
1923 exit(0);
1924 }
1925 EOF
1926 - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
1927 - rm -f $dummy.c $dummy
1928 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
1929 echo rs6000-ibm-aix3.2.5
1930 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
1931 echo rs6000-ibm-aix3.2.4
1932 @@ -496,7 +525,7 @@
1933 fi
1934 exit 0 ;;
1935 *:AIX:*:[45])
1936 - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
1937 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
1938 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
1939 IBM_ARCH=rs6000
1940 else
1941 @@ -536,10 +565,8 @@
1942 9000/31? ) HP_ARCH=m68000 ;;
1943 9000/[34]?? ) HP_ARCH=m68k ;;
1944 9000/[678][0-9][0-9])
1945 - case "${HPUX_REV}" in
1946 - 11.[0-9][0-9])
1947 - if [ -x /usr/bin/getconf ]; then
1948 - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
1949 + if [ -x /usr/bin/getconf ]; then
1950 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
1951 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
1952 case "${sc_cpu_version}" in
1953 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
1954 @@ -548,12 +575,13 @@
1955 case "${sc_kernel_bits}" in
1956 32) HP_ARCH="hppa2.0n" ;;
1957 64) HP_ARCH="hppa2.0w" ;;
1958 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
1959 esac ;;
1960 esac
1961 - fi ;;
1962 - esac
1963 - if [ "${HP_ARCH}" = "" ]; then
1964 - sed 's/^ //' << EOF >$dummy.c
1965 + fi
1966 + if [ "${HP_ARCH}" = "" ]; then
1967 + eval $set_cc_for_build
1968 + sed 's/^ //' << EOF >$dummy.c
1969
1970 #define _HPUX_SOURCE
1971 #include <stdlib.h>
1972 @@ -586,11 +614,21 @@
1973 exit (0);
1974 }
1975 EOF
1976 - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
1977 - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
1978 - rm -f $dummy.c $dummy
1979 - fi ;;
1980 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
1981 + test -z "$HP_ARCH" && HP_ARCH=hppa
1982 + fi ;;
1983 esac
1984 + if [ ${HP_ARCH} = "hppa2.0w" ]
1985 + then
1986 + # avoid double evaluation of $set_cc_for_build
1987 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
1988 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
1989 + then
1990 + HP_ARCH="hppa2.0w"
1991 + else
1992 + HP_ARCH="hppa64"
1993 + fi
1994 + fi
1995 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
1996 exit 0 ;;
1997 ia64:HP-UX:*:*)
1998 @@ -598,6 +636,7 @@
1999 echo ia64-hp-hpux${HPUX_REV}
2000 exit 0 ;;
2001 3050*:HI-UX:*:*)
2002 + eval $set_cc_for_build
2003 sed 's/^ //' << EOF >$dummy.c
2004 #include <unistd.h>
2005 int
2006 @@ -623,8 +662,7 @@
2007 exit (0);
2008 }
2009 EOF
2010 - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
2011 - rm -f $dummy.c $dummy
2012 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
2013 echo unknown-hitachi-hiuxwe2
2014 exit 0 ;;
2015 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
2016 @@ -633,7 +671,7 @@
2017 9000/8??:4.3bsd:*:*)
2018 echo hppa1.0-hp-bsd
2019 exit 0 ;;
2020 - *9??*:MPE/iX:*:*)
2021 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
2022 echo hppa1.0-hp-mpeix
2023 exit 0 ;;
2024 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
2025 @@ -652,9 +690,6 @@
2026 parisc*:Lites*:*:*)
2027 echo hppa1.1-hp-lites
2028 exit 0 ;;
2029 - hppa*:OpenBSD:*:*)
2030 - echo hppa-unknown-openbsd
2031 - exit 0 ;;
2032 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
2033 echo c1-convex-bsd
2034 exit 0 ;;
2035 @@ -673,41 +708,33 @@
2036 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
2037 echo c4-convex-bsd
2038 exit 0 ;;
2039 - CRAY*X-MP:*:*:*)
2040 - echo xmp-cray-unicos
2041 - exit 0 ;;
2042 CRAY*Y-MP:*:*:*)
2043 - echo ymp-cray-unicos${UNAME_RELEASE}
2044 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2045 exit 0 ;;
2046 CRAY*[A-Z]90:*:*:*)
2047 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
2048 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
2049 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
2050 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
2051 + -e 's/\.[^.]*$/.X/'
2052 exit 0 ;;
2053 CRAY*TS:*:*:*)
2054 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2055 exit 0 ;;
2056 - CRAY*T3D:*:*:*)
2057 - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2058 - exit 0 ;;
2059 CRAY*T3E:*:*:*)
2060 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2061 exit 0 ;;
2062 CRAY*SV1:*:*:*)
2063 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2064 exit 0 ;;
2065 - CRAY-2:*:*:*)
2066 - echo cray2-cray-unicos
2067 - exit 0 ;;
2068 + *:UNICOS/mp:*:*)
2069 + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2070 + exit 0 ;;
2071 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2072 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2073 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2074 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2075 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2076 exit 0 ;;
2077 - hp300:OpenBSD:*:*)
2078 - echo m68k-unknown-openbsd${UNAME_RELEASE}
2079 - exit 0 ;;
2080 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
2081 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
2082 exit 0 ;;
2083 @@ -717,11 +744,19 @@
2084 *:BSD/OS:*:*)
2085 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
2086 exit 0 ;;
2087 - *:FreeBSD:*:*)
2088 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2089 - exit 0 ;;
2090 - *:OpenBSD:*:*)
2091 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
2092 + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
2093 + # Determine whether the default compiler uses glibc.
2094 + eval $set_cc_for_build
2095 + sed 's/^ //' << EOF >$dummy.c
2096 + #include <features.h>
2097 + #if __GLIBC__ >= 2
2098 + LIBC=gnu
2099 + #else
2100 + LIBC=
2101 + #endif
2102 +EOF
2103 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
2104 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
2105 exit 0 ;;
2106 i*:CYGWIN*:*)
2107 echo ${UNAME_MACHINE}-pc-cygwin
2108 @@ -732,11 +767,17 @@
2109 i*:PW*:*)
2110 echo ${UNAME_MACHINE}-pc-pw32
2111 exit 0 ;;
2112 + x86:Interix*:3*)
2113 + echo i586-pc-interix3
2114 + exit 0 ;;
2115 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
2116 + echo i${UNAME_MACHINE}-pc-mks
2117 + exit 0 ;;
2118 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
2119 # How do we know it's Interix rather than the generic POSIX subsystem?
2120 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
2121 # UNAME_MACHINE based on the output of uname instead of i386?
2122 - echo i386-pc-interix
2123 + echo i586-pc-interix
2124 exit 0 ;;
2125 i*:UWIN*:*)
2126 echo ${UNAME_MACHINE}-pc-uwin
2127 @@ -756,104 +797,71 @@
2128 arm*:Linux:*:*)
2129 echo ${UNAME_MACHINE}-unknown-linux-gnu
2130 exit 0 ;;
2131 + cris:Linux:*:*)
2132 + echo cris-axis-linux-gnu
2133 + exit 0 ;;
2134 ia64:Linux:*:*)
2135 - echo ${UNAME_MACHINE}-unknown-linux
2136 + echo ${UNAME_MACHINE}-unknown-linux-gnu
2137 exit 0 ;;
2138 m68*:Linux:*:*)
2139 echo ${UNAME_MACHINE}-unknown-linux-gnu
2140 exit 0 ;;
2141 mips:Linux:*:*)
2142 - cat >$dummy.c <<EOF
2143 -#ifdef __cplusplus
2144 -#include <stdio.h> /* for printf() prototype */
2145 -int main (int argc, char *argv[]) {
2146 -#else
2147 -int main (argc, argv) int argc; char *argv[]; {
2148 -#endif
2149 -#ifdef __MIPSEB__
2150 - printf ("%s-unknown-linux-gnu\n", argv[1]);
2151 -#endif
2152 -#ifdef __MIPSEL__
2153 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
2154 -#endif
2155 - return 0;
2156 -}
2157 + eval $set_cc_for_build
2158 + sed 's/^ //' << EOF >$dummy.c
2159 + #undef CPU
2160 + #undef mips
2161 + #undef mipsel
2162 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2163 + CPU=mipsel
2164 + #else
2165 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2166 + CPU=mips
2167 + #else
2168 + CPU=
2169 + #endif
2170 + #endif
2171 EOF
2172 - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
2173 - rm -f $dummy.c $dummy
2174 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
2175 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
2176 ;;
2177 - ppc:Linux:*:*)
2178 - # Determine Lib Version
2179 - cat >$dummy.c <<EOF
2180 -#include <features.h>
2181 -#if defined(__GLIBC__)
2182 -extern char __libc_version[];
2183 -extern char __libc_release[];
2184 -#endif
2185 -main(argc, argv)
2186 - int argc;
2187 - char *argv[];
2188 -{
2189 -#if defined(__GLIBC__)
2190 - printf("%s %s\n", __libc_version, __libc_release);
2191 -#else
2192 - printf("unknown\n");
2193 -#endif
2194 - return 0;
2195 -}
2196 + mips64:Linux:*:*)
2197 + eval $set_cc_for_build
2198 + sed 's/^ //' << EOF >$dummy.c
2199 + #undef CPU
2200 + #undef mips64
2201 + #undef mips64el
2202 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2203 + CPU=mips64el
2204 + #else
2205 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2206 + CPU=mips64
2207 + #else
2208 + CPU=
2209 + #endif
2210 + #endif
2211 EOF
2212 - LIBC=""
2213 - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
2214 - if test "$?" = 0 ; then
2215 - ./$dummy | grep 1\.99 > /dev/null
2216 - if test "$?" = 0 ; then LIBC="libc1" ; fi
2217 - fi
2218 - rm -f $dummy.c $dummy
2219 - echo powerpc-unknown-linux-gnu${LIBC}
2220 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
2221 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
2222 + ;;
2223 + ppc:Linux:*:*)
2224 + echo powerpc-unknown-linux-gnu
2225 + exit 0 ;;
2226 + ppc64:Linux:*:*)
2227 + echo powerpc64-unknown-linux-gnu
2228 exit 0 ;;
2229 alpha:Linux:*:*)
2230 - cat <<EOF >$dummy.s
2231 - .data
2232 - \$Lformat:
2233 - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
2234 - .text
2235 - .globl main
2236 - .align 4
2237 - .ent main
2238 - main:
2239 - .frame \$30,16,\$26,0
2240 - ldgp \$29,0(\$27)
2241 - .prologue 1
2242 - .long 0x47e03d80 # implver \$0
2243 - lda \$2,-1
2244 - .long 0x47e20c21 # amask \$2,\$1
2245 - lda \$16,\$Lformat
2246 - mov \$0,\$17
2247 - not \$1,\$18
2248 - jsr \$26,printf
2249 - ldgp \$29,0(\$26)
2250 - mov 0,\$16
2251 - jsr \$26,exit
2252 - .end main
2253 -EOF
2254 - LIBC=""
2255 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
2256 - if test "$?" = 0 ; then
2257 - case `./$dummy` in
2258 - 0-0) UNAME_MACHINE="alpha" ;;
2259 - 1-0) UNAME_MACHINE="alphaev5" ;;
2260 - 1-1) UNAME_MACHINE="alphaev56" ;;
2261 - 1-101) UNAME_MACHINE="alphapca56" ;;
2262 - 2-303) UNAME_MACHINE="alphaev6" ;;
2263 - 2-307) UNAME_MACHINE="alphaev67" ;;
2264 - esac
2265 - objdump --private-headers $dummy | \
2266 - grep ld.so.1 > /dev/null
2267 - if test "$?" = 0 ; then
2268 - LIBC="libc1"
2269 - fi
2270 - fi
2271 - rm -f $dummy.s $dummy
2272 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2273 + EV5) UNAME_MACHINE=alphaev5 ;;
2274 + EV56) UNAME_MACHINE=alphaev56 ;;
2275 + PCA56) UNAME_MACHINE=alphapca56 ;;
2276 + PCA57) UNAME_MACHINE=alphapca56 ;;
2277 + EV6) UNAME_MACHINE=alphaev6 ;;
2278 + EV67) UNAME_MACHINE=alphaev67 ;;
2279 + EV68*) UNAME_MACHINE=alphaev68 ;;
2280 + esac
2281 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
2282 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2283 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2284 exit 0 ;;
2285 parisc:Linux:*:* | hppa:Linux:*:*)
2286 @@ -883,71 +891,59 @@
2287 # The BFD linker knows what the default object file format is, so
2288 # first see if it will tell us. cd to the root directory to prevent
2289 # problems with other programs or directories called `ld' in the path.
2290 - ld_supported_emulations=`cd /; ld --help 2>&1 \
2291 - | sed -ne '/supported emulations:/!d
2292 + # Set LC_ALL=C to ensure ld outputs messages in English.
2293 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
2294 + | sed -ne '/supported targets:/!d
2295 s/[ ][ ]*/ /g
2296 - s/.*supported emulations: *//
2297 + s/.*supported targets: *//
2298 s/ .*//
2299 p'`
2300 - case "$ld_supported_emulations" in
2301 - i*86linux)
2302 - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
2303 - exit 0
2304 - ;;
2305 - elf_i*86)
2306 + case "$ld_supported_targets" in
2307 + elf32-i386)
2308 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
2309 ;;
2310 - i*86coff)
2311 + a.out-i386-linux)
2312 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
2313 + exit 0 ;;
2314 + coff-i386)
2315 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
2316 - exit 0
2317 - ;;
2318 - esac
2319 - # Either a pre-BFD a.out linker (linux-gnuoldld)
2320 - # or one that does not give us useful --help.
2321 - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
2322 - # If ld does not provide *any* "supported emulations:"
2323 - # that means it is gnuoldld.
2324 - test -z "$ld_supported_emulations" && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
2325 - case "${UNAME_MACHINE}" in
2326 - i*86)
2327 - VENDOR=pc;
2328 - ;;
2329 - *)
2330 - VENDOR=unknown;
2331 - ;;
2332 + exit 0 ;;
2333 + "")
2334 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
2335 + # one that does not give us useful --help.
2336 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
2337 + exit 0 ;;
2338 esac
2339 # Determine whether the default compiler is a.out or elf
2340 - cat >$dummy.c <<EOF
2341 -#include <features.h>
2342 -#ifdef __cplusplus
2343 -#include <stdio.h> /* for printf() prototype */
2344 - int main (int argc, char *argv[]) {
2345 -#else
2346 - int main (argc, argv) int argc; char *argv[]; {
2347 -#endif
2348 -#ifdef __ELF__
2349 -# ifdef __GLIBC__
2350 -# if __GLIBC__ >= 2
2351 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
2352 -# else
2353 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
2354 -# endif
2355 -# else
2356 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
2357 -# endif
2358 -#else
2359 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
2360 -#endif
2361 - return 0;
2362 -}
2363 + eval $set_cc_for_build
2364 + sed 's/^ //' << EOF >$dummy.c
2365 + #include <features.h>
2366 + #ifdef __ELF__
2367 + # ifdef __GLIBC__
2368 + # if __GLIBC__ >= 2
2369 + LIBC=gnu
2370 + # else
2371 + LIBC=gnulibc1
2372 + # endif
2373 + # else
2374 + LIBC=gnulibc1
2375 + # endif
2376 + #else
2377 + #ifdef __INTEL_COMPILER
2378 + LIBC=gnu
2379 + #else
2380 + LIBC=gnuaout
2381 + #endif
2382 + #endif
2383 EOF
2384 - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
2385 - rm -f $dummy.c $dummy
2386 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
2387 + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
2388 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
2389 ;;
2390 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
2391 -# are messed up and put the nodename in both sysname and nodename.
2392 i*86:DYNIX/ptx:4*:*)
2393 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
2394 + # earlier versions are messed up and put the nodename in both
2395 + # sysname and nodename.
2396 echo i386-sequent-sysv4
2397 exit 0 ;;
2398 i*86:UNIX_SV:4.2MP:2.*)
2399 @@ -958,6 +954,23 @@
2400 # Use sysv4.2uw... so that sysv4* matches it.
2401 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
2402 exit 0 ;;
2403 + i*86:OS/2:*:*)
2404 + # If we were able to find `uname', then EMX Unix compatibility
2405 + # is probably installed.
2406 + echo ${UNAME_MACHINE}-pc-os2-emx
2407 + exit 0 ;;
2408 + i*86:XTS-300:*:STOP)
2409 + echo ${UNAME_MACHINE}-unknown-stop
2410 + exit 0 ;;
2411 + i*86:atheos:*:*)
2412 + echo ${UNAME_MACHINE}-unknown-atheos
2413 + exit 0 ;;
2414 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
2415 + echo i386-unknown-lynxos${UNAME_RELEASE}
2416 + exit 0 ;;
2417 + i*86:*DOS:*:*)
2418 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
2419 + exit 0 ;;
2420 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
2421 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
2422 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
2423 @@ -966,36 +979,32 @@
2424 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
2425 fi
2426 exit 0 ;;
2427 - i*86:*:5:7*)
2428 - # Fixed at (any) Pentium or better
2429 - UNAME_MACHINE=i586
2430 - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
2431 - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
2432 - else
2433 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
2434 - fi
2435 + i*86:*:5:[78]*)
2436 + case `/bin/uname -X | grep "^Machine"` in
2437 + *486*) UNAME_MACHINE=i486 ;;
2438 + *Pentium) UNAME_MACHINE=i586 ;;
2439 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
2440 + esac
2441 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
2442 exit 0 ;;
2443 i*86:*:3.2:*)
2444 if test -f /usr/options/cb.name; then
2445 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
2446 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
2447 elif /bin/uname -X 2>/dev/null >/dev/null ; then
2448 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
2449 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
2450 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
2451 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
2452 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
2453 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
2454 && UNAME_MACHINE=i586
2455 - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
2456 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
2457 && UNAME_MACHINE=i686
2458 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
2459 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
2460 && UNAME_MACHINE=i686
2461 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
2462 else
2463 echo ${UNAME_MACHINE}-pc-sysv32
2464 fi
2465 exit 0 ;;
2466 - i*86:*DOS:*:*)
2467 - echo ${UNAME_MACHINE}-pc-msdosdjgpp
2468 - exit 0 ;;
2469 pc:*:*:*)
2470 # Left here for compatibility:
2471 # uname -m prints for DJGPP always 'pc', but it prints nothing about
2472 @@ -1019,9 +1028,15 @@
2473 # "miniframe"
2474 echo m68010-convergent-sysv
2475 exit 0 ;;
2476 + mc68k:UNIX:SYSTEM5:3.51m)
2477 + echo m68k-convergent-sysv
2478 + exit 0 ;;
2479 + M680?0:D-NIX:5.3:*)
2480 + echo m68k-diab-dnix
2481 + exit 0 ;;
2482 M68*:*:R3V[567]*:*)
2483 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
2484 - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
2485 + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
2486 OS_REL=''
2487 test -r /etc/.relid \
2488 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
2489 @@ -1038,9 +1053,6 @@
2490 mc68030:UNIX_System_V:4.*:*)
2491 echo m68k-atari-sysv4
2492 exit 0 ;;
2493 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
2494 - echo i386-unknown-lynxos${UNAME_RELEASE}
2495 - exit 0 ;;
2496 TSUNAMI:LynxOS:2.*:*)
2497 echo sparc-unknown-lynxos${UNAME_RELEASE}
2498 exit 0 ;;
2499 @@ -1067,8 +1079,8 @@
2500 echo ns32k-sni-sysv
2501 fi
2502 exit 0 ;;
2503 - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2504 - # says <Richard.M.Bartel@ccMail.Census.GOV>
2505 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2506 + # says <Richard.M.Bartel@ccMail.Census.GOV>
2507 echo i586-unisys-sysv4
2508 exit 0 ;;
2509 *:UNIX_System_V:4*:FTX*)
2510 @@ -1080,6 +1092,10 @@
2511 # From seanf@swdc.stratus.com.
2512 echo i860-stratus-sysv4
2513 exit 0 ;;
2514 + *:VOS:*:*)
2515 + # From Paul.Green@stratus.com.
2516 + echo hppa1.1-stratus-vos
2517 + exit 0 ;;
2518 mc68*:A/UX:*:*)
2519 echo m68k-apple-aux${UNAME_RELEASE}
2520 exit 0 ;;
2521 @@ -1108,6 +1124,9 @@
2522 SX-5:SUPER-UX:*:*)
2523 echo sx5-nec-superux${UNAME_RELEASE}
2524 exit 0 ;;
2525 + SX-6:SUPER-UX:*:*)
2526 + echo sx6-nec-superux${UNAME_RELEASE}
2527 + exit 0 ;;
2528 Power*:Rhapsody:*:*)
2529 echo powerpc-apple-rhapsody${UNAME_RELEASE}
2530 exit 0 ;;
2531 @@ -1115,18 +1134,24 @@
2532 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
2533 exit 0 ;;
2534 *:Darwin:*:*)
2535 - echo `uname -p`-apple-darwin${UNAME_RELEASE}
2536 + case `uname -p` in
2537 + *86) UNAME_PROCESSOR=i686 ;;
2538 + powerpc) UNAME_PROCESSOR=powerpc ;;
2539 + esac
2540 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
2541 exit 0 ;;
2542 *:procnto*:*:* | *:QNX:[0123456789]*:*)
2543 - if test "${UNAME_MACHINE}" = "x86pc"; then
2544 + UNAME_PROCESSOR=`uname -p`
2545 + if test "$UNAME_PROCESSOR" = "x86"; then
2546 + UNAME_PROCESSOR=i386
2547 UNAME_MACHINE=pc
2548 fi
2549 - echo `uname -p`-${UNAME_MACHINE}-nto-qnx
2550 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
2551 exit 0 ;;
2552 *:QNX:*:4*)
2553 echo i386-pc-qnx
2554 exit 0 ;;
2555 - NSR-[KW]:NONSTOP_KERNEL:*:*)
2556 + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
2557 echo nsr-tandem-nsk${UNAME_RELEASE}
2558 exit 0 ;;
2559 *:NonStop-UX:*:*)
2560 @@ -1149,11 +1174,6 @@
2561 fi
2562 echo ${UNAME_MACHINE}-unknown-plan9
2563 exit 0 ;;
2564 - i*86:OS/2:*:*)
2565 - # If we were able to find `uname', then EMX Unix compatibility
2566 - # is probably installed.
2567 - echo ${UNAME_MACHINE}-pc-os2-emx
2568 - exit 0 ;;
2569 *:TOPS-10:*:*)
2570 echo pdp10-unknown-tops10
2571 exit 0 ;;
2572 @@ -1177,6 +1197,7 @@
2573 #echo '(No uname command or uname output not recognized.)' 1>&2
2574 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
2575
2576 +eval $set_cc_for_build
2577 cat >$dummy.c <<EOF
2578 #ifdef _SEQUENT_
2579 # include <sys/types.h>
2580 @@ -1291,8 +1312,7 @@
2581 }
2582 EOF
2583
2584 -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
2585 -rm -f $dummy.c $dummy
2586 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
2587
2588 # Apollos put the system type in the environment.
2589
2590 --- linux-atm-2.4.1.orig/config.h.in
2591 +++ linux-atm-2.4.1/config.h.in
2592 @@ -1,4 +1,4 @@
2593 -/* config.h.in. Generated automatically from configure.in by autoheader. */
2594 +/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
2595 #ifndef _ATM_CONFIG_H
2596 #define _ATM_CONFIG_H
2597
2598 --- linux-atm-2.4.1.orig/config.sub
2599 +++ linux-atm-2.4.1/config.sub
2600 @@ -1,9 +1,9 @@
2601 #! /bin/sh
2602 # Configuration validation subroutine script.
2603 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
2604 -# Free Software Foundation, Inc.
2605 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2606 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
2607
2608 -timestamp='2001-04-20'
2609 +timestamp='2003-05-09'
2610
2611 # This file is (in principle) common to ALL GNU software.
2612 # The presence of a machine in this file suggests that SOME GNU software
2613 @@ -29,7 +29,8 @@
2614 # configuration script generated by Autoconf, you may include it under
2615 # the same distribution terms that you use for the rest of that program.
2616
2617 -# Please send patches to <config-patches@gnu.org>.
2618 +# Please send patches to <config-patches@gnu.org>. Submit a context
2619 +# diff and a properly formatted ChangeLog entry.
2620 #
2621 # Configuration subroutine to validate and canonicalize a configuration type.
2622 # Supply the specified configuration type as an argument.
2623 @@ -117,7 +118,7 @@
2624 # Here we must recognize all the valid KERNEL-OS combinations.
2625 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
2626 case $maybe_os in
2627 - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
2628 + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
2629 os=-$maybe_os
2630 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
2631 ;;
2632 @@ -157,6 +158,14 @@
2633 os=-vxworks
2634 basic_machine=$1
2635 ;;
2636 + -chorusos*)
2637 + os=-chorusos
2638 + basic_machine=$1
2639 + ;;
2640 + -chorusrdb)
2641 + os=-chorusrdb
2642 + basic_machine=$1
2643 + ;;
2644 -hiux*)
2645 os=-hiuxwe2
2646 ;;
2647 @@ -215,26 +224,48 @@
2648 case $basic_machine in
2649 # Recognize the basic CPU types without company name.
2650 # Some are omitted here because they have special meanings below.
2651 - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
2652 - | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
2653 - | pyramid | mn10200 | mn10300 | tron | a29k \
2654 - | 580 | i960 | h8300 \
2655 - | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
2656 - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
2657 - | hppa64 \
2658 - | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
2659 - | alphaev6[78] \
2660 - | we32k | ns16k | clipper | i370 | sh | sh[34] \
2661 - | powerpc | powerpcle \
2662 - | 1750a | dsp16xx | pdp10 | pdp11 \
2663 - | mips16 | mips64 | mipsel | mips64el \
2664 - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
2665 - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
2666 - | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
2667 - | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
2668 - | v850 | c4x \
2669 - | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
2670 - | pj | pjl | h8500)
2671 + 1750a | 580 \
2672 + | a29k \
2673 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2674 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
2675 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
2676 + | clipper \
2677 + | d10v | d30v | dlx | dsp16xx \
2678 + | fr30 | frv \
2679 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2680 + | i370 | i860 | i960 | ia64 \
2681 + | ip2k \
2682 + | m32r | m68000 | m68k | m88k | mcore \
2683 + | mips | mipsbe | mipseb | mipsel | mipsle \
2684 + | mips16 \
2685 + | mips64 | mips64el \
2686 + | mips64vr | mips64vrel \
2687 + | mips64orion | mips64orionel \
2688 + | mips64vr4100 | mips64vr4100el \
2689 + | mips64vr4300 | mips64vr4300el \
2690 + | mips64vr5000 | mips64vr5000el \
2691 + | mipsisa32 | mipsisa32el \
2692 + | mipsisa32r2 | mipsisa32r2el \
2693 + | mipsisa64 | mipsisa64el \
2694 + | mipsisa64sb1 | mipsisa64sb1el \
2695 + | mipsisa64sr71k | mipsisa64sr71kel \
2696 + | mipstx39 | mipstx39el \
2697 + | mn10200 | mn10300 \
2698 + | msp430 \
2699 + | ns16k | ns32k \
2700 + | openrisc | or32 \
2701 + | pdp10 | pdp11 | pj | pjl \
2702 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
2703 + | pyramid \
2704 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
2705 + | sh64 | sh64le \
2706 + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
2707 + | strongarm \
2708 + | tahoe | thumb | tic80 | tron \
2709 + | v850 | v850e \
2710 + | we32k \
2711 + | x86 | xscale | xstormy16 | xtensa \
2712 + | z8k)
2713 basic_machine=$basic_machine-unknown
2714 ;;
2715 m6811 | m68hc11 | m6812 | m68hc12)
2716 @@ -242,7 +273,7 @@
2717 basic_machine=$basic_machine-unknown
2718 os=-none
2719 ;;
2720 - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
2721 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
2722 ;;
2723
2724 # We use `pc' rather than `unknown'
2725 @@ -257,31 +288,60 @@
2726 exit 1
2727 ;;
2728 # Recognize the basic CPU types with company name.
2729 - # FIXME: clean up the formatting here.
2730 - vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
2731 - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
2732 - | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
2733 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
2734 - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
2735 - | xmp-* | ymp-* \
2736 - | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
2737 - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
2738 - | hppa2.0n-* | hppa64-* \
2739 - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
2740 - | alphaev6[78]-* \
2741 - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
2742 - | clipper-* | orion-* \
2743 - | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
2744 - | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
2745 - | mips16-* | mips64-* | mipsel-* \
2746 - | mips64el-* | mips64orion-* | mips64orionel-* \
2747 - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
2748 - | mipstx39-* | mipstx39el-* | mcore-* \
2749 - | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
2750 - | [cjt]90-* \
2751 - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
2752 - | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
2753 - | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
2754 + 580-* \
2755 + | a29k-* \
2756 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
2757 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
2758 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
2759 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
2760 + | avr-* \
2761 + | bs2000-* \
2762 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
2763 + | clipper-* | cydra-* \
2764 + | d10v-* | d30v-* | dlx-* \
2765 + | elxsi-* \
2766 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
2767 + | h8300-* | h8500-* \
2768 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
2769 + | i*86-* | i860-* | i960-* | ia64-* \
2770 + | ip2k-* \
2771 + | m32r-* \
2772 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
2773 + | m88110-* | m88k-* | mcore-* \
2774 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
2775 + | mips16-* \
2776 + | mips64-* | mips64el-* \
2777 + | mips64vr-* | mips64vrel-* \
2778 + | mips64orion-* | mips64orionel-* \
2779 + | mips64vr4100-* | mips64vr4100el-* \
2780 + | mips64vr4300-* | mips64vr4300el-* \
2781 + | mips64vr5000-* | mips64vr5000el-* \
2782 + | mipsisa32-* | mipsisa32el-* \
2783 + | mipsisa32r2-* | mipsisa32r2el-* \
2784 + | mipsisa64-* | mipsisa64el-* \
2785 + | mipsisa64sb1-* | mipsisa64sb1el-* \
2786 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
2787 + | mipstx39-* | mipstx39el-* \
2788 + | msp430-* \
2789 + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
2790 + | orion-* \
2791 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
2792 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
2793 + | pyramid-* \
2794 + | romp-* | rs6000-* \
2795 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
2796 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
2797 + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
2798 + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
2799 + | tahoe-* | thumb-* \
2800 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
2801 + | tron-* \
2802 + | v850-* | v850e-* | vax-* \
2803 + | we32k-* \
2804 + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
2805 + | xtensa-* \
2806 + | ymp-* \
2807 + | z8k-*)
2808 ;;
2809 # Recognize the various machine names and aliases which stand
2810 # for a CPU type and a company and sometimes even an OS.
2811 @@ -313,6 +373,9 @@
2812 basic_machine=a29k-none
2813 os=-bsd
2814 ;;
2815 + amd64)
2816 + basic_machine=x86_64-pc
2817 + ;;
2818 amdahl)
2819 basic_machine=580-amdahl
2820 os=-sysv
2821 @@ -344,6 +407,10 @@
2822 basic_machine=ns32k-sequent
2823 os=-dynix
2824 ;;
2825 + c90)
2826 + basic_machine=c90-cray
2827 + os=-unicos
2828 + ;;
2829 convex-c1)
2830 basic_machine=c1-convex
2831 os=-bsd
2832 @@ -364,16 +431,8 @@
2833 basic_machine=c38-convex
2834 os=-bsd
2835 ;;
2836 - cray | ymp)
2837 - basic_machine=ymp-cray
2838 - os=-unicos
2839 - ;;
2840 - cray2)
2841 - basic_machine=cray2-cray
2842 - os=-unicos
2843 - ;;
2844 - [cjt]90)
2845 - basic_machine=${basic_machine}-cray
2846 + cray | j90)
2847 + basic_machine=j90-cray
2848 os=-unicos
2849 ;;
2850 crds | unos)
2851 @@ -388,6 +447,14 @@
2852 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2853 basic_machine=mips-dec
2854 ;;
2855 + decsystem10* | dec10*)
2856 + basic_machine=pdp10-dec
2857 + os=-tops10
2858 + ;;
2859 + decsystem20* | dec20*)
2860 + basic_machine=pdp10-dec
2861 + os=-tops20
2862 + ;;
2863 delta | 3300 | motorola-3300 | motorola-delta \
2864 | 3300-motorola | delta-motorola)
2865 basic_machine=m68k-motorola
2866 @@ -568,14 +635,6 @@
2867 basic_machine=m68k-atari
2868 os=-mint
2869 ;;
2870 - mipsel*-linux*)
2871 - basic_machine=mipsel-unknown
2872 - os=-linux-gnu
2873 - ;;
2874 - mips*-linux*)
2875 - basic_machine=mips-unknown
2876 - os=-linux-gnu
2877 - ;;
2878 mips3*-*)
2879 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2880 ;;
2881 @@ -590,6 +649,10 @@
2882 basic_machine=m68k-rom68k
2883 os=-coff
2884 ;;
2885 + morphos)
2886 + basic_machine=powerpc-unknown
2887 + os=-morphos
2888 + ;;
2889 msdos)
2890 basic_machine=i386-pc
2891 os=-msdos
2892 @@ -662,6 +725,10 @@
2893 np1)
2894 basic_machine=np1-gould
2895 ;;
2896 + nv1)
2897 + basic_machine=nv1-cray
2898 + os=-unicosmp
2899 + ;;
2900 nsr-tandem)
2901 basic_machine=nsr-tandem
2902 ;;
2903 @@ -669,6 +736,10 @@
2904 basic_machine=hppa1.1-oki
2905 os=-proelf
2906 ;;
2907 + or32 | or32-*)
2908 + basic_machine=or32-unknown
2909 + os=-coff
2910 + ;;
2911 OSE68000 | ose68000)
2912 basic_machine=m68000-ericsson
2913 os=-ose
2914 @@ -691,19 +762,19 @@
2915 pbb)
2916 basic_machine=m68k-tti
2917 ;;
2918 - pc532 | pc532-*)
2919 + pc532 | pc532-*)
2920 basic_machine=ns32k-pc532
2921 ;;
2922 - pentium | p5 | k5 | k6 | nexgen)
2923 + pentium | p5 | k5 | k6 | nexgen | viac3)
2924 basic_machine=i586-pc
2925 ;;
2926 - pentiumpro | p6 | 6x86 | athlon)
2927 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
2928 basic_machine=i686-pc
2929 ;;
2930 pentiumii | pentium2)
2931 basic_machine=i686-pc
2932 ;;
2933 - pentium-* | p5-* | k5-* | k6-* | nexgen-*)
2934 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2935 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2936 ;;
2937 pentiumpro-* | p6-* | 6x86-* | athlon-*)
2938 @@ -718,15 +789,25 @@
2939 power) basic_machine=power-ibm
2940 ;;
2941 ppc) basic_machine=powerpc-unknown
2942 - ;;
2943 + ;;
2944 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2945 ;;
2946 ppcle | powerpclittle | ppc-le | powerpc-little)
2947 basic_machine=powerpcle-unknown
2948 - ;;
2949 + ;;
2950 ppcle-* | powerpclittle-*)
2951 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2952 ;;
2953 + ppc64) basic_machine=powerpc64-unknown
2954 + ;;
2955 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2956 + ;;
2957 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2958 + basic_machine=powerpc64le-unknown
2959 + ;;
2960 + ppc64le-* | powerpc64little-*)
2961 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2962 + ;;
2963 ps2)
2964 basic_machine=i386-ibm
2965 ;;
2966 @@ -744,10 +825,22 @@
2967 rtpc | rtpc-*)
2968 basic_machine=romp-ibm
2969 ;;
2970 + s390 | s390-*)
2971 + basic_machine=s390-ibm
2972 + ;;
2973 + s390x | s390x-*)
2974 + basic_machine=s390x-ibm
2975 + ;;
2976 sa29200)
2977 basic_machine=a29k-amd
2978 os=-udi
2979 ;;
2980 + sb1)
2981 + basic_machine=mipsisa64sb1-unknown
2982 + ;;
2983 + sb1el)
2984 + basic_machine=mipsisa64sb1el-unknown
2985 + ;;
2986 sequent)
2987 basic_machine=i386-sequent
2988 ;;
2989 @@ -755,7 +848,7 @@
2990 basic_machine=sh-hitachi
2991 os=-hms
2992 ;;
2993 - sparclite-wrs)
2994 + sparclite-wrs | simso-wrs)
2995 basic_machine=sparclite-wrs
2996 os=-vxworks
2997 ;;
2998 @@ -822,19 +915,39 @@
2999 os=-dynix
3000 ;;
3001 t3e)
3002 - basic_machine=t3e-cray
3003 + basic_machine=alphaev5-cray
3004 os=-unicos
3005 ;;
3006 + t90)
3007 + basic_machine=t90-cray
3008 + os=-unicos
3009 + ;;
3010 + tic4x | c4x*)
3011 + basic_machine=tic4x-unknown
3012 + os=-coff
3013 + ;;
3014 tic54x | c54x*)
3015 basic_machine=tic54x-unknown
3016 os=-coff
3017 ;;
3018 + tic55x | c55x*)
3019 + basic_machine=tic55x-unknown
3020 + os=-coff
3021 + ;;
3022 + tic6x | c6x*)
3023 + basic_machine=tic6x-unknown
3024 + os=-coff
3025 + ;;
3026 tx39)
3027 basic_machine=mipstx39-unknown
3028 ;;
3029 tx39el)
3030 basic_machine=mipstx39el-unknown
3031 ;;
3032 + toad1)
3033 + basic_machine=pdp10-xkl
3034 + os=-tops20
3035 + ;;
3036 tower | tower-32)
3037 basic_machine=m68k-ncr
3038 ;;
3039 @@ -859,8 +972,8 @@
3040 os=-vms
3041 ;;
3042 vpp*|vx|vx-*)
3043 - basic_machine=f301-fujitsu
3044 - ;;
3045 + basic_machine=f301-fujitsu
3046 + ;;
3047 vxworks960)
3048 basic_machine=i960-wrs
3049 os=-vxworks
3050 @@ -881,13 +994,13 @@
3051 basic_machine=hppa1.1-winbond
3052 os=-proelf
3053 ;;
3054 - xmp)
3055 - basic_machine=xmp-cray
3056 - os=-unicos
3057 - ;;
3058 - xps | xps100)
3059 + xps | xps100)
3060 basic_machine=xps100-honeywell
3061 ;;
3062 + ymp)
3063 + basic_machine=ymp-cray
3064 + os=-unicos
3065 + ;;
3066 z8k-*-coff)
3067 basic_machine=z8k-unknown
3068 os=-sim
3069 @@ -908,13 +1021,6 @@
3070 op60c)
3071 basic_machine=hppa1.1-oki
3072 ;;
3073 - mips)
3074 - if [ x$os = x-linux-gnu ]; then
3075 - basic_machine=mips-unknown
3076 - else
3077 - basic_machine=mips-mips
3078 - fi
3079 - ;;
3080 romp)
3081 basic_machine=romp-ibm
3082 ;;
3083 @@ -934,13 +1040,16 @@
3084 we32k)
3085 basic_machine=we32k-att
3086 ;;
3087 - sh3 | sh4)
3088 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
3089 basic_machine=sh-unknown
3090 ;;
3091 + sh64)
3092 + basic_machine=sh64-unknown
3093 + ;;
3094 sparc | sparcv9 | sparcv9b)
3095 basic_machine=sparc-sun
3096 ;;
3097 - cydra)
3098 + cydra)
3099 basic_machine=cydra-cydrome
3100 ;;
3101 orion)
3102 @@ -955,10 +1064,6 @@
3103 pmac | pmac-mpw)
3104 basic_machine=powerpc-apple
3105 ;;
3106 - c4x*)
3107 - basic_machine=c4x-none
3108 - os=-coff
3109 - ;;
3110 *-unknown)
3111 # Make sure to match an already-canonicalized machine name.
3112 ;;
3113 @@ -1018,11 +1123,15 @@
3114 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3115 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3116 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3117 + | -chorusos* | -chorusrdb* \
3118 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3119 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
3120 - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
3121 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3122 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3123 - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
3124 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
3125 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
3126 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
3127 + | -powermax* | -dnix*)
3128 # Remember, each alternative MUST END IN *, to match a version number.
3129 ;;
3130 -qnx*)
3131 @@ -1034,8 +1143,10 @@
3132 ;;
3133 esac
3134 ;;
3135 + -nto-qnx*)
3136 + ;;
3137 -nto*)
3138 - os=-nto-qnx
3139 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
3140 ;;
3141 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
3142 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
3143 @@ -1074,14 +1185,20 @@
3144 -acis*)
3145 os=-aos
3146 ;;
3147 + -atheos*)
3148 + os=-atheos
3149 + ;;
3150 -386bsd)
3151 os=-bsd
3152 ;;
3153 -ctix* | -uts*)
3154 os=-sysv
3155 ;;
3156 + -nova*)
3157 + os=-rtmk-nova
3158 + ;;
3159 -ns2 )
3160 - os=-nextstep2
3161 + os=-nextstep2
3162 ;;
3163 -nsk*)
3164 os=-nsk
3165 @@ -1120,8 +1237,14 @@
3166 -xenix)
3167 os=-xenix
3168 ;;
3169 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3170 - os=-mint
3171 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3172 + os=-mint
3173 + ;;
3174 + -aros*)
3175 + os=-aros
3176 + ;;
3177 + -kaos*)
3178 + os=-kaos
3179 ;;
3180 -none)
3181 ;;
3182 @@ -1154,10 +1277,11 @@
3183 arm*-semi)
3184 os=-aout
3185 ;;
3186 + # This must come before the *-dec entry.
3187 pdp10-*)
3188 os=-tops20
3189 ;;
3190 - pdp11-*)
3191 + pdp11-*)
3192 os=-none
3193 ;;
3194 *-dec | vax-*)
3195 @@ -1184,6 +1308,9 @@
3196 mips*-*)
3197 os=-elf
3198 ;;
3199 + or32-*)
3200 + os=-coff
3201 + ;;
3202 *-tti) # must be before sparc entry or we get the wrong os.
3203 os=-sysv3
3204 ;;
3205 @@ -1247,19 +1374,19 @@
3206 *-next)
3207 os=-nextstep3
3208 ;;
3209 - *-gould)
3210 + *-gould)
3211 os=-sysv
3212 ;;
3213 - *-highlevel)
3214 + *-highlevel)
3215 os=-bsd
3216 ;;
3217 *-encore)
3218 os=-bsd
3219 ;;
3220 - *-sgi)
3221 + *-sgi)
3222 os=-irix
3223 ;;
3224 - *-siemens)
3225 + *-siemens)
3226 os=-sysv4
3227 ;;
3228 *-masscomp)
3229 @@ -1331,7 +1458,7 @@
3230 -ptx*)
3231 vendor=sequent
3232 ;;
3233 - -vxsim* | -vxworks*)
3234 + -vxsim* | -vxworks* | -windiss*)
3235 vendor=wrs
3236 ;;
3237 -aux*)
3238 @@ -1346,6 +1473,9 @@
3239 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3240 vendor=atari
3241 ;;
3242 + -vos*)
3243 + vendor=stratus
3244 + ;;
3245 esac
3246 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
3247 ;;
3248 --- linux-atm-2.4.1.orig/configure
3249 +++ linux-atm-2.4.1/configure
3250 @@ -1,24 +1,244 @@
3251 #! /bin/sh
3252 -
3253 # Guess values for system-dependent variables and create Makefiles.
3254 -# Generated automatically using autoconf version 2.13
3255 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
3256 +# Generated by GNU Autoconf 2.57.
3257 #
3258 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
3259 +# Free Software Foundation, Inc.
3260 # This configure script is free software; the Free Software Foundation
3261 # gives unlimited permission to copy, distribute and modify it.
3262 +## --------------------- ##
3263 +## M4sh Initialization. ##
3264 +## --------------------- ##
3265 +
3266 +# Be Bourne compatible
3267 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3268 + emulate sh
3269 + NULLCMD=:
3270 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3271 + # is contrary to our usage. Disable this feature.
3272 + alias -g '${1+"$@"}'='"$@"'
3273 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3274 + set -o posix
3275 +fi
3276 +
3277 +# Support unset when possible.
3278 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3279 + as_unset=unset
3280 +else
3281 + as_unset=false
3282 +fi
3283 +
3284 +
3285 +# Work around bugs in pre-3.0 UWIN ksh.
3286 +$as_unset ENV MAIL MAILPATH
3287 +PS1='$ '
3288 +PS2='> '
3289 +PS4='+ '
3290 +
3291 +# NLS nuisances.
3292 +for as_var in \
3293 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3294 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3295 + LC_TELEPHONE LC_TIME
3296 +do
3297 + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3298 + eval $as_var=C; export $as_var
3299 + else
3300 + $as_unset $as_var
3301 + fi
3302 +done
3303 +
3304 +# Required to use basename.
3305 +if expr a : '\(a\)' >/dev/null 2>&1; then
3306 + as_expr=expr
3307 +else
3308 + as_expr=false
3309 +fi
3310 +
3311 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3312 + as_basename=basename
3313 +else
3314 + as_basename=false
3315 +fi
3316 +
3317 +
3318 +# Name of the executable.
3319 +as_me=`$as_basename "$0" ||
3320 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3321 + X"$0" : 'X\(//\)$' \| \
3322 + X"$0" : 'X\(/\)$' \| \
3323 + . : '\(.\)' 2>/dev/null ||
3324 +echo X/"$0" |
3325 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3326 + /^X\/\(\/\/\)$/{ s//\1/; q; }
3327 + /^X\/\(\/\).*/{ s//\1/; q; }
3328 + s/.*/./; q'`
3329 +
3330 +
3331 +# PATH needs CR, and LINENO needs CR and PATH.
3332 +# Avoid depending upon Character Ranges.
3333 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3334 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3335 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3336 +as_cr_digits='0123456789'
3337 +as_cr_alnum=$as_cr_Letters$as_cr_digits
3338 +
3339 +# The user is always right.
3340 +if test "${PATH_SEPARATOR+set}" != set; then
3341 + echo "#! /bin/sh" >conf$$.sh
3342 + echo "exit 0" >>conf$$.sh
3343 + chmod +x conf$$.sh
3344 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3345 + PATH_SEPARATOR=';'
3346 + else
3347 + PATH_SEPARATOR=:
3348 + fi
3349 + rm -f conf$$.sh
3350 +fi
3351 +
3352 +
3353 + as_lineno_1=$LINENO
3354 + as_lineno_2=$LINENO
3355 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3356 + test "x$as_lineno_1" != "x$as_lineno_2" &&
3357 + test "x$as_lineno_3" = "x$as_lineno_2" || {
3358 + # Find who we are. Look in the path if we contain no path at all
3359 + # relative or not.
3360 + case $0 in
3361 + *[\\/]* ) as_myself=$0 ;;
3362 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 +for as_dir in $PATH
3364 +do
3365 + IFS=$as_save_IFS
3366 + test -z "$as_dir" && as_dir=.
3367 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3368 +done
3369 +
3370 + ;;
3371 + esac
3372 + # We did not find ourselves, most probably we were run as `sh COMMAND'
3373 + # in which case we are not to be found in the path.
3374 + if test "x$as_myself" = x; then
3375 + as_myself=$0
3376 + fi
3377 + if test ! -f "$as_myself"; then
3378 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
3379 + { (exit 1); exit 1; }; }
3380 + fi
3381 + case $CONFIG_SHELL in
3382 + '')
3383 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3385 +do
3386 + IFS=$as_save_IFS
3387 + test -z "$as_dir" && as_dir=.
3388 + for as_base in sh bash ksh sh5; do
3389 + case $as_dir in
3390 + /*)
3391 + if ("$as_dir/$as_base" -c '
3392 + as_lineno_1=$LINENO
3393 + as_lineno_2=$LINENO
3394 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3395 + test "x$as_lineno_1" != "x$as_lineno_2" &&
3396 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3397 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3398 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3399 + CONFIG_SHELL=$as_dir/$as_base
3400 + export CONFIG_SHELL
3401 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3402 + fi;;
3403 + esac
3404 + done
3405 +done
3406 +;;
3407 + esac
3408 +
3409 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3410 + # uniformly replaced by the line number. The first 'sed' inserts a
3411 + # line-number line before each line; the second 'sed' does the real
3412 + # work. The second script uses 'N' to pair each line-number line
3413 + # with the numbered line, and appends trailing '-' during
3414 + # substitution so that $LINENO is not a special case at line end.
3415 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3416 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3417 + sed '=' <$as_myself |
3418 + sed '
3419 + N
3420 + s,$,-,
3421 + : loop
3422 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3423 + t loop
3424 + s,-$,,
3425 + s,^['$as_cr_digits']*\n,,
3426 + ' >$as_me.lineno &&
3427 + chmod +x $as_me.lineno ||
3428 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3429 + { (exit 1); exit 1; }; }
3430 +
3431 + # Don't try to exec as it changes $[0], causing all sort of problems
3432 + # (the dirname of $[0] is not the place where we might find the
3433 + # original and so on. Autoconf is especially sensible to this).
3434 + . ./$as_me.lineno
3435 + # Exit status is that of the last command.
3436 + exit
3437 +}
3438 +
3439 +
3440 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3441 + *c*,-n*) ECHO_N= ECHO_C='
3442 +' ECHO_T=' ' ;;
3443 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3444 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3445 +esac
3446 +
3447 +if expr a : '\(a\)' >/dev/null 2>&1; then
3448 + as_expr=expr
3449 +else
3450 + as_expr=false
3451 +fi
3452 +
3453 +rm -f conf$$ conf$$.exe conf$$.file
3454 +echo >conf$$.file
3455 +if ln -s conf$$.file conf$$ 2>/dev/null; then
3456 + # We could just check for DJGPP; but this test a) works b) is more generic
3457 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3458 + if test -f conf$$.exe; then
3459 + # Don't use ln at all; we don't have any links
3460 + as_ln_s='cp -p'
3461 + else
3462 + as_ln_s='ln -s'
3463 + fi
3464 +elif ln conf$$.file conf$$ 2>/dev/null; then
3465 + as_ln_s=ln
3466 +else
3467 + as_ln_s='cp -p'
3468 +fi
3469 +rm -f conf$$ conf$$.exe conf$$.file
3470 +
3471 +if mkdir -p . 2>/dev/null; then
3472 + as_mkdir_p=:
3473 +else
3474 + as_mkdir_p=false
3475 +fi
3476 +
3477 +as_executable_p="test -f"
3478 +
3479 +# Sed expression to map a string onto a valid CPP name.
3480 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3481 +
3482 +# Sed expression to map a string onto a valid variable name.
3483 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3484 +
3485 +
3486 +# IFS
3487 +# We need space, tab and new line, in precisely that order.
3488 +as_nl='
3489 +'
3490 +IFS=" $as_nl"
3491 +
3492 +# CDPATH.
3493 +$as_unset CDPATH
3494
3495 -# Defaults:
3496 -ac_help=
3497 -ac_default_prefix=/usr/local
3498 -# Any additions from configure.in:
3499 -ac_help="$ac_help
3500 - --enable-shared[=PKGS] build shared libraries [default=yes]"
3501 -ac_help="$ac_help
3502 - --enable-static[=PKGS] build static libraries [default=yes]"
3503 -ac_help="$ac_help
3504 - --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
3505 -ac_help="$ac_help
3506 - --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
3507
3508 # Find the correct PATH separator. Usually this is `:', but
3509 # DJGPP uses `;' like DOS.
3510 @@ -28,6 +248,7 @@
3511 *-DOS) lt_cv_sys_path_separator=';' ;;
3512 *) lt_cv_sys_path_separator=':' ;;
3513 esac
3514 + PATH_SEPARATOR=$lt_cv_sys_path_separator
3515 fi
3516
3517
3518 @@ -94,7 +315,7 @@
3519 #
3520 # So, first we look for a working echo in the user's PATH.
3521
3522 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
3523 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3524 for dir in $PATH /usr/ucb; do
3525 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3526 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3527 @@ -177,34 +398,86 @@
3528 fi
3529
3530
3531 -ac_help="$ac_help
3532 - --disable-libtool-lock avoid locking (might break parallel builds)"
3533 -ac_help="$ac_help
3534 - --with-pic try to use only PIC/non-PIC objects [default=use both]"
3535 -ac_help="$ac_help
3536 - --with-uni=VERSION UNI version to use (3.0,3.1,4.0) [default=dynamic]"
3537 -ac_help="$ac_help
3538 - --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)"
3539 -ac_help="$ac_help
3540 - --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)"
3541 -ac_help="$ac_help
3542 - --enable-cisco Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches"
3543 -ac_help="$ac_help
3544 - --enable-thomflex Some versions of the Thomson Thomflex 5000 won't do any signaling before they get a RESTART. Enable sending of a RESTART whenever SAAL comes up."
3545 -ac_help="$ac_help
3546 - --enable-mpoa_1_1 Enable proposed MPOA 1.1 features"
3547 -ac_help="$ac_help
3548 - --enable-mpr Enable memory debugging (if MPR is installed)"
3549 +
3550 +# Name of the host.
3551 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
3552 +# so uname gets run too.
3553 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
3554 +
3555 +exec 6>&1
3556 +
3557 +#
3558 +# Initializations.
3559 +#
3560 +ac_default_prefix=/usr/local
3561 +ac_config_libobj_dir=.
3562 +cross_compiling=no
3563 +subdirs=
3564 +MFLAGS=
3565 +MAKEFLAGS=
3566 +SHELL=${CONFIG_SHELL-/bin/sh}
3567 +
3568 +# Maximum number of lines to put in a shell here document.
3569 +# This variable seems obsolete. It should probably be removed, and
3570 +# only ac_max_sed_lines should be used.
3571 +: ${ac_max_here_lines=38}
3572 +
3573 +# Identity of this package.
3574 +PACKAGE_NAME=
3575 +PACKAGE_TARNAME=
3576 +PACKAGE_VERSION=
3577 +PACKAGE_STRING=
3578 +PACKAGE_BUGREPORT=
3579 +
3580 +ac_unique_file="src/include/atm.h"
3581 +# Factoring default headers for most tests.
3582 +ac_includes_default="\
3583 +#include <stdio.h>
3584 +#if HAVE_SYS_TYPES_H
3585 +# include <sys/types.h>
3586 +#endif
3587 +#if HAVE_SYS_STAT_H
3588 +# include <sys/stat.h>
3589 +#endif
3590 +#if STDC_HEADERS
3591 +# include <stdlib.h>