[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf meddles with LANG and LC_CTYPE
From: |
Paul Eggert |
Subject: |
Re: autoconf meddles with LANG and LC_CTYPE |
Date: |
Fri, 8 Mar 2002 00:43:48 -0800 (PST) |
> From: address@hidden (David Kastrup)
> Date: 04 Mar 2002 14:18:41 +0100
>
> I currently have in configure.in
> AC_DIVERT_PUSH(DEFAULTS)dnl
> [MY_LANG=$LANG
> MY_LC_CTYPE=$LC_CTYPE]
> AC_DIVERT_POP()
>
> but this works only with autoconf 2.53. Previously the diversion was
> named AC_DIVERSION_INIT. Do you have any good proposal of how I can
> make this check for various names of a suitable diversion and then
> use the one that is defined?
Sorry, no. I try to avoid diversions myself (not always successfully).
How about this idea instead. Write a shell script called "configure"
that looks like this:
#! /bin/sh
eval `(locale) 2>/dev/null | sed '/=$/d; s/^/MY_/'` exec '$0.real'
'${1+"address@hidden"'
and then invoke "autoconf -o configure.real" instead of plain "autoconf".