~ubuntu-branches/ubuntu/feisty/linux-atm/feisty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Peter De Schrijver (p2)
  • Date: 2005-03-17 23:02:03 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050317230203-7vc1pxi0oua0nw5w
Tags: 2.4.1-17
Fix build problem with gcc 4.0 (Closes: )

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl aclocal.m4 generated automatically by aclocal 1.4-p4
 
1
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2
2
 
3
 
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 
3
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4
4
dnl This file is free software; the Free Software Foundation
5
5
dnl gives unlimited permission to copy and/or distribute it,
6
6
dnl with or without modifications, as long as this notice is preserved.
12
12
 
13
13
# Like AC_CONFIG_HEADER, but automatically create stamp file.
14
14
 
15
 
AC_DEFUN(AM_CONFIG_HEADER,
 
15
AC_DEFUN([AM_CONFIG_HEADER],
16
16
[AC_PREREQ([2.12])
17
17
AC_CONFIG_HEADER([$1])
18
18
dnl When config.status generates a header, we must update the stamp-h file.
42
42
dnl Usage:
43
43
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
44
44
 
45
 
AC_DEFUN(AM_INIT_AUTOMAKE,
46
 
[AC_REQUIRE([AC_PROG_INSTALL])
 
45
AC_DEFUN([AM_INIT_AUTOMAKE],
 
46
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
47
AC_REQUIRE([AC_PROG_INSTALL])
47
48
PACKAGE=[$1]
48
49
AC_SUBST(PACKAGE)
49
50
VERSION=[$2]
59
60
AC_REQUIRE([AC_ARG_PROGRAM])
60
61
dnl FIXME This is truly gross.
61
62
missing_dir=`cd $ac_aux_dir && pwd`
62
 
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
 
63
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
63
64
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
64
 
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
 
65
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
65
66
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
66
67
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
67
68
AC_REQUIRE([AC_PROG_MAKE_SET])])
68
69
 
 
70
# Copyright 2002  Free Software Foundation, Inc.
 
71
 
 
72
# This program is free software; you can redistribute it and/or modify
 
73
# it under the terms of the GNU General Public License as published by
 
74
# the Free Software Foundation; either version 2, or (at your option)
 
75
# any later version.
 
76
 
 
77
# This program is distributed in the hope that it will be useful,
 
78
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
79
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
80
# GNU General Public License for more details.
 
81
 
 
82
# You should have received a copy of the GNU General Public License
 
83
# along with this program; if not, write to the Free Software
 
84
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
85
 
 
86
# AM_AUTOMAKE_VERSION(VERSION)
 
87
# ----------------------------
 
88
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
89
# generated from the m4 files accompanying Automake X.Y.
 
90
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
 
91
 
 
92
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
93
# -------------------------------
 
94
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
95
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
96
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
97
         [AM_AUTOMAKE_VERSION([1.4-p6])])
 
98
 
69
99
#
70
100
# Check to make sure that the build environment is sane.
71
101
#
72
102
 
73
 
AC_DEFUN(AM_SANITY_CHECK,
 
103
AC_DEFUN([AM_SANITY_CHECK],
74
104
[AC_MSG_CHECKING([whether build environment is sane])
75
105
# Just in case
76
106
sleep 1
111
141
 
112
142
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
113
143
dnl The program must properly implement --version.
114
 
AC_DEFUN(AM_MISSING_PROG,
 
144
AC_DEFUN([AM_MISSING_PROG],
115
145
[AC_MSG_CHECKING(for working $2)
116
146
# Run test in a subshell; some versions of sh will print an error if
117
147
# an executable is not found, even if stderr is redirected.
128
158
 
129
159
dnl AM_PROG_LEX
130
160
dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
131
 
AC_DEFUN(AM_PROG_LEX,
 
161
AC_DEFUN([AM_PROG_LEX],
132
162
[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
133
 
AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
 
163
AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
134
164
AC_PROG_LEX
135
165
AC_DECL_YYTEXT])
136
166
 
163
193
AC_REQUIRE([AC_PROG_LD])dnl
164
194
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
165
195
AC_REQUIRE([AC_PROG_NM])dnl
 
196
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
197
 
166
198
AC_REQUIRE([AC_PROG_LN_S])dnl
167
199
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
168
200
AC_REQUIRE([AC_OBJEXT])dnl
333
365
irix* | nonstopux*)
334
366
  symcode='[[BCDEGRST]]'
335
367
  ;;
 
368
osf*)
 
369
  symcode='[[BCDEGQRST]]'
 
370
  ;;
336
371
solaris* | sysv5*)
337
372
  symcode='[[BDT]]'
338
373
  ;;
429
464
          save_CFLAGS="$CFLAGS"
430
465
          LIBS="conftstm.$ac_objext"
431
466
          CFLAGS="$CFLAGS$no_builtin_flag"
432
 
          if AC_TRY_EVAL(ac_link) && test -s conftest; then
 
467
          if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
433
468
            pipe_works=yes
434
469
          fi
435
470
          LIBS="$save_LIBS"
1060
1095
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1061
1096
      lt_cv_prog_cc_pic='-KPIC'
1062
1097
      lt_cv_prog_cc_static='-Bstatic'
1063
 
      if test "x$host_vendor" = xsni; then
1064
 
        lt_cv_prog_cc_wl='-LD'
1065
 
      else
1066
 
        lt_cv_prog_cc_wl='-Wl,'
1067
 
      fi
 
1098
      lt_cv_prog_cc_wl='-Wl,'
1068
1099
      ;;
1069
1100
 
1070
1101
    uts4*)
1429
1460
    # If the export-symbols file already is a .def file (1st line
1430
1461
    # is EXPORTS), use it as is.
1431
1462
    # If DATA tags from a recent dlltool are present, honour them!
1432
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 
1463
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
1433
1464
        cp $export_symbols $output_objdir/$soname-def;
1434
1465
      else
1435
1466
        echo EXPORTS > $output_objdir/$soname-def;
1438
1469
         set dummy \$symbol;
1439
1470
         case \[$]# in
1440
1471
           2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
1472
           4) echo "   \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
1441
1473
           *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
1442
1474
         esac;
1443
1475
         _lt_hint=`expr 1 + \$_lt_hint`;
1550
1582
      # need to do runtime linking.
1551
1583
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1552
1584
        for ld_flag in $LDFLAGS; do
1553
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
1585
          case $ld_flag in
 
1586
          *-brtl*)
1554
1587
            aix_use_runtimelinking=yes
1555
1588
            break
1556
 
          fi
 
1589
          ;;
 
1590
          esac
1557
1591
        done
1558
1592
      esac
1559
1593
 
1625
1659
        allow_undefined_flag='${wl}-berok'
1626
1660
        # This is a bit strange, but is similar to how AIX traditionally builds
1627
1661
        # it's shared libraries.
1628
 
        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'
 
1662
        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'
1629
1663
      fi
1630
1664
    fi
1631
1665
    ;;
1669
1703
    #        cross-compilation, but unfortunately the echo tests do not
1670
1704
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
1671
1705
    #        `"' quotes if we put them in here... so don't!
1672
 
    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
 
1706
    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)'
1673
1707
    # We need to add '_' to the symbols in $export_symbols first
1674
1708
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
1675
1709
    hardcode_direct=yes
1724
1758
  irix5* | irix6* | nonstopux*)
1725
1759
    if test "$GCC" = yes; then
1726
1760
      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'
 
1761
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1727
1762
    else
1728
1763
      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'
 
1764
      hardcode_libdir_flag_spec='-rpath $libdir'
1729
1765
    fi
1730
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1731
1766
    hardcode_libdir_separator=:
1732
1767
    link_all_deplibs=yes
1733
1768
    ;;
1755
1790
    hardcode_direct=yes
1756
1791
    hardcode_shlibpath_var=no
1757
1792
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1758
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
1793
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1759
1794
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1760
1795
      export_dynamic_flag_spec='${wl}-E'
1761
1796
    else
1765
1800
        hardcode_libdir_flag_spec='-R$libdir'
1766
1801
        ;;
1767
1802
      *)
1768
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
1803
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1769
1804
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1770
1805
        ;;
1771
1806
      esac
1877
1912
    ;;
1878
1913
 
1879
1914
  sysv4)
