Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 107323
Collapse All | Expand All

(-)auctex-11.81.old/configure (-146 / +1 lines)
Lines 1536-1687 Link Here
1536
   { (exit 1); exit 1; }; }
1536
   { (exit 1); exit 1; }; }
1537
fi
1537
fi
1538
1538
1539
echo "$as_me:$LINENO: checking if ${EMACS} is XEmacs" >&5
1539
EMACS_FLAVOR=emacs
1540
echo $ECHO_N "checking if ${EMACS} is XEmacs... $ECHO_C" >&6
1541
1542
  elisp="(if (featurep (quote xemacs)) \"yes\" \"no\")"
1543
  OUTPUT=./conftest-$$
1544
  echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1545
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1546
  XEMACS="`cat ${OUTPUT}`"
1547
  echo "=> ${XEMACS}" >& 5 2>&1
1548
  rm -f ${OUTPUT}
1549
1550
if test "${XEMACS}" = "yes"; then
1551
  EMACS_FLAVOR=xemacs
1552
  EMACS_NAME="XEmacs"
1553
elif test "${XEMACS}" = "no"; then
1554
  EMACS_FLAVOR=emacs
1555
  EMACS_NAME="Emacs"
1556
else
1557
  { { echo "$as_me:$LINENO: error: Unable to run ${EMACS}!  Aborting!" >&5
1558
echo "$as_me: error: Unable to run ${EMACS}!  Aborting!" >&2;}
1559
   { (exit 1); exit 1; }; }
1560
fi
1561
  echo "$as_me:$LINENO: result: ${XEMACS}" >&5
1562
echo "${ECHO_T}${XEMACS}" >&6
1563
1564
1565
  echo "$as_me:$LINENO: checking for ${EMACS_NAME} prefix" >&5
1566
echo $ECHO_N "checking for ${EMACS_NAME} prefix... $ECHO_C" >&6
1567
1568
1569
  elisp="(condition-case nil (let*
1570
    ((prefix (directory-file-name (file-name-directory (executable-find cmd))))
1571
     (parent (directory-file-name (file-name-directory prefix))))
1572
    (if (string= (file-name-nondirectory prefix) \"bin\")
1573
        (setq prefix parent)
1574
      (if (string= (file-name-nondirectory parent) \"bin\")
1575
         (setq prefix (directory-file-name (file-name-directory parent)))))
1576
    prefix) (error "NONE"))"
1577
  OUTPUT=./conftest-$$
1578
  echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1
1579
  "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1
1580
  emacsprefix="`cat ${OUTPUT}`"
1581
  echo "=> ${emacsprefix}" >& 5 2>&1
1582
  rm -f ${OUTPUT}
1583
1584
  echo "$as_me:$LINENO: result: \"${emacsprefix}\"" >&5
1585
echo "${ECHO_T}\"${emacsprefix}\"" >&6
1586
1587
1588
if test ${EMACS_FLAVOR} = xemacs
1589
then
1590
1591
echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
1592
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6
1593
1594
  elisp="(cond ((< emacs-major-version 21) \"no\")
1595
			 ((> emacs-major-version 21) \"yes\")
1596
			 ((< emacs-minor-version 04) \"no\")
1597
			 (t \"yes\"))"
1598
  OUTPUT=./conftest-$$
1599
  echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1600
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1601
  result="`cat ${OUTPUT}`"
1602
  echo "=> ${result}" >& 5 2>&1
1603
  rm -f ${OUTPUT}
1604
1605
echo "$as_me:$LINENO: result: ${result}" >&5
1606
echo "${ECHO_T}${result}" >&6
1607
if test "${result}" != "yes"
1608
then
1609
  { { echo "$as_me:$LINENO: error: This package requires at least ${EMACS_NAME} version 21.4  Aborting!" >&5
1610
echo "$as_me: error: This package requires at least ${EMACS_NAME} version 21.4  Aborting!" >&2;}
1611
   { (exit 1); exit 1; }; }
1612
fi
1613
1614
else
1615
1616
echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
1617
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6
1618
1619
  elisp="(cond ((< emacs-major-version 21) \"no\")
1620
			 ((> emacs-major-version 21) \"yes\")
1621
			 ((< emacs-minor-version 01) \"no\")
1622
			 (t \"yes\"))"
1623
  OUTPUT=./conftest-$$
1624
  echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1625
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1626
  result="`cat ${OUTPUT}`"
1627
  echo "=> ${result}" >& 5 2>&1
1628
  rm -f ${OUTPUT}
1629
1630
echo "$as_me:$LINENO: result: ${result}" >&5
1631
echo "${ECHO_T}${result}" >&6
1632
if test "${result}" != "yes"
1633
then
1634
  { { echo "$as_me:$LINENO: error: This package requires at least ${EMACS_NAME} version 21.1  Aborting!" >&5
1635
echo "$as_me: error: This package requires at least ${EMACS_NAME} version 21.1  Aborting!" >&2;}
1636
   { (exit 1); exit 1; }; }
1637
fi
1638
1639
fi
1640
1641
1642
echo "$as_me:$LINENO: checking for mule support" >&5
1643
echo $ECHO_N "checking for mule support... $ECHO_C" >&6
1644
1645
if test -z "silent"; then
1646
	echo "$as_me:$LINENO: checking for mule" >&5
1647
echo $ECHO_N "checking for mule... $ECHO_C" >&6
1648
fi
1649
library=`echo mule | tr _ -`
1650
1651
  elisp="(condition-case nil (require '${library} ) \
1652
	(error (prog1 nil (message \"${library} not found\"))))"
1653
  OUTPUT=./conftest-$$
1654
  echo "${EMACS}" -batch  -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1655
  "${EMACS}" -batch  -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1656
  mule="`cat ${OUTPUT}`"
1657
  echo "=> ${mule}" >& 5 2>&1
1658
  rm -f ${OUTPUT}
1659
1660
if test "$mule" = "nil"; then
1661
	mule=no
1662
fi
1663
if test "$mule" = "${library}"; then
1664
	mule=yes
1665
fi
1666
HAVE_mule=$mule
1667
1668
if test -z "silent"; then
1669
	echo "$as_me:$LINENO: result: ${HAVE_mule}" >&5
1670
echo "${ECHO_T}${HAVE_mule}" >&6
1671
fi
1672
1673
if test "${HAVE_mule}" = "yes"; then
1674
  MULESRC="tex-jp.el"
1675
  MULEELC="tex-jp.elc"
1676
  echo "$as_me:$LINENO: result: yes" >&5
1677
echo "${ECHO_T}yes" >&6
1678
else
1679
  echo "$as_me:$LINENO: result: no" >&5
1680
echo "${ECHO_T}no" >&6
1681
fi
1682
1683
1684
1685
1540
1686
# The Debian package uses `--disable-build-dir-test'; normal users should
1541
# The Debian package uses `--disable-build-dir-test'; normal users should
1687
# never need to modify the default behavior.
1542
# never need to modify the default behavior.

Return to bug 107323