From xemacs-m  Tue Dec 17 02:38:50 1996
Received: from macon.informatik.uni-tuebingen.de (macon2.Informatik.Uni-Tuebingen.De [134.2.13.2]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id CAA29123 for <xemacs-beta@xemacs.org>; Tue, 17 Dec 1996 02:38:44 -0600 (CST)
Received: from modas.Informatik.Uni-Tuebingen.De by macon.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA17396; Tue, 17 Dec 1996 09:37:55 +0100
Received: by modas.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA25696; Tue, 17 Dec 1996 09:37:53 +0100
Sender: sperber@informatik.uni-tuebingen.de
To: xemacs-beta@xemacs.org
Subject: configure failure on AIX
Mime-Version: 1.0 (generated by tm-edit 7.95)
Content-Type: text/plain; charset=US-ASCII
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: 17 Dec 1996 09:37:52 +0100
Message-Id: <y9lwwuho9b3.fsf@modas.informatik.uni-tuebingen.de>
Lines: 48
X-Mailer: Red Gnus v0.74/XEmacs 20.0


It seems there's a real bug in the configure script; without it, even
/bin/ksh on 4.1.4 runs configure fine.

configure.in has this code:

# AIX export list
for export in /usr/lpp/X11/bin/smt.exp /usr/bin/X11/smt.exp ; do
  if test -f "$export" ; then
    AC_DEFINE(AIX_SMT_EXP, -bI:$export)
    break
  fi
done

configure has this:

# AIX export list
for export in /usr/lpp/X11/bin/smt.exp /usr/bin/X11/smt.exp ; do
  if test -f "$export" ; then
    
{
test -n "$verbose" && \
echo "	defining" AIX_SMT_EXP to be "-bI:$export"
echo "#define" AIX_SMT_EXP "-bI:$export" >> confdefs.h
DEFS="$DEFS -DAIX_SMT_EXP=-bI:$export"
ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:\\\\\\\$export\${ac_dD}
\${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:\\\\\\\$export\${ac_uD}
\${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:\\\\\\\$export\${ac_eD}
"
}

    break
  fi
done

Seems there are some backslashes too many in the ac_sed_defs line.
The $export doesn't get expanded, which results in this linker flag in
src/Makefile:

	   -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp,-bI:$export \

Maybe some autoconf 1.11 expert out there can figure out how to fix
this properly.  If not, I can try to give it a go on the weekend or
on Monday, not before that unfortunately.

Cheers =8-} Mike