1880
 
    if test "x$host_vendor" = xsno; then
1881
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
1882
 
      hardcode_direct=yes # is this really true???
1883
 
    else
1884
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1885
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1886
 
    fi
 
1915
    case $host_vendor in
 
1916
      sni)
 
1917
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
1918
        hardcode_direct=yes # is this really true???
 
1919
        ;;
 
1920
      siemens)
 
1921
        ## LD is ld it makes a PLAMLIB
 
1922
        ## CC just makes a GrossModule.
 
1923
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
1924
        reload_cmds='$CC -r -o $output$reload_objs'
 
1925
        hardcode_direct=no
 
1926
        ;;
 
1927
      motorola)
 
1928
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
1929
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
1930
        ;;
 
1931
    esac
1887
1932
    runpath_var='LD_RUN_PATH'
1888
1933
    hardcode_shlibpath_var=no
1889
1934
    ;;
2024
2069
 
2025
2070
aix4* | aix5*)
2026
2071
  version_type=linux
 
2072
  need_lib_prefix=no
 
2073
  need_version=no
 
2074
  hardcode_into_libs=yes
2027
2075
  if test "$host_cpu" = ia64; then
2028
2076
    # AIX 5 supports IA64
2029
2077
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
2062
2110
    fi
2063
2111
    shlibpath_var=LIBPATH
