~ubuntu-branches/ubuntu/dapper/rxvt-unicode/dapper

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2006-01-16 16:51:28 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20060116165128-dmz1wi3x3e17gu43
Tags: 7.0-1
* New upstream release
  + autodetection of (incorrect) Latin1 in pure UTF-8 environment works
    again (closes: #347718)
* removed the font name preset, automatic selection works acceptably well

Show diffs side-by-side

added added

removed removed

Lines of Context:
891
891
  --disable-backspace-key disable handling of the backspace key
892
892
  --disable-delete-key    disable handling of the delete key
893
893
  --disable-resources     disable all resource checking
894
 
  --enable-xgetdefault    enable resources via X instead of our small version
895
894
  --enable-8bitctrls      enable 8 bit control sequences (not recommended)
896
895
  --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
897
896
  --enable-strings        enable some replacement system functions
4641
4640
  fi
4642
4641
fi;
4643
4642
 
4644
 
# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4645
 
if test "${enable_xgetdefault+set}" = set; then
4646
 
  enableval="$enable_xgetdefault"
4647
 
  if test x$enableval = xyes; then
4648
 
 
4649
 
cat >>confdefs.h <<\_ACEOF
4650
 
#define USE_XGETDEFAULT 1
4651
 
_ACEOF
4652
 
 
4653
 
  fi
4654
 
fi;
4655
 
 
4656
4643
# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4657
4644
if test "${enable_8bitctrls+set}" = set; then
4658
4645
  enableval="$enable_8bitctrls"
7310
7297
 
7311
7298
 
7312
7299
 
 
7300
 
 
7301
 
7313
7302
for ac_header in \
7314
7303
        assert.h \
7315
7304
        fcntl.h \
7332
7321
        utmpx.h \
7333
7322
        stdint.h \
7334
7323
        pty.h \
 
7324
        util.h \
 
7325
        libutil.h \
7335
7326
        wchar.h \
7336
7327
        cwchar \
7337
7328
        clocale \
10205
10196
        setsid \
10206
10197
        setpgrp \
10207
10198
        setpgid \
10208
 
        openpty \
10209
10199
        _getpty \
 
10200
        posix_openpt \
10210
10201
        grantpt \
10211
10202
        unlockpt \
10212
10203
        isastream \
11997
11988
 
11998
11989
fi
11999
11990
 
12000
 
echo "$as_me:$LINENO: checking for getpt" >&5
12001
 
echo $ECHO_N "checking for getpt... $ECHO_C" >&6
12002
 
if test "${rxvt_cv_func_getpt+set}" = set; then
 
11991
if test x$rxvt_cv_func_posix_openpt = xno; then
 
11992
  echo "$as_me:$LINENO: checking for openpty" >&5
 
11993
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
 
11994
if test "${ac_cv_func_openpty+set}" = set; then
12003
11995
  echo $ECHO_N "(cached) $ECHO_C" >&6
12004
11996
else
12005
11997
  cat >conftest.$ac_ext <<_ACEOF
12008
12000
cat confdefs.h >>conftest.$ac_ext
12009
12001
cat >>conftest.$ac_ext <<_ACEOF
12010
12002
/* end confdefs.h.  */
12011
 
#define _GNU_SOURCE
12012
 
#ifdef HAVE_STDLIB_H
12013
 
# include <cstdlib>
12014
 
#endif
12015
 
int
12016
 
main ()
12017
 
{
12018
 
(void)getpt();
12019
 
  ;
12020
 
  return 0;
12021
 
}
12022
 
_ACEOF
12023
 
rm -f conftest.$ac_objext conftest$ac_exeext
12024
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12025
 
  (eval $ac_link) 2>conftest.er1
12026
 
  ac_status=$?
12027
 
  grep -v '^ *+' conftest.er1 >conftest.err
12028
 
  rm -f conftest.er1
12029
 
  cat conftest.err >&5
12030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031
 
  (exit $ac_status); } &&
12032
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12033
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034
 
  (eval $ac_try) 2>&5
12035
 
  ac_status=$?
12036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037
 
  (exit $ac_status); }; } &&
12038
 
         { ac_try='test -s conftest$ac_exeext'
12039
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040
 
  (eval $ac_try) 2>&5
12041
 
  ac_status=$?
12042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043
 
  (exit $ac_status); }; }; then
12044
 
  rxvt_cv_func_getpt=yes
12045
 
else
12046
 
  echo "$as_me: failed program was:" >&5
