ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Check for heimdal fails due to sed call

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: f95-msv@xxxxxxxx (Mårten Svantesson)
Date: Thu, 22 Jul 2004 15:56:51 +0200
Hi!

Many versions of sed don't support the 'i' flag (case insensitive).
For example older GNU sed and Solaris sed. In the acinclude.m4 this
flag is used a couple of times in the check for kerberos/heimdal. As
far as I can see there is no need to use it and it's not used anywhere
else. Here is a simple patch to remove it.

-- 
                - Mårten
 
mail: msv@xxxxxx *** ICQ: 4356928 *** mobile: +46 (0)707390385

--- acinclude.m4~       2004-07-02 02:06:41.000000000 +0200
+++ acinclude.m4        2004-07-22 15:53:01.707074816 +0200
@@ -925,7 +925,7 @@
          KRB5_LIBS="-lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lresolv"
          ethereal_save_LDFLAGS="$LDFLAGS"
          LDFLAGS="$LDFLAGS -L$krb5_dir/lib"
-         ac_krb5_version=`grep -i heimdal $krb5_dir/include/krb5.h | head -n 1 | sed 's/^.*heimdal.*$/HEIMDAL/i'`
+         ac_krb5_version=`grep heimdal $krb5_dir/include/krb5.h | head -n 1 | sed 's/^.*heimdal.*$/HEIMDAL/'`
        else
          AC_PATH_PROG(KRB5_CONFIG, krb5-config)
          if test -x "$KRB5_CONFIG"
@@ -945,7 +945,7 @@
            fi

            #LIBS="$LIBS $KRB5_LIBS"
-           ac_krb5_version=`"$KRB5_CONFIG" --version | head -n 1 | sed 's/^.*heimdal.*$/HEIMDAL/i'`
+           ac_krb5_version=`"$KRB5_CONFIG" --version | head -n 1 | sed 's/^.*heimdal.*$/HEIMDAL/'`
          fi
        fi