~ubuntu-branches/ubuntu/raring/splitvt/raring

« back to all changes in this revision

Viewing changes to config.c

  • Committer: Bazaar Package Importer
  • Author(s): Mònica Ramírez Arceda
  • Date: 2011-03-21 12:06:11 UTC
  • Revision ID: james.westby@ubuntu.com-20110321120611-2vth273ag4nw2582
Tags: 1.6.6-9
* Stop using utmp and migrate to wtmp (migrate.splitvt.to.wtmp.patch).
  Thanks to Mats Erik Andersson. (Closes: #619372)
* Implement support for Termios (support.termios.splitvt.patch). 
  Thanks to Mats Erik Andersson.
* debian/source/local-options: Unapply patches after build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
                VERBOSE_PRINT("\tI see you are running Solaris.\n");
94
94
        }
95
95
        else
 
96
#if defined(__GLIBC__)
 
97
                VERBOSE_PRINT("\tA bold user of GNU/kFreeBSD or GNU/Hurd.\n");
 
98
                strcat(cflags, " -O2");
 
99
#else /* !__GLIBC__ */
96
100
                strcat(cflags, " -O");
 
101
#endif
97
102
 
98
103
        /* Check for IRIX */
99
104
        if ( grep("/usr/include", "unistd.h", "_getpty") )
115
120
        /* Check for the ut_host field in the utmp file */
116
121
        if ( grep(INCLUDE, "utmp.h", "ut_host") ) {
117
122
                strcat(cflags, " -DHAVE_UTHOST");
 
123
                strcat(ldflags, " -lutil");
118
124
                VERBOSE_PRINT("\tYour utmp file uses the host field.\n");
119
125
        }
120
126
 
121
 
        /* Check for termio.h */
122
 
        if ( exists(INCLUDE, "termio.h") ) {
 
127
        /* Check for termio[s].h */
 
128
        if ( exists(INCLUDE, "termios.h") ) {
 
129
                strcat(cflags, " -DHAVE_TERMIOS_H");
 
130
                VERBOSE_PRINT("\tI will use termios tty structures.\n");
 
131
        } else if ( exists(INCLUDE, "termio.h") ) {
123
132
                strcat(cflags, " -DHAVE_TERMIO_H");
124
133
                VERBOSE_PRINT("\tI will use termio tty structures.\n");
125
134
        } else 
136
145
                VERBOSE_PRINT("\tI see you have BSD tty support.\n");
137
146
        }
138
147
 
 
148
#if !__GLIBC__  /* False positive for GNU/kFreeBSD */
139
149
        /* Check for ioctl compatibility.  (FreeBSD) */
140
150
        if ( exists(INCLUDE, "sys/ioctl_compat.h") ) {
141
151
                strcat(cflags, " -DNEED_COMPAT_H");
142
152
                VERBOSE_PRINT(
143
153
                        "\tI will use your ioctl compatibility header.\n");
144
154
        }
 
155
#endif
145
156
 
146
157
        /* Check for BSD socket library header (AT&T) */
147
158
        if ( exists(INCLUDE, "sys/inet.h") ) {