12047
 
sed 's/^/| /' conftest.$ac_ext >&5
12048
 
 
12049
 
rxvt_cv_func_getpt=no
12050
 
fi
12051
 
rm -f conftest.err conftest.$ac_objext \
12052
 
      conftest$ac_exeext conftest.$ac_ext
12053
 
fi
12054
 
echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
12055
 
echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
12056
 
if test x$rxvt_cv_func_getpt = xyes; then
12057
 
 
12058
 
cat >>confdefs.h <<\_ACEOF
12059
 
#define HAVE_GETPT 1
12060
 
_ACEOF
 
12003
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
 
12004
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12005
#define openpty innocuous_openpty
 
12006
 
 
12007
/* System header to define __stub macros and hopefully few prototypes,
 
12008
    which can conflict with char openpty (); below.
 
12009
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12010
    <limits.h> exists even on freestanding compilers.  */
 
12011
 
 
12012
#ifdef __STDC__
 
12013
# include <limits.h>
 
12014
#else
 
12015
# include <assert.h>
 
12016
#endif
 
12017
 
 
12018
#undef openpty
 
12019
 
 
12020
/* Override any gcc2 internal prototype to avoid an error.  */
 
12021
#ifdef __cplusplus
 
12022
extern "C"
 
12023
{
 
12024
#endif
 
12025
/* We use char because int might match the return type of a gcc2
 
12026
   builtin and then its argument prototype would still apply.  */
 
12027
char openpty ();
 
12028
/* The GNU C library defines this for functions which it implements
 
12029
    to always fail with ENOSYS.  Some functions are actually named
 
12030
    something starting with __ and the normal name is an alias.  */
 
12031
#if defined (__stub_openpty) || defined (__stub___openpty)
 
12032
choke me
 
12033
#else
 
12034
char (*f) () = openpty;
 
12035
#endif
 
12036
#ifdef __cplusplus
 
12037
}
 
12038
#endif
 
12039
 
 
12040
int
 
12041
main ()
 
12042
{
 
12043
return f != openpty;
 
12044
  ;
 
12045
  return 0;
 
12046
}
 
12047
_ACEOF
 
12048
rm -f conftest.$ac_objext conftest$ac_exeext
 
12049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12050
  (eval $ac_link) 2>conftest.er1
 
12051
  ac_status=$?
 
12052
  grep -v '^ *+' conftest.er1 >conftest.err
 
12053
  rm -f conftest.er1
 
12054
  cat conftest.err >&5
 
12055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12056
  (exit $ac_status); } &&
 
12057
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12059
  (eval $ac_try) 2>&5
 
12060
  ac_status=$?
 
12061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12062
  (exit $ac_status); }; } &&
 
12063
         { ac_try='test -s conftest$ac_exeext'
 
12064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12065
  (eval $ac_try) 2>&5
 
12066
  ac_status=$?
 
12067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12068
  (exit $ac_status); }; }; then
 
12069
  ac_cv_func_openpty=yes
 
12070
else
 
12071
  echo "$as_me: failed program was:" >&5
 
12072
sed 's/^/| /' conftest.$ac_ext >&5
 
12073
 
 
12074
ac_cv_func_openpty=no
 
12075
fi
 
12076
rm -f conftest.err conftest.$ac_objext \
 
12077
      conftest$ac_exeext conftest.$ac_ext
 
12078
fi
 
12079
echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
 
12080
echo "${ECHO_T}$ac_cv_func_openpty" >&6
 
12081
if test $ac_cv_func_openpty = yes; then
 
12082
  :
 
12083
else
 
12084
  echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
 
12085
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
 
12086
if test "${ac_cv_lib_util_openpty+set}" = set; then
 
12087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12088
else
 
12089
  ac_check_lib_save_LIBS=$LIBS
 
12090
LIBS="-lutil  $LIBS"
 
12091
cat >conftest.$ac_ext <<_ACEOF
 
12092
/* confdefs.h.  */
 
12093
_ACEOF
 
12094
cat confdefs.h >>conftest.$ac_ext
 
12095
cat >>conftest.$ac_ext <<_ACEOF
 
12096
/* end confdefs.h.  */
 
12097
 
 
12098
/* Override any gcc2 internal prototype to avoid an error.  */
 
12099
#ifdef __cplusplus
 
12100
extern "C"
 
12101
#endif
 
12102
/* We use char because int might match the return type of a gcc2
 
12103
   builtin and then its argument prototype would still apply.  */
 