2064
2112
  fi
 
2113
  hardcode_into_libs=yes
2065
2114
  ;;
2066
2115
 
2067
2116
amigaos*)
2109
2158
    ;;
2110
2159
  yes,mingw*)
2111
2160
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2112
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 
2161
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
2113
2162
    ;;
2114
2163
  yes,pw32*)
2115
2164
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
2141
2190
  dynamic_linker=no
2142
2191
  ;;
2143
2192
 
 
2193
freebsd*-gnu*)
 
2194
  version_type=linux
 
2195
  need_lib_prefix=no
 
2196
  need_version=no
 
2197
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2198
  soname_spec='${libname}${release}.so$major'
 
2199
  shlibpath_var=LD_LIBRARY_PATH
 
2200
  shlibpath_overrides_runpath=no
 
2201
  hardcode_into_libs=yes
 
2202
  dynamic_linker='GNU/FreeBSD ld.so'
 
2203
  ;;
 
2204
 
2144
2205
freebsd*)
2145
2206
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2146
2207
  version_type=freebsd-$objformat
2307
2368
  version_type=osf
2308
2369
  need_version=no
2309
2370
  need_lib_prefix=no
2310
 
  soname_spec='${libname}${release}.so'
2311
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
2371
  soname_spec='${libname}${release}.so$major'
 
2372
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2312
2373
  shlibpath_var=LD_LIBRARY_PATH
2313
2374
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2314
2375
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
2376
  hardcode_into_libs=yes
2315
2377
  ;;
2316
2378
 
2317
2379
sco3.2v5*)
2354
2416
  case $host_vendor in
2355
2417
    sni)
2356
2418
      shlibpath_overrides_runpath=no
 
2419
      need_lib_prefix=no
 
2420
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
2421
      runpath_var=LD_RUN_PATH
 
2422
      ;;
 
2423
    siemens)
 
2424
      need_lib_prefix=no
2357
2425
      ;;
2358
2426
    motorola)
2359
2427
      need_lib_prefix=no
2508
2576
  # Now quote all the things that may contain metacharacters while being
2509
2577
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
2510
2578
  # variables and quote the copies for generation of the libtool script.
2511
 
  for var in echo old_CC old_CFLAGS \
 
2579
  for var in echo old_CC old_CFLAGS SED \
2512
2580
    AR AR_FLAGS CC LD LN_S NM SHELL \
2513
2581
    reload_flag reload_cmds wl \
2514
2582
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
2570
2638
# configuration script generated by Autoconf, you may include it under
2571
2639
# the same distribution terms that you use for the rest of that program.
2572
2640
 
 
2641
# A sed that does not truncate output.
 
2642
SED=$lt_SED
 
2643
 
2573
2644
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2574
 
Xsed="sed -e s/^X//"
 
2645
Xsed="${SED} -e s/^X//"
2575
2646
 
2576
2647
# The HP-UX ksh and POSIX shell print the target directory to stdout
2577
2648
# if CDPATH is set.
3332
3403
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3333
3404
#  -- PORTME fill in with the dynamic library characteristics
3334
3405
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3335
 
