summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2013-05-08 16:12:56 +0200
committerRicardo Signes <rjbs@cpan.org>2013-05-09 11:20:41 -0400
commit9a5c46146d935367e11adc26f66953ee0f87ef6e (patch)
treeabfd20bf554dabae9874ec2f01f75f93b2b6f6b8 /Configure
parentc6c6975ea49b129f0bdacbb49075b92e5100883b (diff)
downloadperl-9a5c46146d935367e11adc26f66953ee0f87ef6e.tar.gz
maildomain to support /etc/mailname
Now backported to upstream dist/meta
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/Configure b/Configure
index 31700cccac..7e538d90b6 100755
--- a/Configure
+++ b/Configure
@@ -8868,7 +8868,13 @@ EOM
cont=x
while test "$cont"; do
case "$MAILDOMAIN" in
- '') maildomain="$myhostname$mydomain";;
+ '')
+ if $test -s /etc/mailname; then
+ maildomain=`$cat /etc/mailname`
+ else
+ maildomain="$myhostname$mydomain"
+ fi
+ ;;
*) maildomain="$MAILDOMAIN";;
esac
case "$cf_email" in