12104
char openpty ();
 
12105
int
 
12106
main ()
 
12107
{
 
12108
openpty ();
 
12109
  ;
 
12110
  return 0;
 
12111
}
 
12112
_ACEOF
 
12113
rm -f conftest.$ac_objext conftest$ac_exeext
 
12114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12115
  (eval $ac_link) 2>conftest.er1
 
12116
  ac_status=$?
 
12117
  grep -v '^ *+' conftest.er1 >conftest.err
 
12118
  rm -f conftest.er1
 
12119
  cat conftest.err >&5
 
12120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12121
  (exit $ac_status); } &&
 
12122
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12124
  (eval $ac_try) 2>&5
 
12125
  ac_status=$?
 
12126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12127
  (exit $ac_status); }; } &&
 
12128
         { ac_try='test -s conftest$ac_exeext'
 
12129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12130
  (eval $ac_try) 2>&5
 
12131
  ac_status=$?
 
12132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12133
  (exit $ac_status); }; }; then
 
12134
  ac_cv_lib_util_openpty=yes
 
12135
else
 
12136
  echo "$as_me: failed program was:" >&5
 
12137
sed 's/^/| /' conftest.$ac_ext >&5
 
12138
 
 
12139
ac_cv_lib_util_openpty=no
 
12140
fi
 
12141
rm -f conftest.err conftest.$ac_objext \
 
12142
      conftest$ac_exeext conftest.$ac_ext
 
12143
LIBS=$ac_check_lib_save_LIBS
 
12144
fi
 
12145
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
 
12146
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
 
12147
if test $ac_cv_lib_util_openpty = yes; then
 
12148
  LIBS="$LIBS -lutil"
 
12149
fi
 
12150
 
 
12151
fi
12061
12152
 
12062
12153
fi
12063
12154
 
12066
12157
if test "${rxvt_cv_ptys+set}" = set; then
12067
12158
  echo $ECHO_N "(cached) $ECHO_C" >&6
12068
12159
else
12069
 
  if test x$ac_cv_func_openpty = xyes; then
 
12160
  if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12070
12161
    rxvt_cv_ptys=OPENPTY
 
12162
 else if test x$ac_cv_func_posix_openpt = xyes; then
 
12163
    rxvt_cv_ptys=POSIX
12071
12164
 else if test x$ac_cv_func__getpty = xyes; then
12072
12165
    rxvt_cv_ptys=SGI4
12073
12166
 else if test -c /dev/ttyp20; then
12074
12167
    rxvt_cv_ptys=SCO
12075
12168
 else if test -c /dev/ptym/clone; then
12076
12169
    rxvt_cv_ptys=HPUX
12077
 
 else if test x$rxvt_cv_func_getpt = xyes; then
12078
 
    rxvt_cv_ptys=GLIBC
12079
12170
 else if test -c /dev/ptc -a -c /dev/pts; then
12080
12171
    rxvt_cv_ptys=PTC
12081
12172
 else if test -c /dev/ptc -a -d /dev/pts; then
12100
12191
echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12101
12192
echo "${ECHO_T}$rxvt_cv_ptys" >&6
12102
12193
 
 
12194
if test x$rxvt_cv_ptys = xPOSIX; then
 
12195
 
 
12196
cat >>confdefs.h <<\_ACEOF
 
12197
#define PTYS_ARE_POSIX 1
 
12198
_ACEOF
 
12199
 
 
12200
fi
12103
12201
if test x$rxvt_cv_ptys = xOPENPTY; then
12104
12202
 
12105
12203
cat >>confdefs.h <<\_ACEOF
12135
12233
_ACEOF
12136
12234
 
12137
12235
fi
12138
 
if test x$rxvt_cv_ptys = xCONVEX; then
12139
 
 
12140
 
cat >>confdefs.h <<\_ACEOF
12141
 
#define PTYS_ARE_GETPTY 1
12142
 
_ACEOF
12143
 
 
12144
 
fi
12145
12236
if test x$rxvt_cv_ptys = xGLIBC; then
12146
12237
 
12147
12238
cat >>confdefs.h <<\_ACEOF
12830
12921
 
12831
12922
 
12832
12923
 
 
12924
if test x$support_perl = xyes; then
 
12925
   support_frills=yes
 
12926
fi
 
12927
 
12833
12928
 
12834
12929
CFLAGS=${CFLAGS--O}
12835
12930
LDFLAGS=${LDFLAGS--O}