mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Merged revisions 47327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47327 | russell | 2006-11-08 11:31:59 -0500 (Wed, 08 Nov 2006) | 4 lines Copy the macros from libtool.m4 to our own acinclude.m4 such that libtool is no longer required to be installed to be able to generate the configure script. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										116
									
								
								acinclude.m4
									
									
									
									
									
								
							
							
						
						
									
										116
									
								
								acinclude.m4
									
									
									
									
									
								
							| @@ -567,3 +567,119 @@ AC_DEFUN([_AST_FUNC_FORK], | ||||
|       [ac_cv_func_fork_works=no], | ||||
|       [ac_cv_func_fork_works=cross])])] | ||||
| )# _AST_FUNC_FORK | ||||
|  | ||||
| # AST_PROG_LD | ||||
| # ---------- | ||||
| # find the pathname to the GNU or non-GNU linker | ||||
| AC_DEFUN([AST_PROG_LD], | ||||
| [AC_ARG_WITH([gnu-ld], | ||||
|     [AC_HELP_STRING([--with-gnu-ld], | ||||
| 	[assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||||
|     [test "$withval" = no || with_gnu_ld=yes], | ||||
|     [with_gnu_ld=no]) | ||||
| AC_REQUIRE([AC_PROG_SED])dnl | ||||
| AC_REQUIRE([AC_PROG_CC])dnl | ||||
| AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||||
| AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||||
| ac_prog=ld | ||||
| if test "$GCC" = yes; then | ||||
|   # Check if gcc -print-prog-name=ld gives a path. | ||||
|   AC_MSG_CHECKING([for ld used by $CC]) | ||||
|   case $host in | ||||
|   *-*-mingw*) | ||||
|     # gcc leaves a trailing carriage return which upsets mingw | ||||
|     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||||
|   *) | ||||
|     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||||
|   esac | ||||
|   case $ac_prog in | ||||
|     # Accept absolute paths. | ||||
|     [[\\/]]* | ?:[[\\/]]*) | ||||
|       re_direlt='/[[^/]][[^/]]*/\.\./' | ||||
|       # Canonicalize the pathname of ld | ||||
|       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||||
|       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||||
| 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||||
|       done | ||||
|       test -z "$LD" && LD="$ac_prog" | ||||
|       ;; | ||||
|   "") | ||||
|     # If it fails, then pretend we aren't using GCC. | ||||
|     ac_prog=ld | ||||
|     ;; | ||||
|   *) | ||||
|     # If it is relative, then search for the first ld in PATH. | ||||
|     with_gnu_ld=unknown | ||||
|     ;; | ||||
|   esac | ||||
| elif test "$with_gnu_ld" = yes; then | ||||
|   AC_MSG_CHECKING([for GNU ld]) | ||||
| else | ||||
|   AC_MSG_CHECKING([for non-GNU ld]) | ||||
| fi | ||||
| AC_CACHE_VAL(lt_cv_path_LD, | ||||
| [if test -z "$LD"; then | ||||
|   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||||
|   for ac_dir in $PATH; do | ||||
|     IFS="$lt_save_ifs" | ||||
|     test -z "$ac_dir" && ac_dir=. | ||||
|     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||||
|       lt_cv_path_LD="$ac_dir/$ac_prog" | ||||
|       # Check to see if the program is GNU ld.  I'd rather use --version, | ||||
|       # but apparently some variants of GNU ld only accept -v. | ||||
|       # Break only if it was the GNU/non-GNU ld that we prefer. | ||||
|       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||||
|       *GNU* | *'with BFD'*) | ||||
| 	test "$with_gnu_ld" != no && break | ||||
| 	;; | ||||
|       *) | ||||
| 	test "$with_gnu_ld" != yes && break | ||||
| 	;; | ||||
|       esac | ||||
|     fi | ||||
|   done | ||||
|   IFS="$lt_save_ifs" | ||||
| else | ||||
|   lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||||
| fi]) | ||||
| LD="$lt_cv_path_LD" | ||||
| if test -n "$LD"; then | ||||
|   AC_MSG_RESULT($LD) | ||||
| else | ||||
|   AC_MSG_RESULT(no) | ||||
| fi | ||||
| test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||||
| AST_PROG_LD_GNU | ||||
| ])# AST_PROG_LD | ||||
|  | ||||
|  | ||||
| # AST_PROG_LD_GNU | ||||
| # -------------- | ||||
| AC_DEFUN([AST_PROG_LD_GNU], | ||||
| [AC_REQUIRE([AST_PROG_EGREP])dnl | ||||
| AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||||
| [# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||||
| case `$LD -v 2>&1 </dev/null` in | ||||
| *GNU* | *'with BFD'*) | ||||
|   lt_cv_prog_gnu_ld=yes | ||||
|   ;; | ||||
| *) | ||||
|   lt_cv_prog_gnu_ld=no | ||||
|   ;; | ||||
| esac]) | ||||
| with_gnu_ld=$lt_cv_prog_gnu_ld | ||||
| ])# AST_PROG_LD_GNU | ||||
|  | ||||
| # AST_PROG_EGREP | ||||
| # ------------- | ||||
| m4_ifndef([AST_PROG_EGREP], [AC_DEFUN([AST_PROG_EGREP], | ||||
| [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | ||||
|    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||||
|     then ac_cv_prog_egrep='grep -E' | ||||
|     else ac_cv_prog_egrep='egrep' | ||||
|     fi]) | ||||
|  EGREP=$ac_cv_prog_egrep | ||||
|  AC_SUBST([EGREP]) | ||||
| ])]) # AST_PROG_EGREP | ||||
|  | ||||
|  | ||||
|   | ||||
							
								
								
									
										386
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										386
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| #! /bin/sh | ||||
| # From configure.ac Revision: 46848 . | ||||
| # From configure.ac Revision: 47305 . | ||||
| # Guess values for system-dependent variables and create Makefiles. | ||||
| # Generated by GNU Autoconf 2.60a. | ||||
| # | ||||
| @@ -673,7 +673,7 @@ CXXFLAGS | ||||
| ac_ct_CXX | ||||
| CPP | ||||
| CXXCPP | ||||
| GREP | ||||
| SED | ||||
| EGREP | ||||
| AWK | ||||
| INSTALL_PROGRAM | ||||
| @@ -682,6 +682,7 @@ INSTALL_DATA | ||||
| LN_S | ||||
| GNU_MAKE | ||||
| GNU_LD | ||||
| GREP | ||||
| FIND | ||||
| COMPRESS | ||||
| BASENAME | ||||
| @@ -4651,90 +4652,41 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
| ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
| ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
|  | ||||
| # This macro is just copied into our local acinclude.m4 from libtool.m4 so that | ||||
| # the developers regenerating the configure script don't have to install libtool. | ||||
| { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||||
| echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | ||||
| if test "${lt_cv_path_SED+set}" = set; then | ||||
| if test "${ac_cv_path_SED+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   # Loop through the user's path and test for sed and gsed. | ||||
| # Then use that list of sed's as ones to test for truncation. | ||||
|             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||||
|      for ac_i in 1 2 3 4 5 6 7; do | ||||
|        ac_script="$ac_script$as_nl$ac_script" | ||||
|      done | ||||
|      echo "$ac_script" | sed 99q >conftest.sed | ||||
|      $as_unset ac_script || ac_script= | ||||
|      # Extract the first word of "sed gsed" to use in msg output | ||||
| if test -z "$SED"; then | ||||
| set dummy sed gsed; ac_prog_name=$2 | ||||
| if test "${ac_cv_path_SED+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   ac_path_SED_found=false | ||||
| # Loop through the user's path and test for each of PROGNAME-LIST | ||||
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
| for as_dir in $PATH | ||||
| do | ||||
|   IFS=$as_save_IFS | ||||
|   test -z "$as_dir" && as_dir=. | ||||
|   for lt_ac_prog in sed gsed; do | ||||
|     for ac_exec_ext in '' $ac_executable_extensions; do | ||||
|       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||||
|         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||||
|       fi | ||||
|     done | ||||
|   done | ||||
| done | ||||
| lt_ac_max=0 | ||||
| lt_ac_count=0 | ||||
| # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||||
| # along with /bin/sed that truncates output. | ||||
| for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||||
|   test ! -f $lt_ac_sed && continue | ||||
|   cat /dev/null > conftest.in | ||||
|   lt_ac_count=0 | ||||
|   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||||
|   # Check for GNU sed and select it if it is found. | ||||
|   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||||
|     lt_cv_path_SED=$lt_ac_sed | ||||
|     break | ||||
|   fi | ||||
|   while true; do | ||||
|     cat conftest.in conftest.in >conftest.tmp | ||||
|     mv conftest.tmp conftest.in | ||||
|     cp conftest.in conftest.nl | ||||
|     echo >>conftest.nl | ||||
|     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||||
|     cmp -s conftest.out conftest.nl || break | ||||
|     # 10000 chars as input seems more than enough | ||||
|     test $lt_ac_count -gt 10 && break | ||||
|     lt_ac_count=`expr $lt_ac_count + 1` | ||||
|     if test $lt_ac_count -gt $lt_ac_max; then | ||||
|       lt_ac_max=$lt_ac_count | ||||
|       lt_cv_path_SED=$lt_ac_sed | ||||
|     fi | ||||
|   done | ||||
| done | ||||
|  | ||||
| fi | ||||
|  | ||||
| SED=$lt_cv_path_SED | ||||
| { echo "$as_me:$LINENO: result: $SED" >&5 | ||||
| echo "${ECHO_T}$SED" >&6; } | ||||
|  | ||||
| { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||||
| echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||||
| if test "${ac_cv_path_GREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   # Extract the first word of "grep ggrep" to use in msg output | ||||
| if test -z "$GREP"; then | ||||
| set dummy grep ggrep; ac_prog_name=$2 | ||||
| if test "${ac_cv_path_GREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   ac_path_GREP_found=false | ||||
| # Loop through the user's path and test for each of PROGNAME-LIST | ||||
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
| for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
| do | ||||
|   IFS=$as_save_IFS | ||||
|   test -z "$as_dir" && as_dir=. | ||||
|   for ac_prog in grep ggrep; do | ||||
|   for ac_prog in sed gsed; do | ||||
|   for ac_exec_ext in '' $ac_executable_extensions; do | ||||
|     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
|     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | ||||
|     # Check for GNU ac_path_GREP and select it if it is found. | ||||
|   # Check for GNU $ac_path_GREP | ||||
| case `"$ac_path_GREP" --version 2>&1` in | ||||
|     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||||
|     { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue | ||||
|     # Check for GNU ac_path_SED and select it if it is found. | ||||
|   # Check for GNU $ac_path_SED | ||||
| case `"$ac_path_SED" --version 2>&1` in | ||||
| *GNU*) | ||||
|   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
|   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
| *) | ||||
|   ac_count=0 | ||||
|   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||||
| @@ -4743,14 +4695,14 @@ case `"$ac_path_GREP" --version 2>&1` in | ||||
|     cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
|     mv "conftest.tmp" "conftest.in" | ||||
|     cp "conftest.in" "conftest.nl" | ||||
|     echo 'GREP' >> "conftest.nl" | ||||
|     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
|     echo '' >> "conftest.nl" | ||||
|     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
|     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
|     ac_count=`expr $ac_count + 1` | ||||
|     if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
|     if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
|       # Best one so far, save it but keep looking for a better one | ||||
|       ac_cv_path_GREP="$ac_path_GREP" | ||||
|       ac_path_GREP_max=$ac_count | ||||
|       ac_cv_path_SED="$ac_path_SED" | ||||
|       ac_path_SED_max=$ac_count | ||||
|     fi | ||||
|     # 10*(2^10) chars as input seems more than enough | ||||
|     test $ac_count -gt 10 && break | ||||
| @@ -4759,7 +4711,7 @@ case `"$ac_path_GREP" --version 2>&1` in | ||||
| esac | ||||
|  | ||||
|  | ||||
|     $ac_path_GREP_found && break 3 | ||||
|     $ac_path_SED_found && break 3 | ||||
|   done | ||||
| done | ||||
|  | ||||
| @@ -4769,105 +4721,36 @@ IFS=$as_save_IFS | ||||
|  | ||||
| fi | ||||
|  | ||||
| GREP="$ac_cv_path_GREP" | ||||
| if test -z "$GREP"; then | ||||
|   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||||
| echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||||
| SED="$ac_cv_path_SED" | ||||
| if test -z "$SED"; then | ||||
|   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | ||||
| echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | ||||
|    { (exit 1); exit 1; }; } | ||||
| fi | ||||
|  | ||||
| else | ||||
|   ac_cv_path_GREP=$GREP | ||||
|   ac_cv_path_SED=$SED | ||||
| fi | ||||
|  | ||||
|  | ||||
| fi | ||||
| { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||||
| echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||||
|  GREP="$ac_cv_path_GREP" | ||||
|  | ||||
| { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | ||||
| echo "${ECHO_T}$ac_cv_path_SED" >&6; } | ||||
|  SED="$ac_cv_path_SED" | ||||
|   rm -f conftest.sed | ||||
|  | ||||
| { echo "$as_me:$LINENO: checking for egrep" >&5 | ||||
| echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||||
| if test "${ac_cv_path_EGREP+set}" = set; then | ||||
| if test "${ac_cv_prog_egrep+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
|    then ac_cv_path_EGREP="$GREP -E" | ||||
|    else | ||||
|      # Extract the first word of "egrep" to use in msg output | ||||
| if test -z "$EGREP"; then | ||||
| set dummy egrep; ac_prog_name=$2 | ||||
| if test "${ac_cv_path_EGREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   ac_path_EGREP_found=false | ||||
| # Loop through the user's path and test for each of PROGNAME-LIST | ||||
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
| for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
| do | ||||
|   IFS=$as_save_IFS | ||||
|   test -z "$as_dir" && as_dir=. | ||||
|   for ac_prog in egrep; do | ||||
|   for ac_exec_ext in '' $ac_executable_extensions; do | ||||
|     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
|     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | ||||
|     # Check for GNU ac_path_EGREP and select it if it is found. | ||||
|   # Check for GNU $ac_path_EGREP | ||||
| case `"$ac_path_EGREP" --version 2>&1` in | ||||
| *GNU*) | ||||
|   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
| *) | ||||
|   ac_count=0 | ||||
|   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||||
|   while : | ||||
|   do | ||||
|     cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
|     mv "conftest.tmp" "conftest.in" | ||||
|     cp "conftest.in" "conftest.nl" | ||||
|     echo 'EGREP' >> "conftest.nl" | ||||
|     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
|     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
|     ac_count=`expr $ac_count + 1` | ||||
|     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||||
|       # Best one so far, save it but keep looking for a better one | ||||
|       ac_cv_path_EGREP="$ac_path_EGREP" | ||||
|       ac_path_EGREP_max=$ac_count | ||||
|   if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||||
|     then ac_cv_prog_egrep='grep -E' | ||||
|     else ac_cv_prog_egrep='egrep' | ||||
|     fi | ||||
|     # 10*(2^10) chars as input seems more than enough | ||||
|     test $ac_count -gt 10 && break | ||||
|   done | ||||
|   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
| esac | ||||
|  | ||||
|  | ||||
|     $ac_path_EGREP_found && break 3 | ||||
|   done | ||||
| done | ||||
|  | ||||
| done | ||||
| IFS=$as_save_IFS | ||||
|  | ||||
|  | ||||
| fi | ||||
|  | ||||
| EGREP="$ac_cv_path_EGREP" | ||||
| if test -z "$EGREP"; then | ||||
|   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||||
| echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||||
|    { (exit 1); exit 1; }; } | ||||
| fi | ||||
|  | ||||
| else | ||||
|   ac_cv_path_EGREP=$EGREP | ||||
| fi | ||||
|  | ||||
|  | ||||
|    fi | ||||
| fi | ||||
| { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||||
| echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||||
|  EGREP="$ac_cv_path_EGREP" | ||||
| { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||||
| echo "${ECHO_T}$ac_cv_prog_egrep" >&6; } | ||||
|  EGREP=$ac_cv_prog_egrep | ||||
|  | ||||
|  | ||||
|  | ||||
| @@ -6776,6 +6659,168 @@ PBX_ZAPTEL=0 | ||||
|  | ||||
|  | ||||
|  | ||||
| { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||||
| echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||||
| if test "${ac_cv_path_GREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   # Extract the first word of "grep ggrep" to use in msg output | ||||
| if test -z "$GREP"; then | ||||
| set dummy grep ggrep; ac_prog_name=$2 | ||||
| if test "${ac_cv_path_GREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   ac_path_GREP_found=false | ||||
| # Loop through the user's path and test for each of PROGNAME-LIST | ||||
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
| for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
| do | ||||
|   IFS=$as_save_IFS | ||||
|   test -z "$as_dir" && as_dir=. | ||||
|   for ac_prog in grep ggrep; do | ||||
|   for ac_exec_ext in '' $ac_executable_extensions; do | ||||
|     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
|     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | ||||
|     # Check for GNU ac_path_GREP and select it if it is found. | ||||
|   # Check for GNU $ac_path_GREP | ||||
| case `"$ac_path_GREP" --version 2>&1` in | ||||
| *GNU*) | ||||
|   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
| *) | ||||
|   ac_count=0 | ||||
|   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||||
|   while : | ||||
|   do | ||||
|     cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
|     mv "conftest.tmp" "conftest.in" | ||||
|     cp "conftest.in" "conftest.nl" | ||||
|     echo 'GREP' >> "conftest.nl" | ||||
|     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
|     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
|     ac_count=`expr $ac_count + 1` | ||||
|     if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
|       # Best one so far, save it but keep looking for a better one | ||||
|       ac_cv_path_GREP="$ac_path_GREP" | ||||
|       ac_path_GREP_max=$ac_count | ||||
|     fi | ||||
|     # 10*(2^10) chars as input seems more than enough | ||||
|     test $ac_count -gt 10 && break | ||||
|   done | ||||
|   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
| esac | ||||
|  | ||||
|  | ||||
|     $ac_path_GREP_found && break 3 | ||||
|   done | ||||
| done | ||||
|  | ||||
| done | ||||
| IFS=$as_save_IFS | ||||
|  | ||||
|  | ||||
| fi | ||||
|  | ||||
| GREP="$ac_cv_path_GREP" | ||||
| if test -z "$GREP"; then | ||||
|   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||||
| echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||||
|    { (exit 1); exit 1; }; } | ||||
| fi | ||||
|  | ||||
| else | ||||
|   ac_cv_path_GREP=$GREP | ||||
| fi | ||||
|  | ||||
|  | ||||
| fi | ||||
| { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||||
| echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||||
|  GREP="$ac_cv_path_GREP" | ||||
|  | ||||
|  | ||||
| { echo "$as_me:$LINENO: checking for egrep" >&5 | ||||
| echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||||
| if test "${ac_cv_path_EGREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
|    then ac_cv_path_EGREP="$GREP -E" | ||||
|    else | ||||
|      # Extract the first word of "egrep" to use in msg output | ||||
| if test -z "$EGREP"; then | ||||
| set dummy egrep; ac_prog_name=$2 | ||||
| if test "${ac_cv_path_EGREP+set}" = set; then | ||||
|   echo $ECHO_N "(cached) $ECHO_C" >&6 | ||||
| else | ||||
|   ac_path_EGREP_found=false | ||||
| # Loop through the user's path and test for each of PROGNAME-LIST | ||||
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
| for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
| do | ||||
|   IFS=$as_save_IFS | ||||
|   test -z "$as_dir" && as_dir=. | ||||
|   for ac_prog in egrep; do | ||||
|   for ac_exec_ext in '' $ac_executable_extensions; do | ||||
|     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
|     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | ||||
|     # Check for GNU ac_path_EGREP and select it if it is found. | ||||
|   # Check for GNU $ac_path_EGREP | ||||
| case `"$ac_path_EGREP" --version 2>&1` in | ||||
| *GNU*) | ||||
|   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
| *) | ||||
|   ac_count=0 | ||||
|   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||||
|   while : | ||||
|   do | ||||
|     cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
|     mv "conftest.tmp" "conftest.in" | ||||
|     cp "conftest.in" "conftest.nl" | ||||
|     echo 'EGREP' >> "conftest.nl" | ||||
|     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
|     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
|     ac_count=`expr $ac_count + 1` | ||||
|     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||||
|       # Best one so far, save it but keep looking for a better one | ||||
|       ac_cv_path_EGREP="$ac_path_EGREP" | ||||
|       ac_path_EGREP_max=$ac_count | ||||
|     fi | ||||
|     # 10*(2^10) chars as input seems more than enough | ||||
|     test $ac_count -gt 10 && break | ||||
|   done | ||||
|   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
| esac | ||||
|  | ||||
|  | ||||
|     $ac_path_EGREP_found && break 3 | ||||
|   done | ||||
| done | ||||
|  | ||||
| done | ||||
| IFS=$as_save_IFS | ||||
|  | ||||
|  | ||||
| fi | ||||
|  | ||||
| EGREP="$ac_cv_path_EGREP" | ||||
| if test -z "$EGREP"; then | ||||
|   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||||
| echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||||
|    { (exit 1); exit 1; }; } | ||||
| fi | ||||
|  | ||||
| else | ||||
|   ac_cv_path_EGREP=$EGREP | ||||
| fi | ||||
|  | ||||
|  | ||||
|    fi | ||||
| fi | ||||
| { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||||
| echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||||
|  EGREP="$ac_cv_path_EGREP" | ||||
|  | ||||
|  | ||||
| { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||||
| echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||||
| if test "${ac_cv_header_stdc+set}" = set; then | ||||
| @@ -34123,7 +34168,7 @@ CXXFLAGS!$CXXFLAGS$ac_delim | ||||
| ac_ct_CXX!$ac_ct_CXX$ac_delim | ||||
| CPP!$CPP$ac_delim | ||||
| CXXCPP!$CXXCPP$ac_delim | ||||
| GREP!$GREP$ac_delim | ||||
| SED!$SED$ac_delim | ||||
| EGREP!$EGREP$ac_delim | ||||
| AWK!$AWK$ac_delim | ||||
| INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||||
| @@ -34132,6 +34177,7 @@ INSTALL_DATA!$INSTALL_DATA$ac_delim | ||||
| LN_S!$LN_S$ac_delim | ||||
| GNU_MAKE!$GNU_MAKE$ac_delim | ||||
| GNU_LD!$GNU_LD$ac_delim | ||||
| GREP!$GREP$ac_delim | ||||
| FIND!$FIND$ac_delim | ||||
| COMPRESS!$COMPRESS$ac_delim | ||||
| BASENAME!$BASENAME$ac_delim | ||||
| @@ -34148,7 +34194,6 @@ CAP_LIB!$CAP_LIB$ac_delim | ||||
| CAP_INCLUDE!$CAP_INCLUDE$ac_delim | ||||
| PBX_CAP!$PBX_CAP$ac_delim | ||||
| CURL_LIB!$CURL_LIB$ac_delim | ||||
| CURL_INCLUDE!$CURL_INCLUDE$ac_delim | ||||
| _ACEOF | ||||
|  | ||||
|   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||||
| @@ -34190,6 +34235,7 @@ _ACEOF | ||||
| ac_delim='%!_!# ' | ||||
| for ac_last_try in false false false false false :; do | ||||
|   cat >conf$$subs.sed <<_ACEOF | ||||
| CURL_INCLUDE!$CURL_INCLUDE$ac_delim | ||||
| PBX_CURL!$PBX_CURL$ac_delim | ||||
| CURSES_LIB!$CURSES_LIB$ac_delim | ||||
| CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim | ||||
| @@ -34286,7 +34332,6 @@ TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim | ||||
| PBX_TINFO!$PBX_TINFO$ac_delim | ||||
| TONEZONE_LIB!$TONEZONE_LIB$ac_delim | ||||
| TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim | ||||
| PBX_TONEZONE!$PBX_TONEZONE$ac_delim | ||||
| _ACEOF | ||||
|  | ||||
|   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||||
| @@ -34328,6 +34373,7 @@ _ACEOF | ||||
| ac_delim='%!_!# ' | ||||
| for ac_last_try in false false false false false :; do | ||||
|   cat >conf$$subs.sed <<_ACEOF | ||||
| PBX_TONEZONE!$PBX_TONEZONE$ac_delim | ||||
| VORBIS_LIB!$VORBIS_LIB$ac_delim | ||||
| VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim | ||||
| PBX_VORBIS!$PBX_VORBIS$ac_delim | ||||
| @@ -34372,7 +34418,7 @@ CURL!$CURL$ac_delim | ||||
| LTLIBOBJS!$LTLIBOBJS$ac_delim | ||||
| _ACEOF | ||||
|  | ||||
|   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then | ||||
|   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then | ||||
|     break | ||||
|   elif $ac_last_try; then | ||||
|     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||||
|   | ||||
| @@ -129,9 +129,9 @@ AC_PROG_CC | ||||
| AC_PROG_CXX | ||||
| AC_PROG_CPP | ||||
| AC_PROG_CXXCPP | ||||
| # If you get complaints that the following macro is undefined, you probably | ||||
| # need to install libtool, as that is what package provides it. | ||||
| AC_PROG_LD | ||||
| # This macro is just copied into our local acinclude.m4 from libtool.m4 so that | ||||
| # the developers regenerating the configure script don't have to install libtool. | ||||
| AST_PROG_LD | ||||
| AC_PROG_AWK | ||||
| AC_PROG_INSTALL | ||||
| AC_PROG_LN_S | ||||
|   | ||||
		Reference in New Issue
	
	Block a user