[AC_CACHE_CHECK([how to recognise dependant libraries],
 
3406
[AC_CACHE_CHECK([how to recognise dependent libraries],
3336
3407
lt_cv_deplibs_check_method,
3337
3408
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3338
3409
lt_cv_file_magic_test_file=
3430
3501
 
3431
3502
# This must be Linux ELF.
3432
3503
linux-gnu*)
3433
 
  lt_cv_deplibs_check_method=pass_all
 
3504
  case $host_cpu in
 
3505
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
 
3506
    lt_cv_deplibs_check_method=pass_all ;;
 
3507
  *)
 
3508
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3509
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
 
3510
  esac
3434
3511
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3435
3512
  ;;
3436
3513
 
3496
3573
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3497
3574
    lt_cv_file_magic_test_file=/lib/libc.so
3498
3575
    ;;
 
3576
  siemens)
 
3577
    lt_cv_deplibs_check_method=pass_all
 
3578
    ;;
3499
3579
  esac
3500
3580
  ;;
3501
3581
esac
3629
3709
# This is just to silence aclocal about the macro not being used
3630
3710
ifelse([AC_DISABLE_FAST_INSTALL])
3631
3711
 
 
3712
# NOTE: This macro has been submitted for inclusion into   #
 
3713
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
3714
#  a released version of Autoconf we should remove this    #
 
3715
#  macro and use it instead.                               #
 
3716
# LT_AC_PROG_SED
 
3717
# --------------
 
3718
# Check for a fully-functional sed program, that truncates
 
3719
# as few characters as possible.  Prefer GNU sed if found.
 
3720
AC_DEFUN([LT_AC_PROG_SED],
 
3721
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
3722
AC_CACHE_VAL(lt_cv_path_SED,
 
3723
[# Loop through the user's path and test for sed and gsed.
 
3724
# Then use that list of sed's as ones to test for truncation.
 
3725
as_executable_p="test -f"
 
3726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3727
for as_dir in $PATH
 
3728
do
 
3729
  IFS=$as_save_IFS
 
3730
  test -z "$as_dir" && as_dir=.
 
3731
  for ac_prog in sed gsed; do
 
3732
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3733
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3734
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 
3735
      fi
 
3736
    done
 
3737
  done
 
3738
done
 
3739
 
 
3740
  # Create a temporary directory, and hook for its removal unless debugging.
 
3741
$debug ||
 
3742
{
 
3743
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
3744
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
3745
}
 
3746
 
 
3747
# Create a (secure) tmp directory for tmp files.
 
3748
: ${TMPDIR=/tmp}
 
3749
{
 
3750
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
 
3751
  test -n "$tmp" && test -d "$tmp"
 
3752
}  ||
 
3753
{
 
3754
  tmp=$TMPDIR/sed$$-$RANDOM
 
3755
  (umask 077 && mkdir $tmp)
 
3756
} ||
 
3757
{
 
3758
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
3759
   { (exit 1); exit 1; }
 
3760
}
 
3761
  _max=0
 
3762
  _count=0
 
3763
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3764
  # along with /bin/sed that truncates output.
 
3765
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
 
3766
    test ! -f ${_sed} && break
 
3767
    cat /dev/null > "$tmp/sed.in"
 
3768
    _count=0
 
3769
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
 
3770
    # Check for GNU sed and select it if it is found.
 
3771
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
 
3772
      lt_cv_path_SED=${_sed}
 
3773
      break
 
3774
    fi
 
3775
    while true; do
 
3776
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
 
3777
      mv "$tmp/sed.tmp" "$tmp/sed.in"
 
3778
      cp "$tmp/sed.in" "$tmp/sed.nl"
 
3779
      echo >>"$tmp/sed.nl"
 
3780
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
 
3781
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
 
3782
      # 40000 chars as input seems more than enough
 
3783
      test $_count -gt 10 && break
 
3784
      _count=`expr $_count + 1`
 
3785
      if test $_count -gt $_max; then
 
3786
        _max=$_count
 
3787
        lt_cv_path_SED=$_sed
 
3788
      fi
 
3789
    done
 
3790
  done
 
3791
  rm -rf "$tmp"
 
3792
])
 
3793
if test "X$SED" != "X"; then
 
3794
  lt_cv_path_SED=$SED
 
3795
else
 
3796
  SED=$lt_cv_path_SED
 
3797
fi
 
3798
AC_MSG_RESULT([$SED])
 
3799
])
 
3800