Changeset 191 for trunk/configure.ac


Ignore:
Timestamp:
Nov 7, 2008, 10:01:47 PM (16 years ago)
Author:
katerina
Message:

Patch for GnuPG key ID by Jim Dutton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r188 r191  
    1 
    21dnl We want to override the standard _AC_INIT_PARSE_ARGS
    32dnl
     
    21472146                  fi
    21482147                else
    2149                   AC_MSG_WARN([--with-gpg: cannot find GnuPG PATH=${withval}])
     2148                  AC_MSG_ERROR([--with-gpg: cannot find GnuPG PATH=${withval}])
    21502149                fi
    21512150          fi
     
    21542153          AC_SUBST(mygpg)
    21552154        fi
     2155        ]
     2156)
     2157
     2158AC_ARG_WITH(keyid,
     2159        [  --with-keyid=KEYID           specify KeyID (0x...) for GPG/PGP functions [[none]]],
     2160        [
     2161        if test "x${withval}" != "x"; then
     2162                echo "${withval}" | awk '{if((length($0)==10)||(length($0)==18)){exit 2}else{exit 0}}' &&
     2163                AC_MSG_ERROR([--with-keyid:${withval} must be "0x" + 8|16 hex digits])
     2164                echo "${withval}" | grep ['[^0][^x][^0123456789ABCDEFabcdef]'] >/dev/null 2>&1 &&
     2165                AC_MSG_ERROR([--with-keyid:${withval} must be "0x" + 8|16 hex digits])
     2166                mykeyid="$withval"
     2167                mykeytag="--default-key"
     2168        else
     2169                mykeyid=""
     2170                mykeytag=""
     2171        fi
     2172        AC_SUBST(mykeyid)
     2173        AC_SUBST(mykeytag)
    21562174        ]
    21572175)
     
    26022620        echo "            Log file: ${mylogfile}"
    26032621        echo "            Base key: ${mykeybase}"
     2622        if test x"$mykeyid" != x
     2623        then
     2624            echo "  target GPG/PGP key: ${mykeyid}"
     2625        fi
    26042626        echo
    26052627        if test x"$mytclient" = x"-DSH_WITH_SERVER"
Note: See TracChangeset for help on using the changeset viewer.