View | Details | Raw Unified | Return to bug 247251 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/pwol/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1592131153
2
SHA256 (ptrrkssn-pwol-v1.5_GH0.tar.gz) = b84c33405b070fea6c17489e4d7670a4a63490978cb29d1a38fa0d6d53ffdf62
3
SIZE (ptrrkssn-pwol-v1.5_GH0.tar.gz) = 72697
(-)sysutils/pwol/Makefile (+24 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=		pwol
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=		1.5
6
CATEGORIES=		sysutils
7
8
MAINTAINER=		pen@lysator.liu.se
9
COMMENT=		Peter's Wake-on-LAN Tool
10
11
LICENSE=		BSD3CLAUSE
12
LICENSE_FILE=		${WRKSRC}/LICENSE
13
14
USE_GITHUB=		yes
15
GH_ACCOUNT=		ptrrkssn
16
17
GNU_CONFIGURE=		yes
18
19
PLIST_FILES=		bin/pwol \
20
			man/man1/pwol.1.gz \
21
			man/man5/pwol.conf.5.gz \
22
			etc/pwol.conf.sample
23
24
.include <bsd.port.mk>
(-)sysutils/pwol/pkg-descr (+9 lines)
Line 0 Link Here
1
This is a port of pwol, Peter's Wake-on-Lan tool
2
3
This is a simple tool to send WoL packets to wake up
4
hosts. No more, no less.
5
6
WWW: https://github.com/ptrrkssn/pwol
7
8
- Peter Eriksson
9
pen@lysator.liu.se
(-)sysutils/pwol/work/.license-catalog.mk (+5 lines)
Line 0 Link Here
1
_LICENSE=BSD3CLAUSE
2
_LICENSE_NAME=BSD 3-clause New or Revised License
3
_LICENSE_PERMS=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
4
_LICENSE_GROUPS=FSF OSI COPYFREE
5
_LICENSE_DISTFILES=ptrrkssn-pwol-v1.5_GH0.tar.gz
(-)sysutils/pwol/work/.license-report (+1 lines)
Line 0 Link Here
1
This package has a single license: BSD3CLAUSE (BSD 3-clause New or Revised License).
(-)sysutils/pwol/work/.PLIST.flattened (+7 lines)
Line 0 Link Here
1
/usr/local/bin/pwol
2
/usr/local/man/man1/pwol.1.gz
3
/usr/local/man/man5/pwol.conf.5.gz
4
/usr/local/etc/pwol.conf.sample
5
/usr/local/share/licenses/pwol-1.5/catalog.mk
6
/usr/local/share/licenses/pwol-1.5/LICENSE
7
/usr/local/share/licenses/pwol-1.5/BSD3CLAUSE
(-)sysutils/pwol/work/.PLIST.mktmp (+7 lines)
Line 0 Link Here
1
bin/pwol
2
man/man1/pwol.1.gz
3
man/man5/pwol.conf.5.gz
4
etc/pwol.conf.sample
5
/usr/local/share/licenses/pwol-1.5/catalog.mk
6
/usr/local/share/licenses/pwol-1.5/LICENSE
7
/usr/local/share/licenses/pwol-1.5/BSD3CLAUSE
(-)sysutils/pwol/work/.PLIST.readelf (+85 lines)
Line 0 Link Here
1
2
File: /usr/local/bin/pwol
3
4
Relocation section with addend (.rela.dyn):
5
r_offset     r_info       r_type              st_value         st_name + r_addend
6
0000006081d8 001b00000012 R_X86_64_TPOFF64    0000000000000000 _ThreadRuneLocale + 0
7
0000006083f0 004400000005 R_X86_64_COPY       00000000006083f0 __stdoutp + 0
8
0000006083f8 004200000005 R_X86_64_COPY       00000000006083f8 __stdinp + 0
9
000000608400 004300000005 R_X86_64_COPY       0000000000608400 __mb_sb_limit + 0
10
000000608408 003b00000005 R_X86_64_COPY       0000000000608408 _DefaultRuneLocale + 0
11
000000609488 003c00000005 R_X86_64_COPY       0000000000609488 __isthreaded + 0
12
000000609490 003e00000005 R_X86_64_COPY       0000000000609490 __stack_chk_guard + 0
13
0000006094d0 004000000005 R_X86_64_COPY       00000000006094d0 _CurrentRuneLocale + 0
14
0000006094d8 004500000005 R_X86_64_COPY       00000000006094d8 __stderrp + 0
15
16
Relocation section with addend (.rela.plt):
17
r_offset     r_info       r_type              st_value         st_name + r_addend
18
0000006081f8 000100000007 R_X86_64_JUMP_SLOT  0000000000000000 malloc + 0
19
000000608200 000200000007 R_X86_64_JUMP_SLOT  0000000000000000 chdir + 0
20
000000608208 000300000007 R_X86_64_JUMP_SLOT  0000000000000000 bind + 0
21
000000608210 000400000007 R_X86_64_JUMP_SLOT  0000000000000000 open + 0
22
000000608218 000500000007 R_X86_64_JUMP_SLOT  0000000000000000 umask + 0
23
000000608220 000700000007 R_X86_64_JUMP_SLOT  0000000000000000 fork + 0
24
000000608228 000800000007 R_X86_64_JUMP_SLOT  0000000000000000 strtok_r + 0
25
000000608230 000900000007 R_X86_64_JUMP_SLOT  0000000000000000 printf + 0
26
000000608238 000a00000007 R_X86_64_JUMP_SLOT  0000000000000000 fgets + 0
27
000000608240 000b00000007 R_X86_64_JUMP_SLOT  0000000000000000 isatty + 0
28
000000608248 000c00000007 R_X86_64_JUMP_SLOT  0000000000000000 fwrite + 0
29
000000608250 000d00000007 R_X86_64_JUMP_SLOT  0000000000000000 atexit + 0
30
000000608258 000e00000007 R_X86_64_JUMP_SLOT  0000000000000000 socket + 0
31
000000608260 000f00000007 R_X86_64_JUMP_SLOT  0000000000000000 strerror + 0
32
000000608268 001000000007 R_X86_64_JUMP_SLOT  0000000000000000 getaddrinfo + 0
33
000000608270 001100000007 R_X86_64_JUMP_SLOT  0000000000000000 _init_tls + 0
34
000000608278 001200000007 R_X86_64_JUMP_SLOT  0000000000000000 fclose + 0
35
000000608280 001300000007 R_X86_64_JUMP_SLOT  0000000000000000 memcmp + 0
36
000000608288 001400000007 R_X86_64_JUMP_SLOT  0000000000000000 strdup + 0
37
000000608290 001500000007 R_X86_64_JUMP_SLOT  0000000000000000 fprintf + 0
38
000000608298 001600000007 R_X86_64_JUMP_SLOT  0000000000000000 sprintf + 0
39
0000006082a0 001700000007 R_X86_64_JUMP_SLOT  0000000000000000 close + 0
40
0000006082a8 001800000007 R_X86_64_JUMP_SLOT  0000000000000000 ether_hostton + 0
41
0000006082b0 001900000007 R_X86_64_JUMP_SLOT  0000000000000000 nanosleep + 0
42
0000006082b8 001a00000007 R_X86_64_JUMP_SLOT  0000000000000000 strlen + 0
43
0000006082c0 001c00000007 R_X86_64_JUMP_SLOT  0000000000000000 strcat + 0
44
0000006082c8 001d00000007 R_X86_64_JUMP_SLOT  0000000000000000 dup2 + 0
45
0000006082d0 001e00000007 R_X86_64_JUMP_SLOT  0000000000000000 syslog + 0
46
0000006082d8 001f00000007 R_X86_64_JUMP_SLOT  0000000000000000 setsockopt + 0
47
0000006082e0 002000000007 R_X86_64_JUMP_SLOT  0000000000000000 signal + 0
48
0000006082e8 002100000007 R_X86_64_JUMP_SLOT  0000000000000000 snprintf + 0
49
0000006082f0 002200000007 R_X86_64_JUMP_SLOT  0000000000000000 sscanf + 0
50
0000006082f8 002300000007 R_X86_64_JUMP_SLOT  0000000000000000 sendto + 0
51
000000608300 002400000007 R_X86_64_JUMP_SLOT  0000000000000000 putc + 0
52
000000608308 002500000007 R_X86_64_JUMP_SLOT  0000000000000000 __stack_chk_fail + 0
53
000000608310 002600000007 R_X86_64_JUMP_SLOT  0000000000000000 realloc + 0
54
000000608318 002700000007 R_X86_64_JUMP_SLOT  0000000000000000 __error + 0
55
000000608320 002800000007 R_X86_64_JUMP_SLOT  0000000000000000 getnameinfo + 0
56
000000608328 002900000007 R_X86_64_JUMP_SLOT  0000000000000000 fflush + 0
57
000000608330 002a00000007 R_X86_64_JUMP_SLOT  0000000000000000 freeaddrinfo + 0
58
000000608338 002b00000007 R_X86_64_JUMP_SLOT  0000000000000000 memcpy + 0
59
000000608340 002c00000007 R_X86_64_JUMP_SLOT  0000000000000000 putchar + 0
60
000000608348 002d00000007 R_X86_64_JUMP_SLOT  0000000000000000 strcpy + 0
61
000000608350 002e00000007 R_X86_64_JUMP_SLOT  0000000000000000 fileno + 0
62
000000608358 002f00000007 R_X86_64_JUMP_SLOT  0000000000000000 getenv + 0
63
000000608360 003000000007 R_X86_64_JUMP_SLOT  0000000000000000 ether_ntoa + 0
64
000000608368 003100000007 R_X86_64_JUMP_SLOT  0000000000000000 exit + 0
65
000000608370 003200000007 R_X86_64_JUMP_SLOT  0000000000000000 fopen + 0
66
000000608378 003300000007 R_X86_64_JUMP_SLOT  0000000000000000 recvfrom + 0
67
000000608380 003400000007 R_X86_64_JUMP_SLOT  0000000000000000 ether_aton + 0
68
000000608388 003500000007 R_X86_64_JUMP_SLOT  0000000000000000 free + 0
69
000000608390 003600000007 R_X86_64_JUMP_SLOT  0000000000000000 poll + 0
70
000000608398 003700000007 R_X86_64_JUMP_SLOT  0000000000000000 strcmp + 0
71
0000006083a0 003800000007 R_X86_64_JUMP_SLOT  0000000000000000 strchr + 0
72
0000006083a8 003900000007 R_X86_64_JUMP_SLOT  0000000000000000 puts + 0
73
0000006083b0 003a00000007 R_X86_64_JUMP_SLOT  0000000000000000 __swbuf + 0
74
75
File: /usr/local/man/man1/pwol.1.gz
76
77
File: /usr/local/man/man5/pwol.conf.5.gz
78
79
File: /usr/local/etc/pwol.conf.sample
80
81
File: /usr/local/share/licenses/pwol-1.5/catalog.mk
82
83
File: /usr/local/share/licenses/pwol-1.5/LICENSE
84
85
File: /usr/local/share/licenses/pwol-1.5/BSD3CLAUSE
(-)sysutils/pwol/work/pwol-1.5/.github/workflows/ccpp.yml (+21 lines)
Line 0 Link Here
1
name: C/C++ CI
2
3
on: [push]
4
5
jobs:
6
  build:
7
8
    runs-on: ubuntu-latest
9
    
10
    steps:
11
    - uses: actions/checkout@v2
12
#    - name: install dependencies
13
#      run: test -f /usr/include/readline/readline.h || sudo apt install libreadline-dev
14
#    - name: configure
15
#      run: ./configure
16
    - name: make
17
      run: make
18
#    - name: make check
19
#      run: make check
20
#    - name: make distcheck
21
#      run: make distcheck
(-)sysutils/pwol/work/pwol-1.5/.github/workflows/ccpp.yml~ (+21 lines)
Line 0 Link Here
1
name: C/C++ CI
2
3
on: [push]
4
5
jobs:
6
  build:
7
8
    runs-on: ubuntu-latest
9
    
10
    steps:
11
    - uses: actions/checkout@v2
12
    - name: install dependencies
13
      run: test -f /usr/include/readline/readline.h || sudo apt install libreadline-dev
14
    - name: configure
15
      run: ./configure
16
    - name: make
17
      run: make
18
    - name: make check
19
      run: make check
20
    - name: make distcheck
21
      run: make distcheck
(-)sysutils/pwol/work/pwol-1.5/aux/compile (+348 lines)
Line 0 Link Here
1
#! /bin/sh
2
# Wrapper for compilers which do not understand '-c -o'.
3
4
scriptversion=2018-03-07.03; # UTC
5
6
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
7
# Written by Tom Tromey <tromey@cygnus.com>.
8
#
9
# This program is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2, or (at your option)
12
# any later version.
13
#
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
# GNU General Public License for more details.
18
#
19
# You should have received a copy of the GNU General Public License
20
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
21
22
# As a special exception to the GNU General Public License, if you
23
# distribute this file as part of a program that contains a
24
# configuration script generated by Autoconf, you may include it under
25
# the same distribution terms that you use for the rest of that program.
26
27
# This file is maintained in Automake, please report
28
# bugs to <bug-automake@gnu.org> or send patches to
29
# <automake-patches@gnu.org>.
30
31
nl='
32
'
33
34
# We need space, tab and new line, in precisely that order.  Quoting is
35
# there to prevent tools from complaining about whitespace usage.
36
IFS=" ""	$nl"
37
38
file_conv=
39
40
# func_file_conv build_file lazy
41
# Convert a $build file to $host form and store it in $file
42
# Currently only supports Windows hosts. If the determined conversion
43
# type is listed in (the comma separated) LAZY, no conversion will
44
# take place.
45
func_file_conv ()
46
{
47
  file=$1
48
  case $file in
49
    / | /[!/]*) # absolute file, and not a UNC file
50
      if test -z "$file_conv"; then
51
	# lazily determine how to convert abs files
52
	case `uname -s` in
53
	  MINGW*)
54
	    file_conv=mingw
55
	    ;;
56
	  CYGWIN*)
57
	    file_conv=cygwin
58
	    ;;
59
	  *)
60
	    file_conv=wine
61
	    ;;
62
	esac
63
      fi
64
      case $file_conv/,$2, in
65
	*,$file_conv,*)
66
	  ;;
67
	mingw/*)
68
	  file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
69
	  ;;
70
	cygwin/*)
71
	  file=`cygpath -m "$file" || echo "$file"`
72
	  ;;
73
	wine/*)
74
	  file=`winepath -w "$file" || echo "$file"`
75
	  ;;
76
      esac
77
      ;;
78
  esac
79
}
80
81
# func_cl_dashL linkdir
82
# Make cl look for libraries in LINKDIR
83
func_cl_dashL ()
84
{
85
  func_file_conv "$1"
86
  if test -z "$lib_path"; then
87
    lib_path=$file
88
  else
89
    lib_path="$lib_path;$file"
90
  fi
91
  linker_opts="$linker_opts -LIBPATH:$file"
92
}
93
94
# func_cl_dashl library
95
# Do a library search-path lookup for cl
96
func_cl_dashl ()
97
{
98
  lib=$1
99
  found=no
100
  save_IFS=$IFS
101
  IFS=';'
102
  for dir in $lib_path $LIB
103
  do
104
    IFS=$save_IFS
105
    if $shared && test -f "$dir/$lib.dll.lib"; then
106
      found=yes
107
      lib=$dir/$lib.dll.lib
108
      break
109
    fi
110
    if test -f "$dir/$lib.lib"; then
111
      found=yes
112
      lib=$dir/$lib.lib
113
      break
114
    fi
115
    if test -f "$dir/lib$lib.a"; then
116
      found=yes
117
      lib=$dir/lib$lib.a
118
      break
119
    fi
120
  done
121
  IFS=$save_IFS
122
123
  if test "$found" != yes; then
124
    lib=$lib.lib
125
  fi
126
}
127
128
# func_cl_wrapper cl arg...
129
# Adjust compile command to suit cl
130
func_cl_wrapper ()
131
{
132
  # Assume a capable shell
133
  lib_path=
134
  shared=:
135
  linker_opts=
136
  for arg
137
  do
138
    if test -n "$eat"; then
139
      eat=
140
    else
141
      case $1 in
142
	-o)
143
	  # configure might choose to run compile as 'compile cc -o foo foo.c'.
144
	  eat=1
145
	  case $2 in
146
	    *.o | *.[oO][bB][jJ])
147
	      func_file_conv "$2"
148
	      set x "$@" -Fo"$file"
149
	      shift
150
	      ;;
151
	    *)
152
	      func_file_conv "$2"
153
	      set x "$@" -Fe"$file"
154
	      shift
155
	      ;;
156
	  esac
157
	  ;;
158
	-I)
159
	  eat=1
160
	  func_file_conv "$2" mingw
161
	  set x "$@" -I"$file"
162
	  shift
163
	  ;;
164
	-I*)
165
	  func_file_conv "${1#-I}" mingw
166
	  set x "$@" -I"$file"
167
	  shift
168
	  ;;
169
	-l)
170
	  eat=1
171
	  func_cl_dashl "$2"
172
	  set x "$@" "$lib"
173
	  shift
174
	  ;;
175
	-l*)
176
	  func_cl_dashl "${1#-l}"
177
	  set x "$@" "$lib"
178
	  shift
179
	  ;;
180
	-L)
181
	  eat=1
182
	  func_cl_dashL "$2"
183
	  ;;
184
	-L*)
185
	  func_cl_dashL "${1#-L}"
186
	  ;;
187
	-static)
188
	  shared=false
189
	  ;;
190
	-Wl,*)
191
	  arg=${1#-Wl,}
192
	  save_ifs="$IFS"; IFS=','
193
	  for flag in $arg; do
194
	    IFS="$save_ifs"
195
	    linker_opts="$linker_opts $flag"
196
	  done
197
	  IFS="$save_ifs"
198
	  ;;
199
	-Xlinker)
200
	  eat=1
201
	  linker_opts="$linker_opts $2"
202
	  ;;
203
	-*)
204
	  set x "$@" "$1"
205
	  shift
206
	  ;;
207
	*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
208
	  func_file_conv "$1"
209
	  set x "$@" -Tp"$file"
210
	  shift
211
	  ;;
212
	*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
213
	  func_file_conv "$1" mingw
214
	  set x "$@" "$file"
215
	  shift
216
	  ;;
217
	*)
218
	  set x "$@" "$1"
219
	  shift
220
	  ;;
221
      esac
222
    fi
223
    shift
224
  done
225
  if test -n "$linker_opts"; then
226
    linker_opts="-link$linker_opts"
227
  fi
228
  exec "$@" $linker_opts
229
  exit 1
230
}
231
232
eat=
233
234
case $1 in
235
  '')
236
     echo "$0: No command.  Try '$0 --help' for more information." 1>&2
237
     exit 1;
238
     ;;
239
  -h | --h*)
240
    cat <<\EOF
241
Usage: compile [--help] [--version] PROGRAM [ARGS]
242
243
Wrapper for compilers which do not understand '-c -o'.
244
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
245
arguments, and rename the output as expected.
246
247
If you are trying to build a whole package this is not the
248
right script to run: please start by reading the file 'INSTALL'.
249
250
Report bugs to <bug-automake@gnu.org>.
251
EOF
252
    exit $?
253
    ;;
254
  -v | --v*)
255
    echo "compile $scriptversion"
256
    exit $?
257
    ;;
258
  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
259
  icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
260
    func_cl_wrapper "$@"      # Doesn't return...
261
    ;;
262
esac
263
264
ofile=
265
cfile=
266
267
for arg
268
do
269
  if test -n "$eat"; then
270
    eat=
271
  else
272
    case $1 in
273
      -o)
274
	# configure might choose to run compile as 'compile cc -o foo foo.c'.
275
	# So we strip '-o arg' only if arg is an object.
276
	eat=1
277
	case $2 in
278
	  *.o | *.obj)
279
	    ofile=$2
280
	    ;;
281
	  *)
282
	    set x "$@" -o "$2"
283
	    shift
284
	    ;;
285
	esac
286
	;;
287
      *.c)
288
	cfile=$1
289
	set x "$@" "$1"
290
	shift
291
	;;
292
      *)
293
	set x "$@" "$1"
294
	shift
295
	;;
296
    esac
297
  fi
298
  shift
299
done
300
301
if test -z "$ofile" || test -z "$cfile"; then
302
  # If no '-o' option was seen then we might have been invoked from a
303
  # pattern rule where we don't need one.  That is ok -- this is a
304
  # normal compilation that the losing compiler can handle.  If no
305
  # '.c' file was seen then we are probably linking.  That is also
306
  # ok.
307
  exec "$@"
308
fi
309
310
# Name of file we expect compiler to create.
311
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
312
313
# Create the lock directory.
314
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
315
# that we are using for the .o file.  Also, base the name on the expected
316
# object file name, since that is what matters with a parallel build.
317
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
318
while true; do
319
  if mkdir "$lockdir" >/dev/null 2>&1; then
320
    break
321
  fi
322
  sleep 1
323
done
324
# FIXME: race condition here if user kills between mkdir and trap.
325
trap "rmdir '$lockdir'; exit 1" 1 2 15
326
327
# Run the compile.
328
"$@"
329
ret=$?
330
331
if test -f "$cofile"; then
332
  test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
333
elif test -f "${cofile}bj"; then
334
  test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
335
fi
336
337
rmdir "$lockdir"
338
exit $ret
339
340
# Local Variables:
341
# mode: shell-script
342
# sh-indentation: 2
343
# eval: (add-hook 'before-save-hook 'time-stamp)
344
# time-stamp-start: "scriptversion="
345
# time-stamp-format: "%:y-%02m-%02d.%02H"
346
# time-stamp-time-zone: "UTC0"
347
# time-stamp-end: "; # UTC"
348
# End:
(-)sysutils/pwol/work/pwol-1.5/aux/depcomp (+791 lines)
Line 0 Link Here
1
#! /bin/sh
2
# depcomp - compile a program generating dependencies as side-effects
3
4
scriptversion=2018-03-07.03; # UTC
5
6
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
7
8
# This program is free software; you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; either version 2, or (at your option)
11
# any later version.
12
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
# GNU General Public License for more details.
17
18
# You should have received a copy of the GNU General Public License
19
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
21
# As a special exception to the GNU General Public License, if you
22
# distribute this file as part of a program that contains a
23
# configuration script generated by Autoconf, you may include it under
24
# the same distribution terms that you use for the rest of that program.
25
26
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
27
28
case $1 in
29
  '')
30
    echo "$0: No command.  Try '$0 --help' for more information." 1>&2
31
    exit 1;
32
    ;;
33
  -h | --h*)
34
    cat <<\EOF
35
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
36
37
Run PROGRAMS ARGS to compile a file, generating dependencies
38
as side-effects.
39
40
Environment variables:
41
  depmode     Dependency tracking mode.
42
  source      Source file read by 'PROGRAMS ARGS'.
43
  object      Object file output by 'PROGRAMS ARGS'.
44
  DEPDIR      directory where to store dependencies.
45
  depfile     Dependency file to output.
46
  tmpdepfile  Temporary file to use when outputting dependencies.
47
  libtool     Whether libtool is used (yes/no).
48
49
Report bugs to <bug-automake@gnu.org>.
50
EOF
51
    exit $?
52
    ;;
53
  -v | --v*)
54
    echo "depcomp $scriptversion"
55
    exit $?
56
    ;;
57
esac
58
59
# Get the directory component of the given path, and save it in the
60
# global variables '$dir'.  Note that this directory component will
61
# be either empty or ending with a '/' character.  This is deliberate.
62
set_dir_from ()
63
{
64
  case $1 in
65
    */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
66
      *) dir=;;
67
  esac
68
}
69
70
# Get the suffix-stripped basename of the given path, and save it the
71
# global variable '$base'.
72
set_base_from ()
73
{
74
  base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
75
}
76
77
# If no dependency file was actually created by the compiler invocation,
78
# we still have to create a dummy depfile, to avoid errors with the
79
# Makefile "include basename.Plo" scheme.
80
make_dummy_depfile ()
81
{
82
  echo "#dummy" > "$depfile"
83
}
84
85
# Factor out some common post-processing of the generated depfile.
86
# Requires the auxiliary global variable '$tmpdepfile' to be set.
87
aix_post_process_depfile ()
88
{
89
  # If the compiler actually managed to produce a dependency file,
90
  # post-process it.
91
  if test -f "$tmpdepfile"; then
92
    # Each line is of the form 'foo.o: dependency.h'.
93
    # Do two passes, one to just change these to
94
    #   $object: dependency.h
95
    # and one to simply output
96
    #   dependency.h:
97
    # which is needed to avoid the deleted-header problem.
98
    { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
99
      sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
100
    } > "$depfile"
101
    rm -f "$tmpdepfile"
102
  else
103
    make_dummy_depfile
104
  fi
105
}
106
107
# A tabulation character.
108
tab='	'
109
# A newline character.
110
nl='
111
'
112
# Character ranges might be problematic outside the C locale.
113
# These definitions help.
114
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
115
lower=abcdefghijklmnopqrstuvwxyz
116
digits=0123456789
117
alpha=${upper}${lower}
118
119
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
120
  echo "depcomp: Variables source, object and depmode must be set" 1>&2
121
  exit 1
122
fi
123
124
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
125
depfile=${depfile-`echo "$object" |
126
  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
127
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
128
129
rm -f "$tmpdepfile"
130
131
# Avoid interferences from the environment.
132
gccflag= dashmflag=
133
134
# Some modes work just like other modes, but use different flags.  We
135
# parameterize here, but still list the modes in the big case below,
136
# to make depend.m4 easier to write.  Note that we *cannot* use a case
137
# here, because this file can only contain one case statement.
138
if test "$depmode" = hp; then
139
  # HP compiler uses -M and no extra arg.
140
  gccflag=-M
141
  depmode=gcc
142
fi
143
144
if test "$depmode" = dashXmstdout; then
145
  # This is just like dashmstdout with a different argument.
146
  dashmflag=-xM
147
  depmode=dashmstdout
148
fi
149
150
cygpath_u="cygpath -u -f -"
151
if test "$depmode" = msvcmsys; then
152
  # This is just like msvisualcpp but w/o cygpath translation.
153
  # Just convert the backslash-escaped backslashes to single forward
154
  # slashes to satisfy depend.m4
155
  cygpath_u='sed s,\\\\,/,g'
156
  depmode=msvisualcpp
157
fi
158
159
if test "$depmode" = msvc7msys; then
160
  # This is just like msvc7 but w/o cygpath translation.
161
  # Just convert the backslash-escaped backslashes to single forward
162
  # slashes to satisfy depend.m4
163
  cygpath_u='sed s,\\\\,/,g'
164
  depmode=msvc7
165
fi
166
167
if test "$depmode" = xlc; then
168
  # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
169
  gccflag=-qmakedep=gcc,-MF
170
  depmode=gcc
171
fi
172
173
case "$depmode" in
174
gcc3)
175
## gcc 3 implements dependency tracking that does exactly what
176
## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
177
## it if -MD -MP comes after the -MF stuff.  Hmm.
178
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
179
## the command line argument order; so add the flags where they
180
## appear in depend2.am.  Note that the slowdown incurred here
181
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
182
  for arg
183
  do
184
    case $arg in
185
    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
186
    *)  set fnord "$@" "$arg" ;;
187
    esac
188
    shift # fnord
189
    shift # $arg
190
  done
191
  "$@"
192
  stat=$?
193
  if test $stat -ne 0; then
194
    rm -f "$tmpdepfile"
195
    exit $stat
196
  fi
197
  mv "$tmpdepfile" "$depfile"
198
  ;;
199
200
gcc)
201
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
202
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
203
## (see the conditional assignment to $gccflag above).
204
## There are various ways to get dependency output from gcc.  Here's
205
## why we pick this rather obscure method:
206
## - Don't want to use -MD because we'd like the dependencies to end
207
##   up in a subdir.  Having to rename by hand is ugly.
208
##   (We might end up doing this anyway to support other compilers.)
209
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
210
##   -MM, not -M (despite what the docs say).  Also, it might not be
211
##   supported by the other compilers which use the 'gcc' depmode.
212
## - Using -M directly means running the compiler twice (even worse
213
##   than renaming).
214
  if test -z "$gccflag"; then
215
    gccflag=-MD,
216
  fi
217
  "$@" -Wp,"$gccflag$tmpdepfile"
218
  stat=$?
219
  if test $stat -ne 0; then
220
    rm -f "$tmpdepfile"
221
    exit $stat
222
  fi
223
  rm -f "$depfile"
224
  echo "$object : \\" > "$depfile"
225
  # The second -e expression handles DOS-style file names with drive
226
  # letters.
227
  sed -e 's/^[^:]*: / /' \
228
      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
229
## This next piece of magic avoids the "deleted header file" problem.
230
## The problem is that when a header file which appears in a .P file
231
## is deleted, the dependency causes make to die (because there is
232
## typically no way to rebuild the header).  We avoid this by adding
233
## dummy dependencies for each header file.  Too bad gcc doesn't do
234
## this for us directly.
235
## Some versions of gcc put a space before the ':'.  On the theory
236
## that the space means something, we add a space to the output as
237
## well.  hp depmode also adds that space, but also prefixes the VPATH
238
## to the object.  Take care to not repeat it in the output.
239
## Some versions of the HPUX 10.20 sed can't process this invocation
240
## correctly.  Breaking it into two sed invocations is a workaround.
241
  tr ' ' "$nl" < "$tmpdepfile" \
242
    | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
243
    | sed -e 's/$/ :/' >> "$depfile"
244
  rm -f "$tmpdepfile"
245
  ;;
246
247
hp)
248
  # This case exists only to let depend.m4 do its work.  It works by
249
  # looking at the text of this script.  This case will never be run,
250
  # since it is checked for above.
251
  exit 1
252
  ;;
253
254
sgi)
255
  if test "$libtool" = yes; then
256
    "$@" "-Wp,-MDupdate,$tmpdepfile"
257
  else
258
    "$@" -MDupdate "$tmpdepfile"
259
  fi
260
  stat=$?
261
  if test $stat -ne 0; then
262
    rm -f "$tmpdepfile"
263
    exit $stat
264
  fi
265
  rm -f "$depfile"
266
267
  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
268
    echo "$object : \\" > "$depfile"
269
    # Clip off the initial element (the dependent).  Don't try to be
270
    # clever and replace this with sed code, as IRIX sed won't handle
271
    # lines with more than a fixed number of characters (4096 in
272
    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
273
    # the IRIX cc adds comments like '#:fec' to the end of the
274
    # dependency line.
275
    tr ' ' "$nl" < "$tmpdepfile" \
276
      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
277
      | tr "$nl" ' ' >> "$depfile"
278
    echo >> "$depfile"
279
    # The second pass generates a dummy entry for each header file.
280
    tr ' ' "$nl" < "$tmpdepfile" \
281
      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
282
      >> "$depfile"
283
  else
284
    make_dummy_depfile
285
  fi
286
  rm -f "$tmpdepfile"
287
  ;;
288
289
xlc)
290
  # This case exists only to let depend.m4 do its work.  It works by
291
  # looking at the text of this script.  This case will never be run,
292
  # since it is checked for above.
293
  exit 1
294
  ;;
295
296
aix)
297
  # The C for AIX Compiler uses -M and outputs the dependencies
298
  # in a .u file.  In older versions, this file always lives in the
299
  # current directory.  Also, the AIX compiler puts '$object:' at the
300
  # start of each line; $object doesn't have directory information.
301
  # Version 6 uses the directory in both cases.
302
  set_dir_from "$object"
303
  set_base_from "$object"
304
  if test "$libtool" = yes; then
305
    tmpdepfile1=$dir$base.u
306
    tmpdepfile2=$base.u
307
    tmpdepfile3=$dir.libs/$base.u
308
    "$@" -Wc,-M
309
  else
310
    tmpdepfile1=$dir$base.u
311
    tmpdepfile2=$dir$base.u
312
    tmpdepfile3=$dir$base.u
313
    "$@" -M
314
  fi
315
  stat=$?
316
  if test $stat -ne 0; then
317
    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
318
    exit $stat
319
  fi
320
321
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
322
  do
323
    test -f "$tmpdepfile" && break
324
  done
325
  aix_post_process_depfile
326
  ;;
327
328
tcc)
329
  # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
330
  # FIXME: That version still under development at the moment of writing.
331
  #        Make that this statement remains true also for stable, released
332
  #        versions.
333
  # It will wrap lines (doesn't matter whether long or short) with a
334
  # trailing '\', as in:
335
  #
336
  #   foo.o : \
337
  #    foo.c \
338
  #    foo.h \
339
  #
340
  # It will put a trailing '\' even on the last line, and will use leading
341
  # spaces rather than leading tabs (at least since its commit 0394caf7
342
  # "Emit spaces for -MD").
343
  "$@" -MD -MF "$tmpdepfile"
344
  stat=$?
345
  if test $stat -ne 0; then
346
    rm -f "$tmpdepfile"
347
    exit $stat
348
  fi
349
  rm -f "$depfile"
350
  # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
351
  # We have to change lines of the first kind to '$object: \'.
352
  sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
353
  # And for each line of the second kind, we have to emit a 'dep.h:'
354
  # dummy dependency, to avoid the deleted-header problem.
355
  sed -n -e 's|^  *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
356
  rm -f "$tmpdepfile"
357
  ;;
358
359
## The order of this option in the case statement is important, since the
360
## shell code in configure will try each of these formats in the order
361
## listed in this file.  A plain '-MD' option would be understood by many
362
## compilers, so we must ensure this comes after the gcc and icc options.
363
pgcc)
364
  # Portland's C compiler understands '-MD'.
365
  # Will always output deps to 'file.d' where file is the root name of the
366
  # source file under compilation, even if file resides in a subdirectory.
367
  # The object file name does not affect the name of the '.d' file.
368
  # pgcc 10.2 will output
369
  #    foo.o: sub/foo.c sub/foo.h
370
  # and will wrap long lines using '\' :
371
  #    foo.o: sub/foo.c ... \
372
  #     sub/foo.h ... \
373
  #     ...
374
  set_dir_from "$object"
375
  # Use the source, not the object, to determine the base name, since
376
  # that's sadly what pgcc will do too.
377
  set_base_from "$source"
378
  tmpdepfile=$base.d
379
380
  # For projects that build the same source file twice into different object
381
  # files, the pgcc approach of using the *source* file root name can cause
382
  # problems in parallel builds.  Use a locking strategy to avoid stomping on
383
  # the same $tmpdepfile.
384
  lockdir=$base.d-lock
385
  trap "
386
    echo '$0: caught signal, cleaning up...' >&2
387
    rmdir '$lockdir'
388
    exit 1
389
  " 1 2 13 15
390
  numtries=100
391
  i=$numtries
392
  while test $i -gt 0; do
393
    # mkdir is a portable test-and-set.
394
    if mkdir "$lockdir" 2>/dev/null; then
395
      # This process acquired the lock.
396
      "$@" -MD
397
      stat=$?
398
      # Release the lock.
399
      rmdir "$lockdir"
400
      break
401
    else
402
      # If the lock is being held by a different process, wait
403
      # until the winning process is done or we timeout.
404
      while test -d "$lockdir" && test $i -gt 0; do
405
        sleep 1
406
        i=`expr $i - 1`
407
      done
408
    fi
409
    i=`expr $i - 1`
410
  done
411
  trap - 1 2 13 15
412
  if test $i -le 0; then
413
    echo "$0: failed to acquire lock after $numtries attempts" >&2
414
    echo "$0: check lockdir '$lockdir'" >&2
415
    exit 1
416
  fi
417
418
  if test $stat -ne 0; then
419
    rm -f "$tmpdepfile"
420
    exit $stat
421
  fi
422
  rm -f "$depfile"
423
  # Each line is of the form `foo.o: dependent.h',
424
  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
425
  # Do two passes, one to just change these to
426
  # `$object: dependent.h' and one to simply `dependent.h:'.
427
  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
428
  # Some versions of the HPUX 10.20 sed can't process this invocation
429
  # correctly.  Breaking it into two sed invocations is a workaround.
430
  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
431
    | sed -e 's/$/ :/' >> "$depfile"
432
  rm -f "$tmpdepfile"
433
  ;;
434
435
hp2)
436
  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
437
  # compilers, which have integrated preprocessors.  The correct option
438
  # to use with these is +Maked; it writes dependencies to a file named
439
  # 'foo.d', which lands next to the object file, wherever that
440
  # happens to be.
441
  # Much of this is similar to the tru64 case; see comments there.
442
  set_dir_from  "$object"
443
  set_base_from "$object"
444
  if test "$libtool" = yes; then
445
    tmpdepfile1=$dir$base.d
446
    tmpdepfile2=$dir.libs/$base.d
447
    "$@" -Wc,+Maked
448
  else
449
    tmpdepfile1=$dir$base.d
450
    tmpdepfile2=$dir$base.d
451
    "$@" +Maked
452
  fi
453
  stat=$?
454
  if test $stat -ne 0; then
455
     rm -f "$tmpdepfile1" "$tmpdepfile2"
456
     exit $stat
457
  fi
458
459
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
460
  do
461
    test -f "$tmpdepfile" && break
462
  done
463
  if test -f "$tmpdepfile"; then
464
    sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
465
    # Add 'dependent.h:' lines.
466
    sed -ne '2,${
467
               s/^ *//
468
               s/ \\*$//
469
               s/$/:/
470
               p
471
             }' "$tmpdepfile" >> "$depfile"
472
  else
473
    make_dummy_depfile
474
  fi
475
  rm -f "$tmpdepfile" "$tmpdepfile2"
476
  ;;
477
478
tru64)
479
  # The Tru64 compiler uses -MD to generate dependencies as a side
480
  # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
481
  # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
482
  # dependencies in 'foo.d' instead, so we check for that too.
483
  # Subdirectories are respected.
484
  set_dir_from  "$object"
485
  set_base_from "$object"
486
487
  if test "$libtool" = yes; then
488
    # Libtool generates 2 separate objects for the 2 libraries.  These
489
    # two compilations output dependencies in $dir.libs/$base.o.d and
490
    # in $dir$base.o.d.  We have to check for both files, because
491
    # one of the two compilations can be disabled.  We should prefer
492
    # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
493
    # automatically cleaned when .libs/ is deleted, while ignoring
494
    # the former would cause a distcleancheck panic.
495
    tmpdepfile1=$dir$base.o.d          # libtool 1.5
496
    tmpdepfile2=$dir.libs/$base.o.d    # Likewise.
497
    tmpdepfile3=$dir.libs/$base.d      # Compaq CCC V6.2-504
498
    "$@" -Wc,-MD
499
  else
500
    tmpdepfile1=$dir$base.d
501
    tmpdepfile2=$dir$base.d
502
    tmpdepfile3=$dir$base.d
503
    "$@" -MD
504
  fi
505
506
  stat=$?
507
  if test $stat -ne 0; then
508
    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
509
    exit $stat
510
  fi
511
512
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
513
  do
514
    test -f "$tmpdepfile" && break
515
  done
516
  # Same post-processing that is required for AIX mode.
517
  aix_post_process_depfile
518
  ;;
519
520
msvc7)
521
  if test "$libtool" = yes; then
522
    showIncludes=-Wc,-showIncludes
523
  else
524
    showIncludes=-showIncludes
525
  fi
526
  "$@" $showIncludes > "$tmpdepfile"
527
  stat=$?
528
  grep -v '^Note: including file: ' "$tmpdepfile"
529
  if test $stat -ne 0; then
530
    rm -f "$tmpdepfile"
531
    exit $stat
532
  fi
533
  rm -f "$depfile"
534
  echo "$object : \\" > "$depfile"
535
  # The first sed program below extracts the file names and escapes
536
  # backslashes for cygpath.  The second sed program outputs the file
537
  # name when reading, but also accumulates all include files in the
538
  # hold buffer in order to output them again at the end.  This only
539
  # works with sed implementations that can handle large buffers.
540
  sed < "$tmpdepfile" -n '
541
/^Note: including file:  *\(.*\)/ {
542
  s//\1/
543
  s/\\/\\\\/g
544
  p
545
}' | $cygpath_u | sort -u | sed -n '
546
s/ /\\ /g
547
s/\(.*\)/'"$tab"'\1 \\/p
548
s/.\(.*\) \\/\1:/
549
H
550
$ {
551
  s/.*/'"$tab"'/
552
  G
553
  p
554
}' >> "$depfile"
555
  echo >> "$depfile" # make sure the fragment doesn't end with a backslash
556
  rm -f "$tmpdepfile"
557
  ;;
558
559
msvc7msys)
560
  # This case exists only to let depend.m4 do its work.  It works by
561
  # looking at the text of this script.  This case will never be run,
562
  # since it is checked for above.
563
  exit 1
564
  ;;
565
566
#nosideeffect)
567
  # This comment above is used by automake to tell side-effect
568
  # dependency tracking mechanisms from slower ones.
569
570
dashmstdout)
571
  # Important note: in order to support this mode, a compiler *must*
572
  # always write the preprocessed file to stdout, regardless of -o.
573
  "$@" || exit $?
574
575
  # Remove the call to Libtool.
576
  if test "$libtool" = yes; then
577
    while test "X$1" != 'X--mode=compile'; do
578
      shift
579
    done
580
    shift
581
  fi
582
583
  # Remove '-o $object'.
584
  IFS=" "
585
  for arg
586
  do
587
    case $arg in
588
    -o)
589
      shift
590
      ;;
591
    $object)
592
      shift
593
      ;;
594
    *)
595
      set fnord "$@" "$arg"
596
      shift # fnord
597
      shift # $arg
598
      ;;
599
    esac
600
  done
601
602
  test -z "$dashmflag" && dashmflag=-M
603
  # Require at least two characters before searching for ':'
604
  # in the target name.  This is to cope with DOS-style filenames:
605
  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
606
  "$@" $dashmflag |
607
    sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
608
  rm -f "$depfile"
609
  cat < "$tmpdepfile" > "$depfile"
610
  # Some versions of the HPUX 10.20 sed can't process this sed invocation
611
  # correctly.  Breaking it into two sed invocations is a workaround.
612
  tr ' ' "$nl" < "$tmpdepfile" \
613
    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
614
    | sed -e 's/$/ :/' >> "$depfile"
615
  rm -f "$tmpdepfile"
616
  ;;
617
618
dashXmstdout)
619
  # This case only exists to satisfy depend.m4.  It is never actually
620
  # run, as this mode is specially recognized in the preamble.
621
  exit 1
622
  ;;
623
624
makedepend)
625
  "$@" || exit $?
626
  # Remove any Libtool call
627
  if test "$libtool" = yes; then
628
    while test "X$1" != 'X--mode=compile'; do
629
      shift
630
    done
631
    shift
632
  fi
633
  # X makedepend
634
  shift
635
  cleared=no eat=no
636
  for arg
637
  do
638
    case $cleared in
639
    no)
640
      set ""; shift
641
      cleared=yes ;;
642
    esac
643
    if test $eat = yes; then
644
      eat=no
645
      continue
646
    fi
647
    case "$arg" in
648
    -D*|-I*)
649
      set fnord "$@" "$arg"; shift ;;
650
    # Strip any option that makedepend may not understand.  Remove
651
    # the object too, otherwise makedepend will parse it as a source file.
652
    -arch)
653
      eat=yes ;;
654
    -*|$object)
655
      ;;
656
    *)
657
      set fnord "$@" "$arg"; shift ;;
658
    esac
659
  done
660
  obj_suffix=`echo "$object" | sed 's/^.*\././'`
661
  touch "$tmpdepfile"
662
  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
663
  rm -f "$depfile"
664
  # makedepend may prepend the VPATH from the source file name to the object.
665
  # No need to regex-escape $object, excess matching of '.' is harmless.
666
  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
667
  # Some versions of the HPUX 10.20 sed can't process the last invocation
668
  # correctly.  Breaking it into two sed invocations is a workaround.
669
  sed '1,2d' "$tmpdepfile" \
670
    | tr ' ' "$nl" \
671
    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
672
    | sed -e 's/$/ :/' >> "$depfile"
673
  rm -f "$tmpdepfile" "$tmpdepfile".bak
674
  ;;
675
676
cpp)
677
  # Important note: in order to support this mode, a compiler *must*
678
  # always write the preprocessed file to stdout.
679
  "$@" || exit $?
680
681
  # Remove the call to Libtool.
682
  if test "$libtool" = yes; then
683
    while test "X$1" != 'X--mode=compile'; do
684
      shift
685
    done
686
    shift
687
  fi
688
689
  # Remove '-o $object'.
690
  IFS=" "
691
  for arg
692
  do
693
    case $arg in
694
    -o)
695
      shift
696
      ;;
697
    $object)
698
      shift
699
      ;;
700
    *)
701
      set fnord "$@" "$arg"
702
      shift # fnord
703
      shift # $arg
704
      ;;
705
    esac
706
  done
707
708
  "$@" -E \
709
    | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710
             -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
711
    | sed '$ s: \\$::' > "$tmpdepfile"
712
  rm -f "$depfile"
713
  echo "$object : \\" > "$depfile"
714
  cat < "$tmpdepfile" >> "$depfile"
715
  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
716
  rm -f "$tmpdepfile"
717
  ;;
718
719
msvisualcpp)
720
  # Important note: in order to support this mode, a compiler *must*
721
  # always write the preprocessed file to stdout.
722
  "$@" || exit $?
723
724
  # Remove the call to Libtool.
725
  if test "$libtool" = yes; then
726
    while test "X$1" != 'X--mode=compile'; do
727
      shift
728
    done
729
    shift
730
  fi
731
732
  IFS=" "
733
  for arg
734
  do
735
    case "$arg" in
736
    -o)
737
      shift
738
      ;;
739
    $object)
740
      shift
741
      ;;
742
    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
743
        set fnord "$@"
744
        shift
745
        shift
746
        ;;
747
    *)
748
        set fnord "$@" "$arg"
749
        shift
750
        shift
751
        ;;
752
    esac
753
  done
754
  "$@" -E 2>/dev/null |
755
  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
756
  rm -f "$depfile"
757
  echo "$object : \\" > "$depfile"
758
  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
759
  echo "$tab" >> "$depfile"
760
  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
761
  rm -f "$tmpdepfile"
762
  ;;
763
764
msvcmsys)
765
  # This case exists only to let depend.m4 do its work.  It works by
766
  # looking at the text of this script.  This case will never be run,
767
  # since it is checked for above.
768
  exit 1
769
  ;;
770
771
none)
772
  exec "$@"
773
  ;;
774
775
*)
776
  echo "Unknown depmode $depmode" 1>&2
777
  exit 1
778
  ;;
779
esac
780
781
exit 0
782
783
# Local Variables:
784
# mode: shell-script
785
# sh-indentation: 2
786
# eval: (add-hook 'before-save-hook 'time-stamp)
787
# time-stamp-start: "scriptversion="
788
# time-stamp-format: "%:y-%02m-%02d.%02H"
789
# time-stamp-time-zone: "UTC0"
790
# time-stamp-end: "; # UTC"
791
# End:
(-)sysutils/pwol/work/pwol-1.5/aux/install-sh (+518 lines)
Line 0 Link Here
1
#!/bin/sh
2
# install - install a program, script, or datafile
3
4
scriptversion=2018-03-11.20; # UTC
5
6
# This originates from X11R5 (mit/util/scripts/install.sh), which was
7
# later released in X11R6 (xc/config/util/install.sh) with the
8
# following copyright and license.
9
#
10
# Copyright (C) 1994 X Consortium
11
#
12
# Permission is hereby granted, free of charge, to any person obtaining a copy
13
# of this software and associated documentation files (the "Software"), to
14
# deal in the Software without restriction, including without limitation the
15
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16
# sell copies of the Software, and to permit persons to whom the Software is
17
# furnished to do so, subject to the following conditions:
18
#
19
# The above copyright notice and this permission notice shall be included in
20
# all copies or substantial portions of the Software.
21
#
22
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
25
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
27
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
#
29
# Except as contained in this notice, the name of the X Consortium shall not
30
# be used in advertising or otherwise to promote the sale, use or other deal-
31
# ings in this Software without prior written authorization from the X Consor-
32
# tium.
33
#
34
#
35
# FSF changes to this file are in the public domain.
36
#
37
# Calling this script install-sh is preferred over install.sh, to prevent
38
# 'make' implicit rules from creating a file called install from it
39
# when there is no Makefile.
40
#
41
# This script is compatible with the BSD install script, but was written
42
# from scratch.
43
44
tab='	'
45
nl='
46
'
47
IFS=" $tab$nl"
48
49
# Set DOITPROG to "echo" to test this script.
50
51
doit=${DOITPROG-}
52
doit_exec=${doit:-exec}
53
54
# Put in absolute file names if you don't have them in your path;
55
# or use environment vars.
56
57
chgrpprog=${CHGRPPROG-chgrp}
58
chmodprog=${CHMODPROG-chmod}
59
chownprog=${CHOWNPROG-chown}
60
cmpprog=${CMPPROG-cmp}
61
cpprog=${CPPROG-cp}
62
mkdirprog=${MKDIRPROG-mkdir}
63
mvprog=${MVPROG-mv}
64
rmprog=${RMPROG-rm}
65
stripprog=${STRIPPROG-strip}
66
67
posix_mkdir=
68
69
# Desired mode of installed file.
70
mode=0755
71
72
chgrpcmd=
73
chmodcmd=$chmodprog
74
chowncmd=
75
mvcmd=$mvprog
76
rmcmd="$rmprog -f"
77
stripcmd=
78
79
src=
80
dst=
81
dir_arg=
82
dst_arg=
83
84
copy_on_change=false
85
is_target_a_directory=possibly
86
87
usage="\
88
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
89
   or: $0 [OPTION]... SRCFILES... DIRECTORY
90
   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
91
   or: $0 [OPTION]... -d DIRECTORIES...
92
93
In the 1st form, copy SRCFILE to DSTFILE.
94
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
95
In the 4th, create DIRECTORIES.
96
97
Options:
98
     --help     display this help and exit.
99
     --version  display version info and exit.
100
101
  -c            (ignored)
102
  -C            install only if different (preserve the last data modification time)
103
  -d            create directories instead of installing files.
104
  -g GROUP      $chgrpprog installed files to GROUP.
105
  -m MODE       $chmodprog installed files to MODE.
106
  -o USER       $chownprog installed files to USER.
107
  -s            $stripprog installed files.
108
  -t DIRECTORY  install into DIRECTORY.
109
  -T            report an error if DSTFILE is a directory.
110
111
Environment variables override the default commands:
112
  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
113
  RMPROG STRIPPROG
114
"
115
116
while test $# -ne 0; do
117
  case $1 in
118
    -c) ;;
119
120
    -C) copy_on_change=true;;
121
122
    -d) dir_arg=true;;
123
124
    -g) chgrpcmd="$chgrpprog $2"
125
        shift;;
126
127
    --help) echo "$usage"; exit $?;;
128
129
    -m) mode=$2
130
        case $mode in
131
          *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
132
            echo "$0: invalid mode: $mode" >&2
133
            exit 1;;
134
        esac
135
        shift;;
136
137
    -o) chowncmd="$chownprog $2"
138
        shift;;
139
140
    -s) stripcmd=$stripprog;;
141
142
    -t)
143
        is_target_a_directory=always
144
        dst_arg=$2
145
        # Protect names problematic for 'test' and other utilities.
146
        case $dst_arg in
147
          -* | [=\(\)!]) dst_arg=./$dst_arg;;
148
        esac
149
        shift;;
150
151
    -T) is_target_a_directory=never;;
152
153
    --version) echo "$0 $scriptversion"; exit $?;;
154
155
    --) shift
156
        break;;
157
158
    -*) echo "$0: invalid option: $1" >&2
159
        exit 1;;
160
161
    *)  break;;
162
  esac
163
  shift
164
done
165
166
# We allow the use of options -d and -T together, by making -d
167
# take the precedence; this is for compatibility with GNU install.
168
169
if test -n "$dir_arg"; then
170
  if test -n "$dst_arg"; then
171
    echo "$0: target directory not allowed when installing a directory." >&2
172
    exit 1
173
  fi
174
fi
175
176
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
177
  # When -d is used, all remaining arguments are directories to create.
178
  # When -t is used, the destination is already specified.
179
  # Otherwise, the last argument is the destination.  Remove it from $@.
180
  for arg
181
  do
182
    if test -n "$dst_arg"; then
183
      # $@ is not empty: it contains at least $arg.
184
      set fnord "$@" "$dst_arg"
185
      shift # fnord
186
    fi
187
    shift # arg
188
    dst_arg=$arg
189
    # Protect names problematic for 'test' and other utilities.
190
    case $dst_arg in
191
      -* | [=\(\)!]) dst_arg=./$dst_arg;;
192
    esac
193
  done
194
fi
195
196
if test $# -eq 0; then
197
  if test -z "$dir_arg"; then
198
    echo "$0: no input file specified." >&2
199
    exit 1
200
  fi
201
  # It's OK to call 'install-sh -d' without argument.
202
  # This can happen when creating conditional directories.
203
  exit 0
204
fi
205
206
if test -z "$dir_arg"; then
207
  if test $# -gt 1 || test "$is_target_a_directory" = always; then
208
    if test ! -d "$dst_arg"; then
209
      echo "$0: $dst_arg: Is not a directory." >&2
210
      exit 1
211
    fi
212
  fi
213
fi
214
215
if test -z "$dir_arg"; then
216
  do_exit='(exit $ret); exit $ret'
217
  trap "ret=129; $do_exit" 1
218
  trap "ret=130; $do_exit" 2
219
  trap "ret=141; $do_exit" 13
220
  trap "ret=143; $do_exit" 15
221
222
  # Set umask so as not to create temps with too-generous modes.
223
  # However, 'strip' requires both read and write access to temps.
224
  case $mode in
225
    # Optimize common cases.
226
    *644) cp_umask=133;;
227
    *755) cp_umask=22;;
228
229
    *[0-7])
230
      if test -z "$stripcmd"; then
231
        u_plus_rw=
232
      else
233
        u_plus_rw='% 200'
234
      fi
235
      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
236
    *)
237
      if test -z "$stripcmd"; then
238
        u_plus_rw=
239
      else
240
        u_plus_rw=,u+rw
241
      fi
242
      cp_umask=$mode$u_plus_rw;;
243
  esac
244
fi
245
246
for src
247
do
248
  # Protect names problematic for 'test' and other utilities.
249
  case $src in
250
    -* | [=\(\)!]) src=./$src;;
251
  esac
252
253
  if test -n "$dir_arg"; then
254
    dst=$src
255
    dstdir=$dst
256
    test -d "$dstdir"
257
    dstdir_status=$?
258
  else
259
260
    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
261
    # might cause directories to be created, which would be especially bad
262
    # if $src (and thus $dsttmp) contains '*'.
263
    if test ! -f "$src" && test ! -d "$src"; then
264
      echo "$0: $src does not exist." >&2
265
      exit 1
266
    fi
267
268
    if test -z "$dst_arg"; then
269
      echo "$0: no destination specified." >&2
270
      exit 1
271
    fi
272
    dst=$dst_arg
273
274
    # If destination is a directory, append the input filename.
275
    if test -d "$dst"; then
276
      if test "$is_target_a_directory" = never; then
277
        echo "$0: $dst_arg: Is a directory" >&2
278
        exit 1
279
      fi
280
      dstdir=$dst
281
      dstbase=`basename "$src"`
282
      case $dst in
283
	*/) dst=$dst$dstbase;;
284
	*)  dst=$dst/$dstbase;;
285
      esac
286
      dstdir_status=0
287
    else
288
      dstdir=`dirname "$dst"`
289
      test -d "$dstdir"
290
      dstdir_status=$?
291
    fi
292
  fi
293
294
  case $dstdir in
295
    */) dstdirslash=$dstdir;;
296
    *)  dstdirslash=$dstdir/;;
297
  esac
298
299
  obsolete_mkdir_used=false
300
301
  if test $dstdir_status != 0; then
302
    case $posix_mkdir in
303
      '')
304
        # Create intermediate dirs using mode 755 as modified by the umask.
305
        # This is like FreeBSD 'install' as of 1997-10-28.
306
        umask=`umask`
307
        case $stripcmd.$umask in
308
          # Optimize common cases.
309
          *[2367][2367]) mkdir_umask=$umask;;
310
          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
311
312
          *[0-7])
313
            mkdir_umask=`expr $umask + 22 \
314
              - $umask % 100 % 40 + $umask % 20 \
315
              - $umask % 10 % 4 + $umask % 2
316
            `;;
317
          *) mkdir_umask=$umask,go-w;;
318
        esac
319
320
        # With -d, create the new directory with the user-specified mode.
321
        # Otherwise, rely on $mkdir_umask.
322
        if test -n "$dir_arg"; then
323
          mkdir_mode=-m$mode
324
        else
325
          mkdir_mode=
326
        fi
327
328
        posix_mkdir=false
329
        case $umask in
330
          *[123567][0-7][0-7])
331
            # POSIX mkdir -p sets u+wx bits regardless of umask, which
332
            # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
333
            ;;
334
          *)
335
            # Note that $RANDOM variable is not portable (e.g. dash);  Use it
336
            # here however when possible just to lower collision chance.
337
            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
338
339
            trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
340
341
            # Because "mkdir -p" follows existing symlinks and we likely work
342
            # directly in world-writeable /tmp, make sure that the '$tmpdir'
343
            # directory is successfully created first before we actually test
344
            # 'mkdir -p' feature.
345
            if (umask $mkdir_umask &&
346
                $mkdirprog $mkdir_mode "$tmpdir" &&
347
                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
348
            then
349
              if test -z "$dir_arg" || {
350
                   # Check for POSIX incompatibilities with -m.
351
                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
352
                   # other-writable bit of parent directory when it shouldn't.
353
                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
354
                   test_tmpdir="$tmpdir/a"
355
                   ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
356
                   case $ls_ld_tmpdir in
357
                     d????-?r-*) different_mode=700;;
358
                     d????-?--*) different_mode=755;;
359
                     *) false;;
360
                   esac &&
361
                   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
362
                     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
363
                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
364
                   }
365
                 }
366
              then posix_mkdir=:
367
              fi
368
              rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
369
            else
370
              # Remove any dirs left behind by ancient mkdir implementations.
371
              rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
372
            fi
373
            trap '' 0;;
374
        esac;;
375
    esac
376
377
    if
378
      $posix_mkdir && (
379
        umask $mkdir_umask &&
380
        $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
381
      )
382
    then :
383
    else
384
385
      # The umask is ridiculous, or mkdir does not conform to POSIX,
386
      # or it failed possibly due to a race condition.  Create the
387
      # directory the slow way, step by step, checking for races as we go.
388
389
      case $dstdir in
390
        /*) prefix='/';;
391
        [-=\(\)!]*) prefix='./';;
392
        *)  prefix='';;
393
      esac
394
395
      oIFS=$IFS
396
      IFS=/
397
      set -f
398
      set fnord $dstdir
399
      shift
400
      set +f
401
      IFS=$oIFS
402
403
      prefixes=
404
405
      for d
406
      do
407
        test X"$d" = X && continue
408
409
        prefix=$prefix$d
410
        if test -d "$prefix"; then
411
          prefixes=
412
        else
413
          if $posix_mkdir; then
414
            (umask=$mkdir_umask &&
415
             $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
416
            # Don't fail if two instances are running concurrently.
417
            test -d "$prefix" || exit 1
418
          else
419
            case $prefix in
420
              *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
421
              *) qprefix=$prefix;;
422
            esac
423
            prefixes="$prefixes '$qprefix'"
424
          fi
425
        fi
426
        prefix=$prefix/
427
      done
428
429
      if test -n "$prefixes"; then
430
        # Don't fail if two instances are running concurrently.
431
        (umask $mkdir_umask &&
432
         eval "\$doit_exec \$mkdirprog $prefixes") ||
433
          test -d "$dstdir" || exit 1
434
        obsolete_mkdir_used=true
435
      fi
436
    fi
437
  fi
438
439
  if test -n "$dir_arg"; then
440
    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
441
    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
442
    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
443
      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
444
  else
445
446
    # Make a couple of temp file names in the proper directory.
447
    dsttmp=${dstdirslash}_inst.$$_
448
    rmtmp=${dstdirslash}_rm.$$_
449
450
    # Trap to clean up those temp files at exit.
451
    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
452
453
    # Copy the file name to the temp name.
454
    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
455
456
    # and set any options; do chmod last to preserve setuid bits.
457
    #
458
    # If any of these fail, we abort the whole thing.  If we want to
459
    # ignore errors from any of these, just make sure not to ignore
460
    # errors from the above "$doit $cpprog $src $dsttmp" command.
461
    #
462
    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
463
    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
464
    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
465
    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
466
467
    # If -C, don't bother to copy if it wouldn't change the file.
468
    if $copy_on_change &&
469
       old=`LC_ALL=C ls -dlL "$dst"     2>/dev/null` &&
470
       new=`LC_ALL=C ls -dlL "$dsttmp"  2>/dev/null` &&
471
       set -f &&
472
       set X $old && old=:$2:$4:$5:$6 &&
473
       set X $new && new=:$2:$4:$5:$6 &&
474
       set +f &&
475
       test "$old" = "$new" &&
476
       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
477
    then
478
      rm -f "$dsttmp"
479
    else
480
      # Rename the file to the real destination.
481
      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
482
483
      # The rename failed, perhaps because mv can't rename something else
484
      # to itself, or perhaps because mv is so ancient that it does not
485
      # support -f.
486
      {
487
        # Now remove or move aside any old file at destination location.
488
        # We try this two ways since rm can't unlink itself on some
489
        # systems and the destination file might be busy for other
490
        # reasons.  In this case, the final cleanup might fail but the new
491
        # file should still install successfully.
492
        {
493
          test ! -f "$dst" ||
494
          $doit $rmcmd -f "$dst" 2>/dev/null ||
495
          { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
496
            { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
497
          } ||
498
          { echo "$0: cannot unlink or rename $dst" >&2
499
            (exit 1); exit 1
500
          }
501
        } &&
502
503
        # Now rename the file to the real destination.
504
        $doit $mvcmd "$dsttmp" "$dst"
505
      }
506
    fi || exit 1
507
508
    trap '' 0
509
  fi
510
done
511
512
# Local variables:
513
# eval: (add-hook 'before-save-hook 'time-stamp)
514
# time-stamp-start: "scriptversion="
515
# time-stamp-format: "%:y-%02m-%02d.%02H"
516
# time-stamp-time-zone: "UTC0"
517
# time-stamp-end: "; # UTC"
518
# End:
(-)sysutils/pwol/work/pwol-1.5/aux/missing (+215 lines)
Line 0 Link Here
1
#! /bin/sh
2
# Common wrapper for a few potentially missing GNU programs.
3
4
scriptversion=2018-03-07.03; # UTC
5
6
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
7
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9
# This program is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2, or (at your option)
12
# any later version.
13
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
# GNU General Public License for more details.
18
19
# You should have received a copy of the GNU General Public License
20
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
21
22
# As a special exception to the GNU General Public License, if you
23
# distribute this file as part of a program that contains a
24
# configuration script generated by Autoconf, you may include it under
25
# the same distribution terms that you use for the rest of that program.
26
27
if test $# -eq 0; then
28
  echo 1>&2 "Try '$0 --help' for more information"
29
  exit 1
30
fi
31
32
case $1 in
33
34
  --is-lightweight)
35
    # Used by our autoconf macros to check whether the available missing
36
    # script is modern enough.
37
    exit 0
38
    ;;
39
40
  --run)
41
    # Back-compat with the calling convention used by older automake.
42
    shift
43
    ;;
44
45
  -h|--h|--he|--hel|--help)
46
    echo "\
47
$0 [OPTION]... PROGRAM [ARGUMENT]...
48
49
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
50
to PROGRAM being missing or too old.
51
52
Options:
53
  -h, --help      display this help and exit
54
  -v, --version   output version information and exit
55
56
Supported PROGRAM values:
57
  aclocal   autoconf  autoheader   autom4te  automake  makeinfo
58
  bison     yacc      flex         lex       help2man
59
60
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
61
'g' are ignored when checking the name.
62
63
Send bug reports to <bug-automake@gnu.org>."
64
    exit $?
65
    ;;
66
67
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
68
    echo "missing $scriptversion (GNU Automake)"
69
    exit $?
70
    ;;
71
72
  -*)
73
    echo 1>&2 "$0: unknown '$1' option"
74
    echo 1>&2 "Try '$0 --help' for more information"
75
    exit 1
76
    ;;
77
78
esac
79
80
# Run the given program, remember its exit status.
81
"$@"; st=$?
82
83
# If it succeeded, we are done.
84
test $st -eq 0 && exit 0
85
86
# Also exit now if we it failed (or wasn't found), and '--version' was
87
# passed; such an option is passed most likely to detect whether the
88
# program is present and works.
89
case $2 in --version|--help) exit $st;; esac
90
91
# Exit code 63 means version mismatch.  This often happens when the user
92
# tries to use an ancient version of a tool on a file that requires a
93
# minimum version.
94
if test $st -eq 63; then
95
  msg="probably too old"
96
elif test $st -eq 127; then
97
  # Program was missing.
98
  msg="missing on your system"
99
else
100
  # Program was found and executed, but failed.  Give up.
101
  exit $st
102
fi
103
104
perl_URL=https://www.perl.org/
105
flex_URL=https://github.com/westes/flex
106
gnu_software_URL=https://www.gnu.org/software
107
108
program_details ()
109
{
110
  case $1 in
111
    aclocal|automake)
112
      echo "The '$1' program is part of the GNU Automake package:"
113
      echo "<$gnu_software_URL/automake>"
114
      echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
115
      echo "<$gnu_software_URL/autoconf>"
116
      echo "<$gnu_software_URL/m4/>"
117
      echo "<$perl_URL>"
118
      ;;
119
    autoconf|autom4te|autoheader)
120
      echo "The '$1' program is part of the GNU Autoconf package:"
121
      echo "<$gnu_software_URL/autoconf/>"
122
      echo "It also requires GNU m4 and Perl in order to run:"
123
      echo "<$gnu_software_URL/m4/>"
124
      echo "<$perl_URL>"
125
      ;;
126
  esac
127
}
128
129
give_advice ()
130
{
131
  # Normalize program name to check for.
132
  normalized_program=`echo "$1" | sed '
133
    s/^gnu-//; t
134
    s/^gnu//; t
135
    s/^g//; t'`
136
137
  printf '%s\n' "'$1' is $msg."
138
139
  configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
140
  case $normalized_program in
141
    autoconf*)
142
      echo "You should only need it if you modified 'configure.ac',"
143
      echo "or m4 files included by it."
144
      program_details 'autoconf'
145
      ;;
146
    autoheader*)
147
      echo "You should only need it if you modified 'acconfig.h' or"
148
      echo "$configure_deps."
149
      program_details 'autoheader'
150
      ;;
151
    automake*)
152
      echo "You should only need it if you modified 'Makefile.am' or"
153
      echo "$configure_deps."
154
      program_details 'automake'
155
      ;;
156
    aclocal*)
157
      echo "You should only need it if you modified 'acinclude.m4' or"
158
      echo "$configure_deps."
159
      program_details 'aclocal'
160
      ;;
161
   autom4te*)
162
      echo "You might have modified some maintainer files that require"
163
      echo "the 'autom4te' program to be rebuilt."
164
      program_details 'autom4te'
165
      ;;
166
    bison*|yacc*)
167
      echo "You should only need it if you modified a '.y' file."
168
      echo "You may want to install the GNU Bison package:"
169
      echo "<$gnu_software_URL/bison/>"
170
      ;;
171
    lex*|flex*)
172
      echo "You should only need it if you modified a '.l' file."
173
      echo "You may want to install the Fast Lexical Analyzer package:"
174
      echo "<$flex_URL>"
175
      ;;
176
    help2man*)
177
      echo "You should only need it if you modified a dependency" \
178
           "of a man page."
179
      echo "You may want to install the GNU Help2man package:"
180
      echo "<$gnu_software_URL/help2man/>"
181
    ;;
182
    makeinfo*)
183
      echo "You should only need it if you modified a '.texi' file, or"
184
      echo "any other file indirectly affecting the aspect of the manual."
185
      echo "You might want to install the Texinfo package:"
186
      echo "<$gnu_software_URL/texinfo/>"
187
      echo "The spurious makeinfo call might also be the consequence of"
188
      echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
189
      echo "want to install GNU make:"
190
      echo "<$gnu_software_URL/make/>"
191
      ;;
192
    *)
193
      echo "You might have modified some files without having the proper"
194
      echo "tools for further handling them.  Check the 'README' file, it"
195
      echo "often tells you about the needed prerequisites for installing"
196
      echo "this package.  You may also peek at any GNU archive site, in"
197
      echo "case some other package contains this missing '$1' program."
198
      ;;
199
  esac
200
}
201
202
give_advice "$1" | sed -e '1s/^/WARNING: /' \
203
                       -e '2,$s/^/         /' >&2
204
205
# Propagate the correct exit status (expected to be 127 for a program
206
# not found, 63 for a program that failed due to version mismatch).
207
exit $st
208
209
# Local variables:
210
# eval: (add-hook 'before-save-hook 'time-stamp)
211
# time-stamp-start: "scriptversion="
212
# time-stamp-format: "%:y-%02m-%02d.%02H"
213
# time-stamp-time-zone: "UTC0"
214
# time-stamp-end: "; # UTC"
215
# End:
(-)sysutils/pwol/work/pwol-1.5/config.h (+136 lines)
Line 0 Link Here
1
/* config.h.  Generated from config.h.in by configure.  */
2
/* config.h.in.  Generated from configure.ac by autoheader.  */
3
4
/* Define to 1 if you have the <arpa/inet.h> header file. */
5
#define HAVE_ARPA_INET_H 1
6
7
/* Define to 1 if you have the `dup2' function. */
8
#define HAVE_DUP2 1
9
10
/* Define to 1 if you have the <fcntl.h> header file. */
11
#define HAVE_FCNTL_H 1
12
13
/* Define to 1 if you have the `fork' function. */
14
#define HAVE_FORK 1
15
16
/* Define to 1 if you have the <inttypes.h> header file. */
17
#define HAVE_INTTYPES_H 1
18
19
/* Define to 1 if you have the `nsl' library (-lnsl). */
20
/* #undef HAVE_LIBNSL */
21
22
/* Define to 1 if you have the `pthread' library (-lpthread). */
23
#define HAVE_LIBPTHREAD 1
24
25
/* Define to 1 if you have the `socket' library (-lsocket). */
26
/* #undef HAVE_LIBSOCKET */
27
28
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
29
   to 0 otherwise. */
30
#define HAVE_MALLOC 1
31
32
/* Define to 1 if you have the <memory.h> header file. */
33
#define HAVE_MEMORY_H 1
34
35
/* Define to 1 if you have the `memset' function. */
36
#define HAVE_MEMSET 1
37
38
/* Define to 1 if you have the <netdb.h> header file. */
39
#define HAVE_NETDB_H 1
40
41
/* Define to 1 if you have the <netinet/in.h> header file. */
42
#define HAVE_NETINET_IN_H 1
43
44
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
45
   and to 0 otherwise. */
46
#define HAVE_REALLOC 1
47
48
/* Define to 1 if you have the `socket' function. */
49
#define HAVE_SOCKET 1
50
51
/* Define to 1 if you have the <stdint.h> header file. */
52
#define HAVE_STDINT_H 1
53
54
/* Define to 1 if you have the <stdlib.h> header file. */
55
#define HAVE_STDLIB_H 1
56
57
/* Define to 1 if you have the `strchr' function. */
58
#define HAVE_STRCHR 1
59
60
/* Define to 1 if you have the `strdup' function. */
61
#define HAVE_STRDUP 1
62
63
/* Define to 1 if you have the `strerror' function. */
64
#define HAVE_STRERROR 1
65
66
/* Define to 1 if you have the <strings.h> header file. */
67
#define HAVE_STRINGS_H 1
68
69
/* Define to 1 if you have the <string.h> header file. */
70
#define HAVE_STRING_H 1
71
72
/* Define to 1 if you have the <syslog.h> header file. */
73
#define HAVE_SYSLOG_H 1
74
75
/* Define to 1 if you have the <sys/socket.h> header file. */
76
#define HAVE_SYS_SOCKET_H 1
77
78
/* Define to 1 if you have the <sys/stat.h> header file. */
79
#define HAVE_SYS_STAT_H 1
80
81
/* Define to 1 if you have the <sys/types.h> header file. */
82
#define HAVE_SYS_TYPES_H 1
83
84
/* Define to 1 if you have the <unistd.h> header file. */
85
#define HAVE_UNISTD_H 1
86
87
/* Define to 1 if you have the `vfork' function. */
88
#define HAVE_VFORK 1
89
90
/* Define to 1 if you have the <vfork.h> header file. */
91
/* #undef HAVE_VFORK_H */
92
93
/* Define to 1 if `fork' works. */
94
#define HAVE_WORKING_FORK 1
95
96
/* Define to 1 if `vfork' works. */
97
#define HAVE_WORKING_VFORK 1
98
99
/* Define to the address where bug reports for this package should be sent. */
100
#define PACKAGE_BUGREPORT "pen@lysator.liu.se"
101
102
/* Define to the full name of this package. */
103
#define PACKAGE_NAME "pwol"
104
105
/* Define to the full name and version of this package. */
106
#define PACKAGE_STRING "pwol 1.5"
107
108
/* Define to the one symbol short name of this package. */
109
#define PACKAGE_TARNAME "pwol"
110
111
/* Define to the home page for this package. */
112
#define PACKAGE_URL "https://github.com/ptrrkssn/pwol"
113
114
/* Define to the version of this package. */
115
#define PACKAGE_VERSION "1.5"
116
117
/* Define to 1 if you have the ANSI C header files. */
118
#define STDC_HEADERS 1
119
120
/* Define to rpl_malloc if the replacement function should be used. */
121
/* #undef malloc */
122
123
/* Define to `int' if <sys/types.h> does not define. */
124
/* #undef pid_t */
125
126
/* Define to rpl_realloc if the replacement function should be used. */
127
/* #undef realloc */
128
129
/* Define to `unsigned int' if <sys/types.h> does not define. */
130
/* #undef size_t */
131
132
/* Define to `int' if <sys/types.h> does not define. */
133
/* #undef ssize_t */
134
135
/* Define as `fork' if `vfork' does not work. */
136
/* #undef vfork */
(-)sysutils/pwol/work/pwol-1.5/config.h.in (+135 lines)
Line 0 Link Here
1
/* config.h.in.  Generated from configure.ac by autoheader.  */
2
3
/* Define to 1 if you have the <arpa/inet.h> header file. */
4
#undef HAVE_ARPA_INET_H
5
6
/* Define to 1 if you have the `dup2' function. */
7
#undef HAVE_DUP2
8
9
/* Define to 1 if you have the <fcntl.h> header file. */
10
#undef HAVE_FCNTL_H
11
12
/* Define to 1 if you have the `fork' function. */
13
#undef HAVE_FORK
14
15
/* Define to 1 if you have the <inttypes.h> header file. */
16
#undef HAVE_INTTYPES_H
17
18
/* Define to 1 if you have the `nsl' library (-lnsl). */
19
#undef HAVE_LIBNSL
20
21
/* Define to 1 if you have the `pthread' library (-lpthread). */
22
#undef HAVE_LIBPTHREAD
23
24
/* Define to 1 if you have the `socket' library (-lsocket). */
25
#undef HAVE_LIBSOCKET
26
27
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
28
   to 0 otherwise. */
29
#undef HAVE_MALLOC
30
31
/* Define to 1 if you have the <memory.h> header file. */
32
#undef HAVE_MEMORY_H
33
34
/* Define to 1 if you have the `memset' function. */
35
#undef HAVE_MEMSET
36
37
/* Define to 1 if you have the <netdb.h> header file. */
38
#undef HAVE_NETDB_H
39
40
/* Define to 1 if you have the <netinet/in.h> header file. */
41
#undef HAVE_NETINET_IN_H
42
43
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
44
   and to 0 otherwise. */
45
#undef HAVE_REALLOC
46
47
/* Define to 1 if you have the `socket' function. */
48
#undef HAVE_SOCKET
49
50
/* Define to 1 if you have the <stdint.h> header file. */
51
#undef HAVE_STDINT_H
52
53
/* Define to 1 if you have the <stdlib.h> header file. */
54
#undef HAVE_STDLIB_H
55
56
/* Define to 1 if you have the `strchr' function. */
57
#undef HAVE_STRCHR
58
59
/* Define to 1 if you have the `strdup' function. */
60
#undef HAVE_STRDUP
61
62
/* Define to 1 if you have the `strerror' function. */
63
#undef HAVE_STRERROR
64
65
/* Define to 1 if you have the <strings.h> header file. */
66
#undef HAVE_STRINGS_H
67
68
/* Define to 1 if you have the <string.h> header file. */
69
#undef HAVE_STRING_H
70
71
/* Define to 1 if you have the <syslog.h> header file. */
72
#undef HAVE_SYSLOG_H
73
74
/* Define to 1 if you have the <sys/socket.h> header file. */
75
#undef HAVE_SYS_SOCKET_H
76
77
/* Define to 1 if you have the <sys/stat.h> header file. */
78
#undef HAVE_SYS_STAT_H
79
80
/* Define to 1 if you have the <sys/types.h> header file. */
81
#undef HAVE_SYS_TYPES_H
82
83
/* Define to 1 if you have the <unistd.h> header file. */
84
#undef HAVE_UNISTD_H
85
86
/* Define to 1 if you have the `vfork' function. */
87
#undef HAVE_VFORK
88
89
/* Define to 1 if you have the <vfork.h> header file. */
90
#undef HAVE_VFORK_H
91
92
/* Define to 1 if `fork' works. */
93
#undef HAVE_WORKING_FORK
94
95
/* Define to 1 if `vfork' works. */
96
#undef HAVE_WORKING_VFORK
97
98
/* Define to the address where bug reports for this package should be sent. */
99
#undef PACKAGE_BUGREPORT
100
101
/* Define to the full name of this package. */
102
#undef PACKAGE_NAME
103
104
/* Define to the full name and version of this package. */
105
#undef PACKAGE_STRING
106
107
/* Define to the one symbol short name of this package. */
108
#undef PACKAGE_TARNAME
109
110
/* Define to the home page for this package. */
111
#undef PACKAGE_URL
112
113
/* Define to the version of this package. */
114
#undef PACKAGE_VERSION
115
116
/* Define to 1 if you have the ANSI C header files. */
117
#undef STDC_HEADERS
118
119
/* Define to rpl_malloc if the replacement function should be used. */
120
#undef malloc
121
122
/* Define to `int' if <sys/types.h> does not define. */
123
#undef pid_t
124
125
/* Define to rpl_realloc if the replacement function should be used. */
126
#undef realloc
127
128
/* Define to `unsigned int' if <sys/types.h> does not define. */
129
#undef size_t
130
131
/* Define to `int' if <sys/types.h> does not define. */
132
#undef ssize_t
133
134
/* Define as `fork' if `vfork' does not work. */
135
#undef vfork
(-)sysutils/pwol/work/pwol-1.5/config.log (+2621 lines)
Line 0 Link Here
1
This file contains any messages produced by compilers while
2
running configure, to aid debugging if configure makes a mistake.
3
4
It was created by pwol configure 1.5, which was
5
generated by GNU Autoconf 2.69.  Invocation command line was
6
7
  $ ./configure --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd11.3
8
9
## --------- ##
10
## Platform. ##
11
## --------- ##
12
13
hostname = filur00
14
uname -m = amd64
15
uname -r = 11.3-RELEASE-p10
16
uname -s = FreeBSD
17
uname -v = FreeBSD 11.3-RELEASE-p10 #0: Tue Jun  9 08:49:05 UTC 2020     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
18
19
/usr/bin/uname -p = amd64
20
/bin/uname -X     = unknown
21
22
/bin/arch              = unknown
23
/usr/bin/arch -k       = unknown
24
/usr/convex/getsysinfo = unknown
25
/usr/bin/hostinfo      = unknown
26
/bin/machine           = unknown
27
/usr/bin/oslevel       = unknown
28
/bin/universe          = unknown
29
30
PATH: /usr/ports/sysutils/pwol/work/.bin
31
PATH: /sbin
32
PATH: /bin
33
PATH: /usr/sbin
34
PATH: /usr/bin
35
PATH: /usr/local/sbin
36
PATH: /usr/local/bin
37
PATH: /root/bin
38
39
40
## ----------- ##
41
## Core tests. ##
42
## ----------- ##
43
44
configure:2049: loading site script /usr/ports/Templates/config.site
45
| # $FreeBSD: head/Templates/config.site 535001 2020-05-12 18:15:06Z antoine $
46
| # Do not add:
47
| #	- toolchain related
48
| #	- arch-dependent values
49
| #	- anything "=no" unless guaranteed to never be
50
| #	  implemented in FreeBSD
51
| #	- also avoid "working" values
52
| # This file must reflect the oldest supported Release.
53
| #
54
| #MAINTAINER=	portmgr@FreeBSD.org
55
| 
56
| # Path
57
| : ${ac_cv_path_BZIP2=/usr/bin/bzip2}
58
| : ${ac_cv_path_EGREP=/usr/bin/egrep}
59
| : ${ac_cv_path_FGREP=/usr/bin/fgrep}
60
| : ${ac_cv_path_GREP=/usr/bin/grep}
61
| : ${ac_cv_path_GZIP=/usr/bin/gzip}
62
| : ${ac_cv_path_MKTEMP_COMMAND=/usr/bin/mktemp}
63
| : ${ac_cv_path_SED=/usr/bin/sed}
64
| : ${ac_cv_path_install=/usr/bin/install}
65
| : ${ac_cv_path_mkdir=/bin/mkdir}
66
| : ${ac_cv_prog_AWK=/usr/bin/awk}
67
| : ${ac_cv_prog_SED=/usr/bin/sed}
68
| : ${am_cv_prog_tar_ustar=/usr/bin/tar}
69
| : ${cl_cv_prog_LN=/bin/ln}
70
| : ${cl_cv_prog_cp='/bin/cp -p'}
71
| : ${lt_cv_path_MAGIC_CMD=/usr/bin/file}
72
| 
73
| # Headers
74
| : ${ac_cv_header_alloca_h=no}
75
| : ${ac_cv_header_arpa_inet_h=yes}
76
| : ${ac_cv_header_arpa_nameser_h=yes}
77
| : ${ac_cv_header_ctype_h=yes}
78
| : ${ac_cv_header_dirent_h=yes}
79
| : ${ac_cv_header_dlfcn_h=yes}
80
| : ${ac_cv_header_elf_h=yes}
81
| : ${ac_cv_header_err_h=yes}
82
| : ${ac_cv_header_errno_h=yes}
83
| : ${ac_cv_header_fcntl_h=yes}
84
| : ${ac_cv_header_float_h=yes}
85
| : ${ac_cv_header_floatingpoint_h=yes}
86
| : ${ac_cv_header_getopt_h=yes}
87
| : ${ac_cv_header_glob_h=yes}
88
| : ${ac_cv_header_inttypes_h=yes}
89
| : ${ac_cv_header_langinfo_h=yes}
90
| : ${ac_cv_header_libgen_h=yes}
91
| : ${ac_cv_header_libutil_h=yes}
92
| : ${ac_cv_header_limits_h=yes}
93
| : ${ac_cv_header_locale_h=yes}
94
| : ${ac_cv_header_login_cap_h=yes}
95
| : ${ac_cv_header_math_h=yes}
96
| : ${ac_cv_header_memory_h=yes}
97
| : ${ac_cv_header_minix_config_h=no}
98
| : ${ac_cv_header_net_if_h=yes}
99
| : ${ac_cv_header_net_if_media_h=yes}
100
| : ${ac_cv_header_net_if_tap_h=yes}
101
| : ${ac_cv_header_net_if_tun_h=yes}
102
| : ${ac_cv_header_netdb_h=yes}
103
| : ${ac_cv_header_netinet_in_h=yes}
104
| : ${ac_cv_header_paths_h=yes}
105
| : ${ac_cv_header_poll_h=yes}
106
| : ${ac_cv_header_pthread_h=yes}
107
| : ${ac_cv_header_pwd_h=yes}
108
| : ${ac_cv_header_readpassphrase_h=yes}
109
| : ${ac_cv_header_resolv_h=yes}
110
| : ${ac_cv_header_rpc_types_h=yes}
111
| : ${ac_cv_header_sched_h=yes}
112
| : ${ac_cv_header_search_h=yes}
113
| : ${ac_cv_header_security_pam_appl_h=yes}
114
| : ${ac_cv_header_signal_h=yes}
115
| : ${ac_cv_header_spawn_h=yes}
116
| : ${ac_cv_header_stdarg_h=yes}
117
| : ${ac_cv_header_stdbool_h=yes}
118
| : ${ac_cv_header_stdc=yes}
119
| : ${ac_cv_header_stddef_h=yes}
120
| : ${ac_cv_header_stdint_h=yes}
121
| : ${ac_cv_header_stdio_h=yes}
122
| : ${ac_cv_header_stdlib_h=yes}
123
| : ${ac_cv_header_string_h=yes}
124
| : ${ac_cv_header_strings_h=yes}
125
| : ${ac_cv_header_sys_acl_h=yes}
126
| : ${ac_cv_header_sys_cdefs_h=yes}
127
| : ${ac_cv_header_sys_fcntl_h=yes}
128
| : ${ac_cv_header_sys_file_h=yes}
129
| : ${ac_cv_header_sys_ioctl_h=yes}
130
| : ${ac_cv_header_sys_mman_h=yes}
131
| : ${ac_cv_header_sys_mount_h=yes}
132
| : ${ac_cv_header_sys_msg_h=yes}
133
| : ${ac_cv_header_sys_param_h=yes}
134
| : ${ac_cv_header_sys_poll_h=yes}
135
| : ${ac_cv_header_sys_ptrace_h=yes}
136
| : ${ac_cv_header_sys_resource_h=yes}
137
| : ${ac_cv_header_sys_select_h=yes}
138
| : ${ac_cv_header_sys_socket_h=yes}
139
| : ${ac_cv_header_sys_stat_h=yes}
140
| : ${ac_cv_header_sys_statvfs_h=yes}
141
| : ${ac_cv_header_sys_sysctl_h=yes}
142
| : ${ac_cv_header_sys_time_h=yes}
143
| : ${ac_cv_header_sys_timers_h=yes}
144
| : ${ac_cv_header_sys_times_h=yes}
145
| : ${ac_cv_header_sys_types_h=yes}
146
| : ${ac_cv_header_sys_uio_h=yes}
147
| : ${ac_cv_header_sys_un_h=yes}
148
| : ${ac_cv_header_sys_wait_h=yes}
149
| : ${ac_cv_header_time_h=yes}
150
| : ${ac_cv_header_ttyent_h=yes}
151
| : ${ac_cv_header_ucontext_h=yes}
152
| : ${ac_cv_header_unistd_h=yes}
153
| : ${ac_cv_header_utime_h=yes}
154
| : ${ac_cv_header_utmpx_h=yes}
155
| : ${ac_cv_header_utmp_h=no}
156
| : ${ac_cv_header_vis_h=yes}
157
| : ${ac_cv_header_wchar_h=yes}
158
| : ${ac_cv_header_wctype_h=yes}
159
| : ${ac_cv_header_zlib_h=yes}
160
| 
161
| : ${gl_cv_header_wchar_h_correct_inline=yes}
162
| 
163
| : ${ac_cv_header_argz_h=no}
164
| : ${ac_cv_header_byteswap_h=no}
165
| : ${ac_cv_header_dl_h=no}
166
| : ${ac_cv_header_random_h=no}
167
| : ${ac_cv_header_vfork_h=no}
168
| 
169
| : ${gl_cv_have_raw_decl_strchrnul=yes}
170
| : ${gl_cv_have_raw_decl_memcpy=no}
171
| : ${gl_cv_have_raw_decl_memmem=yes}
172
| : ${gl_cv_have_raw_decl_memrchr=yes}
173
| : ${gl_cv_have_raw_decl_rawmemchr=yes}
174
| : ${gl_cv_have_raw_decl_stpcpy=yes}
175
| : ${gl_cv_have_raw_decl_stpncpy=yes}
176
| : ${gl_cv_have_raw_decl_strcasestr=yes}
177
| : ${gl_cv_have_raw_decl_strdup=yes}
178
| : ${gl_cv_have_raw_decl_strncat=yes}
179
| : ${gl_cv_have_raw_decl_strndup=yes}
180
| : ${gl_cv_have_raw_decl_strnlen=yes}
181
| : ${gl_cv_have_raw_decl_strpbrk=yes}
182
| : ${gl_cv_have_raw_decl_strsep=yes}
183
| : ${gl_cv_have_raw_decl_strsignal=yes}
184
| : ${gl_cv_have_raw_decl_strtok_r=yes}
185
| : ${gl_cv_have_raw_decl_strverscmp=no}
186
| 
187
| # Type
188
| : ${ac_cv_c_int16_t=yes}
189
| : ${ac_cv_c_int32_t=yes}
190
| : ${ac_cv_c_int64_t=yes}
191
| : ${ac_cv_c_int8_t=yes}
192
| : ${ac_cv_c_uint16_t=yes}
193
| : ${ac_cv_c_uint32_t=yes}
194
| : ${ac_cv_c_uint64_t=yes}
195
| : ${ac_cv_c_uint8_t=yes}
196
| 
197
| : ${ac_cv_type__Bool=yes}
198
| : ${ac_cv_type_char=yes}
199
| : ${ac_cv_type_char_p=yes}
200
| : ${ac_cv_type_fsblkcnt_t=yes}
201
| : ${ac_cv_type_fsfilcnt_t=yes}
202
| : ${ac_cv_type_in_addr_t=yes}
203
| : ${ac_cv_type_in_port_t=yes}
204
| : ${ac_cv_type_int16_t=yes}
205
| : ${ac_cv_type_int32_t=yes}
206
| : ${ac_cv_type_int=yes}
207
| : ${ac_cv_type_intmax_t=yes}
208
| : ${ac_cv_type_long=yes}
209
| : ${ac_cv_type_long_double=yes}
210
| : ${ac_cv_type_long_long=yes}
211
| : ${ac_cv_type_long_long_int=yes}
212
| : ${ac_cv_type_mbstate_t=yes}
213
| : ${ac_cv_type_mode_t=yes}
214
| : ${ac_cv_type_nlink_t=yes}
215
| : ${ac_cv_type_off_t=yes}
216
| : ${ac_cv_type_pid_t=yes}
217
| : ${ac_cv_type_posix_spawn_file_actions_t=yes}
218
| : ${ac_cv_type_posix_spawnattr_t=yes}
219
| : ${ac_cv_type_ptrdiff_t=yes}
220
| : ${ac_cv_type_short=yes}
221
| : ${ac_cv_type_sig_atomic_t=yes}
222
| : ${ac_cv_type_sigset_t=yes}
223
| : ${ac_cv_type_size_t=yes}
224
| : ${ac_cv_type_socklen_t=yes}
225
| : ${ac_cv_type_ssize_t=yes}
226
| : ${ac_cv_type_stack_t=yes}
227
| : ${ac_cv_type_struct_timespec=yes}
228
| : ${ac_cv_type_u_char=yes}
229
| : ${ac_cv_type_u_int16_t=yes}
230
| : ${ac_cv_type_u_int32_t=yes}
231
| : ${ac_cv_type_u_int8_t=yes}
232
| : ${ac_cv_type_u_int=yes}
233
| : ${ac_cv_type_u_long=yes}
234
| : ${ac_cv_type_u_short=yes}
235
| : ${ac_cv_type_uid_t=yes}
236
| : ${ac_cv_type_uintptr_t=yes}
237
| : ${ac_cv_type_unsigned_char=yes}
238
| : ${ac_cv_type_unsigned_int=yes}
239
| : ${ac_cv_type_unsigned_long=yes}
240
| : ${ac_cv_type_unsigned_long_long=yes}
241
| : ${ac_cv_type_unsigned_long_long_int=yes}
242
| : ${ac_cv_type_unsigned_short=yes}
243
| : ${ac_cv_type_volatile_sig_atomic_t=yes}
244
| : ${ac_cv_type_wchar_t=yes}
245
| : ${ac_cv_type_wint_t=yes}
246
| 
247
| : ${gl_cv_sigaltstack_low_base=yes}
248
| : ${gl_cv_size_max=yes}
249
| : ${gl_cv_type_sigset_t=yes}
250
| : ${gl_cv_type_wchar_t_signed=yes}
251
| : ${gl_cv_type_wctrans_t=yes}
252
| : ${gl_cv_type_wctype_t=yes}
253
| : ${gl_cv_type_wint_t_signed=yes}
254
| : ${gl_cv_var_stdin_large_offset=yes}
255
| : ${gt_cv_c_intmax_t=yes}
256
| : ${gt_cv_c_wchar_t=yes}
257
| : ${gt_cv_c_wint_t=yes}
258
| : ${gt_cv_func_printf_posix=yes}
259
| : ${gt_cv_int_divbyzero_sigfpe=yes}
260
| : ${gt_cv_siginfo_t=yes}
261
| : ${gt_cv_ssize_t=yes}
262
| 
263
| # lib
264
| : ${ac_cv_lib_crypt_crypt=yes}
265
| : ${ac_cv_lib_edit_el_init=yes}
266
| : ${ac_cv_lib_pam_pam_set_item=yes}
267
| : ${ac_cv_lib_z_deflate=yes}
268
| : ${ac_cv_libc_defines___progname=yes}
269
| : ${ac_cv_libc_defines_sys_errlist=yes}
270
| : ${ac_cv_libc_defines_sys_nerr=yes}
271
| 
272
| # Struct
273
| : ${ac_cv_member_HEADER_ad=yes}
274
| : ${ac_cv_member_struct___res_state_retrans=yes}
275
| : ${ac_cv_member_struct_sigaction_sa_sigaction=yes}
276
| : ${ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes}
277
| : ${ac_cv_member_struct_stat_st_blksize=yes}
278
| 
279
| : ${gl_cv_sys_struct_timespec_in_time_h=yes}
280
| : ${gl_cv_sys_struct_timeval=yes}
281
| 
282
| : ${ac_cv_func_strchrnul=yes}
283
| : ${ac_cv_func_uselocale=yes}
284
| : ${ac_cv_func_newlocale=yes}
285
| 
286
| # Functions
287
| : ${ac_cv_func___b64_ntop=yes}
288
| : ${ac_cv_func___b64_pton=yes}
289
| : ${ac_cv_func__getlong=yes}
290
| : ${ac_cv_func__getshort=yes}
291
| : ${ac_cv_func__getshort=yes}
292
| : ${ac_cv_func__stat=yes}
293
| : ${ac_cv_func_abs=yes}
294
| : ${ac_cv_func_accept=yes}
295
| : ${ac_cv_func_accept4=yes}
296
| : ${ac_cv_func_acl_create_entry_np=yes}
297
| : ${ac_cv_func_acl_delete_def_file=yes}
298
| : ${ac_cv_func_acl_delete_fd_np=yes}
299
| : ${ac_cv_func_acl_delete_file_np=yes}
300
| : ${ac_cv_func_acl_free=yes}
301
| : ${ac_cv_func_acl_from_text=yes}
302
| : ${ac_cv_func_acl_get_fd=yes}
303
| : ${ac_cv_func_acl_get_file=yes}
304
| : ${ac_cv_func_acl_set_fd=yes}
305
| : ${ac_cv_func_acl_set_file=yes}
306
| : ${ac_cv_func_alarm=yes}
307
| : ${ac_cv_func_alloca=yes}
308
| : ${ac_cv_func_alphasort=yes}
309
| : ${ac_cv_func_arc4random=yes}
310
| : ${ac_cv_func_arc4random_buf=yes}
311
| : ${ac_cv_func_arc4random_uniform=yes}
312
| : ${ac_cv_func_asprintf=yes}
313
| : ${ac_cv_func_atexit=yes}
314
| : ${ac_cv_func_atoll=yes}
315
| : ${ac_cv_func_basename=yes}
316
| : ${ac_cv_func_bcmp=yes}
317
| : ${ac_cv_func_bcopy=yes}
318
| : ${ac_cv_func_bindresvport_sa=yes}
319
| : ${ac_cv_func_bsearch=yes}
320
| : ${ac_cv_func_btowc=yes}
321
| : ${ac_cv_func_bzero=yes}
322
| : ${ac_cv_func_calloc=yes}
323
| : ${ac_cv_func_chown=yes}
324
| : ${ac_cv_func_clock=yes}
325
| : ${ac_cv_func_clock_gettime=yes}
326
| : ${ac_cv_func_closedir=yes}
327
| : ${ac_cv_func_closefrom=yes}
328
| : ${ac_cv_func_daemon=yes}
329
| : ${ac_cv_func_dirfd=yes}
330
| : ${ac_cv_func_dirname=yes}
331
| : ${ac_cv_func_dlopen=yes}
332
| : ${ac_cv_func_dprintf=yes}
333
| : ${ac_cv_func_dup2=yes}
334
| : ${ac_cv_func_eaccess=yes}
335
| : ${ac_cv_func_endgrent=yes}
336
| : ${ac_cv_func_err=yes}
337
| : ${ac_cv_func_errx=yes}
338
| : ${ac_cv_func_fchmod=yes}
339
| : ${ac_cv_func_fchown=yes}
340
| : ${ac_cv_func_fcntl=yes}
341
| : ${ac_cv_func_ffs=yes}
342
| : ${ac_cv_func_ffsl=yes}
343
| : ${ac_cv_func_ffsll=yes}
344
| : ${ac_cv_func_fileno=yes}
345
| : ${ac_cv_func_fls=yes}
346
| : ${ac_cv_func_flsl=yes}
347
| : ${ac_cv_func_flsll=yes}
348
| : ${ac_cv_func_fork=yes}
349
| : ${ac_cv_func_fork_working=yes}
350
| : ${ac_cv_func_fprintf=yes}
351
| : ${ac_cv_func_fpurge=yes}
352
| : ${ac_cv_func_freeaddrinfo=yes}
353
| : ${ac_cv_func_fstat=yes}
354
| : ${ac_cv_func_fstatat=yes}
355
| : ${ac_cv_func_fstatfs=yes}
356
| : ${ac_cv_func_fstatvfs=yes}
357
| : ${ac_cv_func_fsync=yes}
358
| : ${ac_cv_func_futimes=yes}
359
| : ${ac_cv_func_fwprintf=yes}
360
| : ${ac_cv_func_gai_strerror=yes}
361
| : ${ac_cv_func_getaddrinfo=yes}
362
| : ${ac_cv_func_getcwd=yes}
363
| : ${ac_cv_func_getdelim=yes}
364
| : ${ac_cv_func_getdtablesize=yes}
365
| : ${ac_cv_func_getgrent=yes}
366
| : ${ac_cv_func_getegid=yes}
367
| : ${ac_cv_func_getenv=yes}
368
| : ${ac_cv_func_geteuid=yes}
369
| : ${ac_cv_func_getgid=yes}
370
| : ${ac_cv_func_getgrouplist=yes}
371
| : ${ac_cv_func_gethostbyname=yes}
372
| : ${ac_cv_func_gethostname=yes}
373
| : ${ac_cv_func_getline=yes}
374
| : ${ac_cv_func_getnameinfo=yes}
375
| : ${ac_cv_func_getopt=yes}
376
| : ${ac_cv_func_getopt_long_only=yes}
377
| : ${ac_cv_func_getpagesize=yes}
378
| : ${ac_cv_func_getpeereid=yes}
379
| : ${ac_cv_func_getpgid=yes}
380
| : ${ac_cv_func_getpgrp=yes}
381
| : ${ac_cv_func_getpgrp_void=yes}
382
| : ${ac_cv_func_getpid=yes}
383
| : ${ac_cv_func_getrlimit=yes}
384
| : ${ac_cv_func_getrusage=yes}
385
| : ${ac_cv_func_gettimeofday=yes}
386
| : ${ac_cv_func_getttyent=yes}
387
| : ${ac_cv_func_getuid=yes}
388
| : ${ac_cv_func_getwd=yes}
389
| : ${ac_cv_func_glob=yes}
390
| : ${ac_cv_func_group_from_gid=yes}
391
| : ${ac_cv_func_index=yes}
392
| : ${ac_cv_func_inet_aton=yes}
393
| : ${ac_cv_func_inet_ntoa=yes}
394
| : ${ac_cv_func_inet_ntop=yes}
395
| : ${ac_cv_func_innetgr=yes}
396
| : ${ac_cv_func_insque=yes}
397
| : ${ac_cv_func_isascii=yes}
398
| : ${ac_cv_func_isascii=yes}
399
| : ${ac_cv_func_isblank=yes}
400
| : ${ac_cv_func_issetugid=yes}
401
| : ${ac_cv_func_iswblank=yes}
402
| : ${ac_cv_func_iswcntrl=yes}
403
| : ${ac_cv_func_iswctype=yes}
404
| : ${ac_cv_func_kill=yes}
405
| : ${ac_cv_func_killpg=yes}
406
| : ${ac_cv_func_link=yes}
407
| : ${ac_cv_func_labs=yes}
408
| : ${ac_cv_func_llabs=yes}
409
| : ${ac_cv_func_localtime=yes}
410
| : ${ac_cv_func_login_getcapbool=yes}
411
| : ${ac_cv_func_lstat=yes}
412
| : ${ac_cv_func_lstat_dereferences_slashed_symlink=yes}
413
| : ${ac_cv_func_malloc=yes}
414
| : ${ac_cv_func_malloc_0_nonnull=yes}
415
| : ${ac_cv_func_mblen=yes}
416
| : ${ac_cv_func_mbrlen=yes}
417
| : ${ac_cv_func_mbrtowc=yes}
418
| : ${ac_cv_func_mbsinit=yes}
419
| : ${ac_cv_func_mbsnrtowcs=yes}
420
| : ${ac_cv_func_mbsrtowcs=yes}
421
| : ${ac_cv_func_mbstowcs=yes}
422
| : ${ac_cv_func_mbtowc=yes}
423
| : ${ac_cv_func_memchr=yes}
424
| : ${ac_cv_func_memcmp=yes}
425
| : ${ac_cv_func_memcpy=yes}
426
| : ${ac_cv_func_memmove=yes}
427
| : ${ac_cv_func_memset=yes}
428
| : ${ac_cv_func_mincore=yes}
429
| : ${ac_cv_func_mkdtemp=yes}
430
| : ${ac_cv_func_mkstemp=yes}
431
| : ${ac_cv_func_mkstemps=yes}
432
| : ${ac_cv_func_mktemp=yes}
433
| : ${ac_cv_func_mktemps=yes}
434
| : ${ac_cv_func_mlock=yes}
435
| : ${ac_cv_func_mmap=yes}
436
| : ${ac_cv_func_mmap_fixed_mapped=yes}
437
| : ${ac_cv_func_mprotect=yes}
438
| : ${ac_cv_func_munlock=yes}
439
| : ${ac_cv_func_munmap=yes}
440
| : ${ac_cv_func_nl_langinfo=yes}
441
| : ${ac_cv_func_opendir=yes}
442
| : ${ac_cv_func_pam_getenvlist=yes}
443
| : ${ac_cv_func_pam_putenv=yes}
444
| : ${ac_cv_func_pathconf=yes}
445
| : ${ac_cv_func_pipe=yes}
446
| : ${ac_cv_func_poll=yes}
447
| : ${ac_cv_func_posix_spawn=yes}
448
| : ${ac_cv_func_pread=yes}
449
| : ${ac_cv_func_printf=yes}
450
| : ${ac_cv_func_psignal=yes}
451
| : ${ac_cv_func_pthread_cond_broadcast=yes}
452
| : ${ac_cv_func_pthread_cond_destroy=yes}
453
| : ${ac_cv_func_pthread_cond_init=yes}
454
| : ${ac_cv_func_pthread_cond_signal=yes}
455
| : ${ac_cv_func_pthread_cond_timedwait=yes}
456
| : ${ac_cv_func_pthread_cond_wait=yes}
457
| : ${ac_cv_func_pthread_equal=yes}
458
| : ${ac_cv_func_pthread_exit=yes}
459
| : ${ac_cv_func_pthread_mutex_destroy=yes}
460
| : ${ac_cv_func_pthread_mutex_init=yes}
461
| : ${ac_cv_func_pthread_mutex_lock=yes}
462
| : ${ac_cv_func_pthread_mutex_unlock=yes}
463
| : ${ac_cv_func_pthread_self=yes}
464
| : ${ac_cv_func_putc=yes}
465
| : ${ac_cv_func_putc_unlocked=yes}
466
| : ${ac_cv_func_putchar=yes}
467
| : ${ac_cv_func_putchar_unlocked=yes}
468
| : ${ac_cv_func_putenv=yes}
469
| : ${ac_cv_func_putw=yes}
470
| : ${ac_cv_func_pwrite=yes}
471
| : ${ac_cv_func_raise=yes}
472
| : ${ac_cv_func_rand=yes}
473
| : ${ac_cv_func_random=yes}
474
| : ${ac_cv_func_readdir=yes}
475
| : ${ac_cv_func_readlink=yes}
476
| : ${ac_cv_func_readlinkat=yes}
477
| : ${ac_cv_func_readpassphrase=yes}
478
| : ${ac_cv_func_realpath=yes}
479
| : ${ac_cv_func_recvmsg=yes}
480
| : ${ac_cv_func_rename=yes}
481
| : ${ac_cv_func_remque=yes}
482
| : ${ac_cv_func_rindex=yes}
483
| : ${ac_cv_func_rresvport_af=yes}
484
| : ${ac_cv_func_scandir=yes}
485
| : ${ac_cv_func_scandir_b=yes}
486
| : ${ac_cv_func_sched_yield=yes}
487
| : ${ac_cv_func_select=yes}
488
| : ${ac_cv_func_sendmsg=yes}
489
| : ${ac_cv_func_setegid=yes}
490
| : ${ac_cv_func_setenv=yes}
491
| : ${ac_cv_func_seteuid=yes}
492
| : ${ac_cv_func_setgid=yes}
493
| : ${ac_cv_func_setgrent=yes}
494
| : ${ac_cv_func_setgroupent=yes}
495
| : ${ac_cv_func_setgroups=yes}
496
| : ${ac_cv_func_setlinebuf=yes}
497
| : ${ac_cv_func_setlocale=yes}
498
| : ${ac_cv_func_setlogin=yes}
499
| : ${ac_cv_func_setpassent=yes}
500
| : ${ac_cv_func_setpgid=yes}
501
| : ${ac_cv_func_setproctitle=yes}
502
| : ${ac_cv_func_setregid=yes}
503
| : ${ac_cv_func_setresgid=yes}
504
| : ${ac_cv_func_setresuid=yes}
505
| : ${ac_cv_func_setreuid=yes}
506
| : ${ac_cv_func_setrlimit=yes}
507
| : ${ac_cv_func_setsid=yes}
508
| : ${ac_cv_func_setsockopt=yes}
509
| : ${ac_cv_func_setuid=yes}
510
| : ${ac_cv_func_setvbuf=yes}
511
| : ${ac_cv_func_shmget=yes}
512
| : ${ac_cv_func_sigaction=yes}
513
| : ${ac_cv_func_sigaltstack=yes}
514
| : ${ac_cv_func_sigblock=yes}
515
| : ${ac_cv_func_siginterrupt=yes}
516
| : ${ac_cv_func_sigmask=yes}
517
| : ${ac_cv_func_sigprocmask=yes}
518
| : ${ac_cv_func_sigsetmask=yes}
519
| : ${ac_cv_func_sigvec=yes}
520
| : ${ac_cv_func_sleep=yes}
521
| : ${ac_cv_func_sprintf=yes}
522
| : ${ac_cv_func_snprintf=yes}
523
| : ${ac_cv_func_socketpair=yes}
524
| : ${ac_cv_func_srand=yes}
525
| : ${ac_cv_func_srandom=yes}
526
| : ${ac_cv_func_stat=yes}
527
| : ${ac_cv_func_statfs=yes}
528
| : ${ac_cv_func_statvfs=yes}
529
| : ${ac_cv_func_stpcpy=yes}
530
| : ${ac_cv_func_stpncpy=yes}
531
| : ${ac_cv_func_strbrk=yes}
532
| : ${ac_cv_func_strcasecmp=yes}
533
| : ${ac_cv_func_strcasecmp_l=yes}
534
| : ${ac_cv_func_strcasestr=yes}
535
| : ${ac_cv_func_strcasestr_l=yes}
536
| : ${ac_cv_func_strchr=yes}
537
| : ${ac_cv_func_strrchr=yes}
538
| : ${ac_cv_func_strcspn=yes}
539
| : ${ac_cv_func_strdup=yes}
540
| : ${ac_cv_func_strerror=yes}
541
| : ${ac_cv_func_strerror_r=yes}
542
| : ${ac_cv_func_strftime=yes}
543
| : ${ac_cv_func_strlcat=yes}
544
| : ${ac_cv_func_strlcpy=yes}
545
| : ${ac_cv_func_strlen=yes}
546
| : ${ac_cv_func_strmode=yes}
547
| : ${ac_cv_func_strncasecmp=yes}
548
| : ${ac_cv_func_strncmp=yes}
549
| : ${ac_cv_func_strncmp_working=yes}
550
| : ${ac_cv_func_strndup=yes}
551
| : ${ac_cv_func_strnlen=yes}
552
| : ${ac_cv_func_strnlen_working=yes}
553
| : ${ac_cv_func_strpbrk=yes}
554
| : ${ac_cv_func_strptime=yes}
555
| : ${ac_cv_func_strsep=yes}
556
| : ${ac_cv_func_strsignal=yes}
557
| : ${ac_cv_func_strstr=yes}
558
| : ${ac_cv_func_strnstr=yes}
559
| : ${ac_cv_func_strtod=yes}
560
| : ${ac_cv_func_strtof=yes}
561
| : ${ac_cv_func_strtol=yes}
562
| : ${ac_cv_func_strtold=yes}
563
| : ${ac_cv_func_strtoll=yes}
564
| : ${ac_cv_func_strtonum=yes}
565
| : ${ac_cv_func_strtoul=yes}
566
| : ${ac_cv_func_strtoull=yes}
567
| : ${ac_cv_func_symlink=yes}
568
| : ${ac_cv_func_sysconf=yes}
569
| : ${ac_cv_func_sysctl=yes}
570
| : ${ac_cv_func_tcgetpgrp=yes}
571
| : ${ac_cv_func_tmpnam=yes}
572
| : ${ac_cv_func_time=yes}
573
| : ${ac_cv_func_times=yes}
574
| : ${ac_cv_func_towlower=yes}
575
| : ${ac_cv_func_truncate=yes}
576
| : ${ac_cv_func_tsearch=yes}
577
| : ${ac_cv_func_uname=yes}
578
| : ${ac_cv_func_unlink=yes}
579
| : ${ac_cv_func_unsetenv=yes}
580
| : ${ac_cv_func_user_from_uid=yes}
581
| : ${ac_cv_func_usleep=yes}
582
| : ${ac_cv_func_utime=yes}
583
| : ${ac_cv_func_utimes=yes}
584
| : ${ac_cv_func_vasprintf=yes}
585
| : ${ac_cv_func_vdprintf=yes}
586
| : ${ac_cv_func_vfork=yes}
587
| : ${ac_cv_func_vfork_working=yes}
588
| : ${ac_cv_func_vfprintf=yes}
589
| : ${ac_cv_func_vprintf=yes}
590
| : ${ac_cv_func_vsnprintf=yes}
591
| : ${ac_cv_func_vsprintf=yes}
592
| : ${ac_cv_func_waitpid=yes}
593
| : ${ac_cv_func_wait=yes}
594
| : ${ac_cv_func_waitid=yes}
595
| : ${ac_cv_func_wait2=yes}
596
| : ${ac_cv_func_wait3=yes}
597
| : ${ac_cv_func_wait3_rusage=yes}
598
| : ${ac_cv_func_wait4=yes}
599
| : ${ac_cv_func_wait6=yes}
600
| : ${ac_cv_func_warn=yes}
601
| : ${ac_cv_func_warnx=yes}
602
| : ${ac_cv_func_wcrtomb=yes}
603
| : ${ac_cv_func_wcscoll=yes}
604
| : ${ac_cv_func_wcslen=yes}
605
| : ${ac_cv_func_wcsnlen=yes}
606
| : ${ac_cv_func_wcswidth=yes}
607
| : ${ac_cv_func_wctob=yes}
608
| : ${ac_cv_func_wcwidth=yes}
609
| : ${ac_cv_func_wmemchr=yes}
610
| : ${ac_cv_func_wmemcpy=yes}
611
| : ${ac_cv_func_yp_match=yes}
612
| 
613
| # misc utx
614
| : ${ac_cv_func_endutxent=yes}
615
| : ${ac_cv_func_getutxent=yes}
616
| : ${ac_cv_func_getutxid=yes}
617
| : ${ac_cv_func_getutxline=yes}
618
| : ${ac_cv_func_getutxuser=yes}
619
| : ${ac_cv_func_pututxline=yes}
620
| : ${ac_cv_func_setutxdb=yes}
621
| : ${ac_cv_func_setutxent=yes}
622
| : ${ac_cv_func_endutent=no}
623
| : ${ac_cv_func_getutent=no}
624
| : ${ac_cv_func_getutid=no}
625
| : ${ac_cv_func_getutline=no}
626
| : ${ac_cv_func_pututline=no}
627
| : ${ac_cv_func_setutent=no}
628
| : ${ac_cv_func_utmpname=no}
629
| 
630
| # non existing functions
631
| : ${ac_cv_func_argz_count=no}
632
| : ${ac_cv_func_argz_next=no}
633
| : ${ac_cv_func_argz_stringify=no}
634
| : ${ac_cv_func_obstacks=no}
635
| : ${ac_cv_func_pstat_getdynamic=no}
636
| : ${ac_cv_func_rawmemchr=no}
637
| : ${ac_cv_func_yield=no}
638
| 
639
| : ${ac_cv_have___va_copy=yes}
640
| : ${ac_cv_have_clock_t=yes}
641
| : ${ac_cv_have_control_in_msghdr=yes}
642
| : ${ac_cv_have_getopt_optreset=yes}
643
| : ${ac_cv_have_int64_t=yes}
644
| : ${ac_cv_have_intxx_t=yes}
645
| : ${ac_cv_have_mode_t=yes}
646
| : ${ac_cv_have_pid_t=yes}
647
| : ${ac_cv_have_pw_change_in_struct_passwd=yes}
648
| : ${ac_cv_have_pw_class_in_struct_passwd=yes}
649
| : ${ac_cv_have_pw_expire_in_struct_passwd=yes}
650
| : ${ac_cv_have_sa_family_t=yes}
651
| : ${ac_cv_have_size_t=yes}
652
| : ${ac_cv_have_ss_family_in_struct_ss=yes}
653
| : ${ac_cv_have_ssize_t=yes}
654
| : ${ac_cv_have_struct_addrinfo=yes}
655
| : ${ac_cv_have_struct_in6_addr=yes}
656
| : ${ac_cv_have_struct_sockaddr_in6=yes}
657
| : ${ac_cv_have_struct_sockaddr_storage=yes}
658
| : ${ac_cv_have_struct_timeval=yes}
659
| : ${ac_cv_have_u_char=yes}
660
| : ${ac_cv_have_u_int64_t=yes}
661
| : ${ac_cv_have_u_int=yes}
662
| : ${ac_cv_have_u_intxx_t=yes}
663
| : ${ac_cv_have_va_copy=yes}
664
| 
665
| : ${ac_cv_have_decl_GLOB_NOMATCH=yes}
666
| : ${ac_cv_have_decl_LLONG_MAX=yes}
667
| : ${ac_cv_have_decl_MAXSYMLINKS=yes}
668
| : ${ac_cv_have_decl_O_NONBLOCK=yes}
669
| : ${ac_cv_have_decl_RLIMIT_NPROC=yes}
670
| : ${ac_cv_have_decl_SHUT_RD=yes}
671
| : ${ac_cv_have_decl__Exit=yes}
672
| : ${ac_cv_have_decl_abort=yes}
673
| : ${ac_cv_have_decl_alarm=yes}
674
| : ${ac_cv_have_decl_alphasort=yes}
675
| : ${ac_cv_have_decl_atof=yes}
676
| : ${ac_cv_have_decl_atol=yes}
677
| : ${ac_cv_have_decl_atoll=yes}
678
| : ${ac_cv_have_decl_btowc=yes}
679
| : ${ac_cv_have_decl_calloc=yes}
680
| : ${ac_cv_have_decl_chdir=yes}
681
| : ${ac_cv_have_decl_chown=yes}
682
| : ${ac_cv_have_decl_clearerr_unlocked=yes}
683
| : ${ac_cv_have_decl_clock=yes}
684
| : ${ac_cv_have_decl_closedir=yes}
685
| : ${ac_cv_have_decl_dprintf=yes}
686
| : ${ac_cv_have_decl_dup2=yes}
687
| : ${ac_cv_have_decl_dup=yes}
688
| : ${ac_cv_have_decl_endusershell=yes}
689
| : ${ac_cv_have_decl_errno=yes}
690
| : ${ac_cv_have_decl_faccessat=yes}
691
| : ${ac_cv_have_decl_fchdir=yes}
692
| : ${ac_cv_have_decl_fchmodat=yes}
693
| : ${ac_cv_have_decl_fchownat=yes}
694
| : ${ac_cv_have_decl_fcntl=yes}
695
| : ${ac_cv_have_decl_fdopendir=yes}
696
| : ${ac_cv_have_decl_feof_unlocked=yes}
697
| : ${ac_cv_have_decl_feof_unlocked_fgets_unlocked=yes}
698
| : ${ac_cv_have_decl_ferror_unlocked=yes}
699
| : ${ac_cv_have_decl_ffsl=yes}
700
| : ${ac_cv_have_decl_ffsll=yes}
701
| : ${ac_cv_have_decl_fpurge=yes}
702
| : ${ac_cv_have_decl_free=yes}
703
| : ${ac_cv_have_decl_frexpl=yes}
704
| : ${ac_cv_have_decl_fseeko=yes}
705
| : ${ac_cv_have_decl_fstat=yes}
706
| : ${ac_cv_have_decl_fstatat=yes}
707
| : ${ac_cv_have_decl_fsync=yes}
708
| : ${ac_cv_have_decl_ftello=yes}
709
| : ${ac_cv_have_decl_ftruncate=yes}
710
| : ${ac_cv_have_decl_getc_unlocked=yes}
711
| : ${ac_cv_have_decl_getchar_unlocked=yes}
712
| : ${ac_cv_have_decl_getcwd=yes}
713
| : ${ac_cv_have_decl_getdelim=yes}
714
| : ${ac_cv_have_decl_getdomainname=yes}
715
| : ${ac_cv_have_decl_getdtablesize=yes}
716
| : ${ac_cv_have_decl_getenv=yes}
717
| : ${ac_cv_have_decl_getgroups=yes}
718
| : ${ac_cv_have_decl_gethostname=yes}
719
| : ${ac_cv_have_decl_getline=yes}
720
| : ${ac_cv_have_decl_getloadavg=yes}
721
| : ${ac_cv_have_decl_getlogin=yes}
722
| : ${ac_cv_have_decl_getlogin_r=yes}
723
| : ${ac_cv_have_decl_getopt=yes}
724
| : ${ac_cv_have_decl_getpagesize=yes}
725
| : ${ac_cv_have_decl_getrlimit=yes}
726
| : ${ac_cv_have_decl_getrusage=yes}
727
| : ${ac_cv_have_decl_getsubopt=yes}
728
| : ${ac_cv_have_decl_gettimeofday=yes}
729
| : ${ac_cv_have_decl_getusershell=yes}
730
| : ${ac_cv_have_decl_getwd=yes}
731
| : ${ac_cv_have_decl_grantpt=yes}
732
| : ${ac_cv_have_decl_h_errno=yes}
733
| : ${ac_cv_have_decl_imaxabs=yes}
734
| : ${ac_cv_have_decl_imaxdiv=yes}
735
| : ${ac_cv_have_decl_initstate=yes}
736
| : ${ac_cv_have_decl_isatty=yes}
737
| : ${ac_cv_have_decl_isblank=yes}
738
| : ${ac_cv_have_decl_iswblank=yes}
739
| : ${ac_cv_have_decl_iswctype=yes}
740
| : ${ac_cv_have_decl_lchmod=yes}
741
| : ${ac_cv_have_decl_lchown=yes}
742
| : ${ac_cv_have_decl_link=yes}
743
| : ${ac_cv_have_decl_linkat=yes}
744
| : ${ac_cv_have_decl_lseek=yes}
745
| : ${ac_cv_have_decl_lstat=yes}
746
| : ${ac_cv_have_decl_malloc=yes}
747
| : ${ac_cv_have_decl_mbrlen=yes}
748
| : ${ac_cv_have_decl_mbrtowc=yes}
749
| : ${ac_cv_have_decl_mbsinit=yes}
750
| : ${ac_cv_have_decl_mbsnrtowcs=yes}
751
| : ${ac_cv_have_decl_mbsrtowcs=yes}
752
| : ${ac_cv_have_decl_memmem=yes}
753
| : ${ac_cv_have_decl_memrchr=yes}
754
| : ${ac_cv_have_decl_mkdirat=yes}
755
| : ${ac_cv_have_decl_mkdtemp=yes}
756
| : ${ac_cv_have_decl_mkfifo=yes}
757
| : ${ac_cv_have_decl_mkfifoat=yes}
758
| : ${ac_cv_have_decl_mknod=yes}
759
| : ${ac_cv_have_decl_mknodat=yes}
760
| : ${ac_cv_have_decl_mkstemp=yes}
761
| : ${ac_cv_have_decl_nl_langinfo=yes}
762
| : ${ac_cv_have_decl_offsetof=yes}
763
| : ${ac_cv_have_decl_openat=yes}
764
| : ${ac_cv_have_decl_opendir=yes}
765
| : ${ac_cv_have_decl_pclose=yes}
766
| : ${ac_cv_have_decl_pipe=yes}
767
| : ${ac_cv_have_decl_popen=yes}
768
| : ${ac_cv_have_decl_posix_openpt=yes}
769
| : ${ac_cv_have_decl_posix_spawn=yes}
770
| : ${ac_cv_have_decl_posix_spawn_file_actions_addclose=yes}
771
| : ${ac_cv_have_decl_posix_spawn_file_actions_adddup2=yes}
772
| : ${ac_cv_have_decl_posix_spawn_file_actions_addopen=yes}
773
| : ${ac_cv_have_decl_posix_spawn_file_actions_destroy=yes}
774
| : ${ac_cv_have_decl_posix_spawn_file_actions_init=yes}
775
| : ${ac_cv_have_decl_posix_spawnattr_destroy=yes}
776
| : ${ac_cv_have_decl_posix_spawnattr_getflags=yes}
777
| : ${ac_cv_have_decl_posix_spawnattr_getpgroup=yes}
778
| : ${ac_cv_have_decl_posix_spawnattr_getschedparam=yes}
779
| : ${ac_cv_have_decl_posix_spawnattr_getschedpolicy=yes}
780
| : ${ac_cv_have_decl_posix_spawnattr_getsigdefault=yes}
781
| : ${ac_cv_have_decl_posix_spawnattr_getsigmask=yes}
782
| : ${ac_cv_have_decl_posix_spawnattr_init=yes}
783
| : ${ac_cv_have_decl_posix_spawnattr_setflags=yes}
784
| : ${ac_cv_have_decl_posix_spawnattr_setpgroup=yes}
785
| : ${ac_cv_have_decl_posix_spawnattr_setschedparam=yes}
786
| : ${ac_cv_have_decl_posix_spawnattr_setschedpolicy=yes}
787
| : ${ac_cv_have_decl_posix_spawnattr_setsigdefault=yes}
788
| : ${ac_cv_have_decl_posix_spawnattr_setsigmask=yes}
789
| : ${ac_cv_have_decl_posix_spawnp=yes}
790
| : ${ac_cv_have_decl_pread=yes}
791
| : ${ac_cv_have_decl_pselect=yes}
792
| : ${ac_cv_have_decl_pthread_sigmask=yes}
793
| : ${ac_cv_have_decl_ptsname=yes}
794
| : ${ac_cv_have_decl_putc_unlocked=yes}
795
| : ${ac_cv_have_decl_putchar_unlocked=yes}
796
| : ${ac_cv_have_decl_pwrite=yes}
797
| : ${ac_cv_have_decl_random=yes}
798
| : ${ac_cv_have_decl_rawmemchr=yes}
799
| : ${ac_cv_have_decl_readdir=yes}
800
| : ${ac_cv_have_decl_readlink=yes}
801
| : ${ac_cv_have_decl_readlinkat=yes}
802
| : ${ac_cv_have_decl_realloc=yes}
803
| : ${ac_cv_have_decl_realpath=yes}
804
| : ${ac_cv_have_decl_renameat=yes}
805
| : ${ac_cv_have_decl_rewinddir=yes}
806
| : ${ac_cv_have_decl_rmdir=yes}
807
| : ${ac_cv_have_decl_rpmatch=yes}
808
| : ${ac_cv_have_decl_sbrk=yes}
809
| : ${ac_cv_have_decl_scandir=yes}
810
| : ${ac_cv_have_decl_select=yes}
811
| : ${ac_cv_have_decl_setenv=yes}
812
| : ${ac_cv_have_decl_sethostname=yes}
813
| : ${ac_cv_have_decl_setlocale=yes}
814
| : ${ac_cv_have_decl_setrlimit=yes}
815
| : ${ac_cv_have_decl_setstate=yes}
816
| : ${ac_cv_have_decl_setusershell=yes}
817
| : ${ac_cv_have_decl_sigaction=yes}
818
| : ${ac_cv_have_decl_sigaddset=yes}
819
| : ${ac_cv_have_decl_sigaltstack=yes}
820
| : ${ac_cv_have_decl_sigdelset=yes}
821
| : ${ac_cv_have_decl_sigemptyset=yes}
822
| : ${ac_cv_have_decl_sigfillset=yes}
823
| : ${ac_cv_have_decl_sigismember=yes}
824
| : ${ac_cv_have_decl_sigpending=yes}
825
| : ${ac_cv_have_decl_sigprocmask=yes}
826
| : ${ac_cv_have_decl_sleep=yes}
827
| : ${ac_cv_have_decl_snprintf=yes}
828
| : ${ac_cv_have_decl_srandom=yes}
829
| : ${ac_cv_have_decl_stat=yes}
830
| : ${ac_cv_have_decl_stpcpy=yes}
831
| : ${ac_cv_have_decl_stpncpy=yes}
832
| : ${ac_cv_have_decl_strcasestr=yes}
833
| : ${ac_cv_have_decl_strdup=yes}
834
| : ${ac_cv_have_decl_strerror_r=yes}
835
| : ${ac_cv_have_decl_strncat=yes}
836
| : ${ac_cv_have_decl_strndup=yes}
837
| : ${ac_cv_have_decl_strnlen=yes}
838
| : ${ac_cv_have_decl_strpbrk=yes}
839
| : ${ac_cv_have_decl_strsep=yes}
840
| : ${ac_cv_have_decl_strsignal=yes}
841
| : ${ac_cv_have_decl_strstr=yes}
842
| : ${ac_cv_have_decl_strtod=yes}
843
| : ${ac_cv_have_decl_strtoimax=yes}
844
| : ${ac_cv_have_decl_strtok_r=yes}
845
| : ${ac_cv_have_decl_strtoll=yes}
846
| : ${ac_cv_have_decl_strtoull=yes}
847
| : ${ac_cv_have_decl_strtoumax=yes}
848
| : ${ac_cv_have_decl_symlink=yes}
849
| : ${ac_cv_have_decl_symlinkat=yes}
850
| : ${ac_cv_have_decl_sys_siglist=yes}
851
| : ${ac_cv_have_decl_tcsendbreak=yes}
852
| : ${ac_cv_have_decl_times=yes}
853
| : ${ac_cv_have_decl_tmpfile=yes}
854
| : ${ac_cv_have_decl_towctrans=yes}
855
| : ${ac_cv_have_decl_ttyname_r=yes}
856
| : ${ac_cv_have_decl_unlink=yes}
857
| : ${ac_cv_have_decl_unlinkat=yes}
858
| : ${ac_cv_have_decl_unlockpt=yes}
859
| : ${ac_cv_have_decl_unsetenv=yes}
860
| : ${ac_cv_have_decl_usleep=yes}
861
| : ${ac_cv_have_decl_vasprintf=yes}
862
| : ${ac_cv_have_decl_vdprintf=yes}
863
| : ${ac_cv_have_decl_vsnprintf=yes}
864
| : ${ac_cv_have_decl_waitpid=yes}
865
| : ${ac_cv_have_decl_wcpcpy=yes}
866
| : ${ac_cv_have_decl_wcpncpy=yes}
867
| : ${ac_cv_have_decl_wcrtomb=yes}
868
| : ${ac_cv_have_decl_wcscasecmp=yes}
869
| : ${ac_cv_have_decl_wcscat=yes}
870
| : ${ac_cv_have_decl_wcschr=yes}
871
| : ${ac_cv_have_decl_wcscmp=yes}
872
| : ${ac_cv_have_decl_wcscoll=yes}
873
| : ${ac_cv_have_decl_wcscpy=yes}
874
| : ${ac_cv_have_decl_wcscspn=yes}
875
| : ${ac_cv_have_decl_wcsdup=yes}
876
| : ${ac_cv_have_decl_wcslen=yes}
877
| : ${ac_cv_have_decl_wcsncasecmp=yes}
878
| : ${ac_cv_have_decl_wcsncat=yes}
879
| : ${ac_cv_have_decl_wcsncmp=yes}
880
| : ${ac_cv_have_decl_wcsncpy=yes}
881
| : ${ac_cv_have_decl_wcsnlen=yes}
882
| : ${ac_cv_have_decl_wcsnrtombs=yes}
883
| : ${ac_cv_have_decl_wcspbrk=yes}
884
| : ${ac_cv_have_decl_wcsrchr=yes}
885
| : ${ac_cv_have_decl_wcsrtombs=yes}
886
| : ${ac_cv_have_decl_wcsspn=yes}
887
| : ${ac_cv_have_decl_wcsstr=yes}
888
| : ${ac_cv_have_decl_wcstok=yes}
889
| : ${ac_cv_have_decl_wcswidth=yes}
890
| : ${ac_cv_have_decl_wcsxfrm=yes}
891
| : ${ac_cv_have_decl_wctob=yes}
892
| : ${ac_cv_have_decl_wctrans=yes}
893
| : ${ac_cv_have_decl_wctype=yes}
894
| : ${ac_cv_have_decl_wcwidth=yes}
895
| : ${ac_cv_have_decl_wmemchr=yes}
896
| : ${ac_cv_have_decl_wmemcmp=yes}
897
| : ${ac_cv_have_decl_wmemcpy=yes}
898
| : ${ac_cv_have_decl_wmemmove=yes}
899
| : ${ac_cv_have_decl_wmemset=yes}
900
| : ${ac_cv_have_decl_writev=yes}
901
| 
902
| # long file name support test invasively touches localbase, always true
903
| : ${ac_cv_sys_long_file_names=yes}
904
| 
905
| # function specific
906
| 
907
| : ${gl_cv_func_btowc_eof=yes}
908
| : ${gl_cv_func_btowc_nul=yes}
909
| : ${gl_cv_func_fcntl_f_dupfd_cloexec=yes}
910
| : ${gl_cv_func_fnmatch_posix=yes}
911
| : ${gl_cv_func_fopen_slash=yes}
912
| : ${gl_cv_func_frexp_no_libm=yes}
913
| : ${gl_cv_func_fseeko=yes}
914
| : ${gl_cv_func_ftello=yes}
915
| : ${gl_cv_func_getcwd_null=yes}
916
| : ${gl_cv_func_getcwd_posix_signature=yes}
917
| : ${gl_cv_func_getopt_posix=yes}
918
| : ${gl_cv_func_isnand_no_libm=yes}
919
| : ${gl_cv_func_ldexp_no_libm=yes}
920
| : ${gl_cv_func_lseek_pipe=yes}
921
| : ${gl_cv_func_lstat_dereferences_slashed_symlink=yes}
922
| : ${gl_cv_func_malloc_0_nonnull=1}
923
| : ${gl_cv_func_malloc_posix=yes}
924
| : ${gl_cv_func_mbrtowc_incomplete_state=yes}
925
| : ${gl_cv_func_mbrtowc_nul_retval=yes}
926
| : ${gl_cv_func_mbrtowc_null_arg1=yes}
927
| : ${gl_cv_func_mbrtowc_null_arg2=yes}
928
| : ${gl_cv_func_mbrtowc_retval=yes}
929
| : ${gl_cv_func_mbrtowc_sanitycheck=yes}
930
| : ${gl_cv_func_open_slash=yes}
931
| : ${gl_cv_func_printf_directive_a=yes}
932
| : ${gl_cv_func_printf_directive_f=yes}
933
| : ${gl_cv_func_printf_directive_ls=yes}
934
| : ${gl_cv_func_printf_directive_n=yes}
935
| : ${gl_cv_func_printf_flag_grouping=yes}
936
| : ${gl_cv_func_printf_flag_leftadjust=yes}
937
| : ${gl_cv_func_printf_flag_zero=yes}
938
| : ${gl_cv_func_printf_infinite=yes}
939
| : ${gl_cv_func_printf_long_double=yes}
940
| : ${gl_cv_func_printf_positions=yes}
941
| : ${gl_cv_func_printf_precision=yes}
942
| : ${gl_cv_func_printf_sizes_c99=yes}
943
| : ${gl_cv_func_sigprocmask=1}
944
| : ${gl_cv_func_snprintf_retval_c99=yes}
945
| : ${gl_cv_func_snprintf_size1=yes}
946
| : ${gl_cv_func_snprintf_usable=yes}
947
| : ${gl_cv_func_spawnattr_setschedparam=yes}
948
| : ${gl_cv_func_spawnattr_setschedpolicy=yes}
949
| : ${gl_cv_func_stat_dir_slash=yes}
950
| : ${gl_cv_func_stat_file_slash=yes}
951
| : ${gl_cv_func_stpncpy=yes}
952
| : ${gl_cv_func_va_copy=yes}
953
| : ${gl_cv_func_wcrtomb_retval=yes}
954
| : ${gt_cv_func_unsetenv_ret=int}
955
| 
956
| : ${gl_cv_have_include_next=yes}
957
| 
958
| : ${gl_cv_have_raw_decl_rawmemchr=yes}
959
| : ${gl_cv_have_raw_decl__Exit=yes}
960
| : ${gl_cv_have_raw_decl_alphasort=yes}
961
| : ${gl_cv_have_raw_decl_atoll=yes}
962
| : ${gl_cv_have_raw_decl_btowc=yes}
963
| : ${gl_cv_have_raw_decl_chdir=yes}
964
| : ${gl_cv_have_raw_decl_chown=yes}
965
| : ${gl_cv_have_raw_decl_closedir=yes}
966
| : ${gl_cv_have_raw_decl_dprintf=yes}
967
| : ${gl_cv_have_raw_decl_dup2=yes}
968
| : ${gl_cv_have_raw_decl_dup=yes}
969
| : ${gl_cv_have_raw_decl_endusershell=yes}
970
| : ${gl_cv_have_raw_decl_faccessat=yes}
971
| : ${gl_cv_have_raw_decl_fchdir=yes}
972
| : ${gl_cv_have_raw_decl_fchmodat=yes}
973
| : ${gl_cv_have_raw_decl_fchownat=yes}
974
| : ${gl_cv_have_raw_decl_fcntl=yes}
975
| : ${gl_cv_have_raw_decl_fdopendir=yes}
976
| : ${gl_cv_have_raw_decl_ffsl=yes}
977
| : ${gl_cv_have_raw_decl_ffsll=yes}
978
| : ${gl_cv_have_raw_decl_fpurge=yes}
979
| : ${gl_cv_have_raw_decl_fseeko=yes}
980
| : ${gl_cv_have_raw_decl_fstat=yes}
981
| : ${gl_cv_have_raw_decl_fstatat=yes}
982
| : ${gl_cv_have_raw_decl_fsync=yes}
983
| : ${gl_cv_have_raw_decl_ftello=yes}
984
| : ${gl_cv_have_raw_decl_ftruncate=yes}
985
| : ${gl_cv_have_raw_decl_getcwd=yes}
986
| : ${gl_cv_have_raw_decl_getdelim=yes}
987
| : ${gl_cv_have_raw_decl_getdomainname=yes}
988
| : ${gl_cv_have_raw_decl_getdtablesize=yes}
989
| : ${gl_cv_have_raw_decl_getgroups=yes}
990
| : ${gl_cv_have_raw_decl_getdtablesize=yes}
991
| : ${gl_cv_have_raw_decl_getgroups=yes}
992
| : ${gl_cv_have_raw_decl_gethostname=yes}
993
| : ${gl_cv_have_raw_decl_getline=yes}
994
| : ${gl_cv_have_raw_decl_getloadavg=yes}
995
| : ${gl_cv_have_raw_decl_getlogin=yes}
996
| : ${gl_cv_have_raw_decl_getlogin_r=yes}
997
| : ${gl_cv_have_raw_decl_getpagesize=yes}
998
| : ${gl_cv_have_raw_decl_getsubopt=yes}
999
| : ${gl_cv_have_raw_decl_gettimeofday=yes}
1000
| : ${gl_cv_have_raw_decl_getusershell=yes}
1001
| : ${gl_cv_have_raw_decl_grantpt=yes}
1002
| : ${gl_cv_have_raw_decl_imaxabs=yes}
1003
| : ${gl_cv_have_raw_decl_imaxdiv=yes}
1004
| : ${gl_cv_have_raw_decl_initstate=yes}
1005
| : ${gl_cv_have_raw_decl_isatty=yes}
1006
| : ${gl_cv_have_raw_decl_iswctype=yes}
1007
| : ${gl_cv_have_raw_decl_lchmod=yes}
1008
| : ${gl_cv_have_raw_decl_lchown=yes}
1009
| : ${gl_cv_have_raw_decl_link=yes}
1010
| : ${gl_cv_have_raw_decl_linkat=yes}
1011
| : ${gl_cv_have_raw_decl_lseek=yes}
1012
| : ${gl_cv_have_raw_decl_lstat=yes}
1013
| : ${gl_cv_have_raw_decl_mbrlen=yes}
1014
| : ${gl_cv_have_raw_decl_mbrtowc=yes}
1015
| : ${gl_cv_have_raw_decl_mbsinit=yes}
1016
| : ${gl_cv_have_raw_decl_mbsnrtowcs=yes}
1017
| : ${gl_cv_have_raw_decl_mbsrtowcs=yes}
1018
| : ${gl_cv_have_raw_decl_mkdirat=yes}
1019
| : ${gl_cv_have_raw_decl_mkdtemp=yes}
1020
| : ${gl_cv_have_raw_decl_mkfifo=yes}
1021
| : ${gl_cv_have_raw_decl_mkfifoat=yes}
1022
| : ${gl_cv_have_raw_decl_mknod=yes}
1023
| : ${gl_cv_have_raw_decl_mknodat=yes}
1024
| : ${gl_cv_have_raw_decl_mkstemp=yes}
1025
| : ${gl_cv_have_raw_decl_nl_langinfo=yes}
1026
| : ${gl_cv_have_raw_decl_openat=yes}
1027
| : ${gl_cv_have_raw_decl_opendir=yes}
1028
| : ${gl_cv_have_raw_decl_pclose=yes}
1029
| : ${gl_cv_have_raw_decl_pipe=yes}
1030
| : ${gl_cv_have_raw_decl_popen=yes}
1031
| : ${gl_cv_have_raw_decl_posix_openpt=yes}
1032
| : ${gl_cv_have_raw_decl_posix_spawn=yes}
1033
| : ${gl_cv_have_raw_decl_posix_openpt=yes}
1034
| : ${gl_cv_have_raw_decl_posix_spawn=yes}
1035
| : ${gl_cv_have_raw_decl_posix_spawn_file_actions_addclose=yes}
1036
| : ${gl_cv_have_raw_decl_posix_spawn_file_actions_adddup2=yes}
1037
| : ${gl_cv_have_raw_decl_posix_spawn_file_actions_addopen=yes}
1038
| : ${gl_cv_have_raw_decl_posix_spawn_file_actions_destroy=yes}
1039
| : ${gl_cv_have_raw_decl_posix_spawn_file_actions_init=yes}
1040
| : ${gl_cv_have_raw_decl_posix_spawnattr_destroy=yes}
1041
| : ${gl_cv_have_raw_decl_posix_spawnattr_getflags=yes}
1042
| : ${gl_cv_have_raw_decl_posix_spawnattr_getpgroup=yes}
1043
| : ${gl_cv_have_raw_decl_posix_spawnattr_getschedparam=yes}
1044
| : ${gl_cv_have_raw_decl_posix_spawnattr_getschedpolicy=yes}
1045
| : ${gl_cv_have_raw_decl_posix_spawnattr_getsigdefault=yes}
1046
| : ${gl_cv_have_raw_decl_posix_spawnattr_getsigmask=yes}
1047
| : ${gl_cv_have_raw_decl_posix_spawnattr_init=yes}
1048
| : ${gl_cv_have_raw_decl_posix_spawnattr_setflags=yes}
1049
| : ${gl_cv_have_raw_decl_posix_spawnattr_setpgroup=yes}
1050
| : ${gl_cv_have_raw_decl_posix_spawnattr_setschedparam=yes}
1051
| : ${gl_cv_have_raw_decl_posix_spawnattr_setschedpolicy=yes}
1052
| : ${gl_cv_have_raw_decl_posix_spawnattr_setsigdefault=yes}
1053
| : ${gl_cv_have_raw_decl_posix_spawnattr_setsigmask=yes}
1054
| : ${gl_cv_have_raw_decl_posix_spawnp=yes}
1055
| : ${gl_cv_have_raw_decl_pread=yes}
1056
| : ${gl_cv_have_raw_decl_pselect=yes}
1057
| : ${gl_cv_have_raw_decl_pthread_sigmask=yes}
1058
| : ${gl_cv_have_raw_decl_ptsname=yes}
1059
| : ${gl_cv_have_raw_decl_pwrite=yes}
1060
| : ${gl_cv_have_raw_decl_random=yes}
1061
| : ${gl_cv_have_raw_decl_readdir=yes}
1062
| : ${gl_cv_have_raw_decl_readlink=yes}
1063
| : ${gl_cv_have_raw_decl_readlinkat=yes}
1064
| : ${gl_cv_have_raw_decl_realpath=yes}
1065
| : ${gl_cv_have_raw_decl_renameat=yes}
1066
| : ${gl_cv_have_raw_decl_rewinddir=yes}
1067
| : ${gl_cv_have_raw_decl_rmdir=yes}
1068
| : ${gl_cv_have_raw_decl_rpmatch=yes}
1069
| : ${gl_cv_have_raw_decl_scandir=yes}
1070
| : ${gl_cv_have_raw_decl_select=yes}
1071
| : ${gl_cv_have_raw_decl_setenv=yes}
1072
| : ${gl_cv_have_raw_decl_sethostname=yes}
1073
| : ${gl_cv_have_raw_decl_setlocale=yes}
1074
| : ${gl_cv_have_raw_decl_setstate=yes}
1075
| : ${gl_cv_have_raw_decl_setusershell=yes}
1076
| : ${gl_cv_have_raw_decl_sigaction=yes}
1077
| : ${gl_cv_have_raw_decl_sigaddset=yes}
1078
| : ${gl_cv_have_raw_decl_sigdelset=yes}
1079
| : ${gl_cv_have_raw_decl_sigemptyset=yes}
1080
| : ${gl_cv_have_raw_decl_sigfillset=yes}
1081
| : ${gl_cv_have_raw_decl_sigismember=yes}
1082
| : ${gl_cv_have_raw_decl_sigpending=yes}
1083
| : ${gl_cv_have_raw_decl_sigprocmask=yes}
1084
| : ${gl_cv_have_raw_decl_sleep=yes}
1085
| : ${gl_cv_have_raw_decl_snprintf=yes}
1086
| : ${gl_cv_have_raw_decl_srandom=yes}
1087
| : ${gl_cv_have_raw_decl_stat=yes}
1088
| : ${gl_cv_have_raw_decl_strerror_r=yes}
1089
| : ${gl_cv_have_raw_decl_strtod=yes}
1090
| : ${gl_cv_have_raw_decl_strtoimax=yes}
1091
| : ${gl_cv_have_raw_decl_strtoll=yes}
1092
| : ${gl_cv_have_raw_decl_strtoull=yes}
1093
| : ${gl_cv_have_raw_decl_strtoumax=yes}
1094
| : ${gl_cv_have_raw_decl_symlink=yes}
1095
| : ${gl_cv_have_raw_decl_symlinkat=yes}
1096
| : ${gl_cv_have_raw_decl_tmpfile=yes}
1097
| : ${gl_cv_have_raw_decl_towctrans=yes}
1098
| : ${gl_cv_have_raw_decl_ttyname_r=yes}
1099
| : ${gl_cv_have_raw_decl_unlink=yes}
1100
| : ${gl_cv_have_raw_decl_unlinkat=yes}
1101
| : ${gl_cv_have_raw_decl_unlockpt=yes}
1102
| : ${gl_cv_have_raw_decl_unsetenv=yes}
1103
| : ${gl_cv_have_raw_decl_usleep=yes}
1104
| : ${gl_cv_have_raw_decl_vdprintf=yes}
1105
| : ${gl_cv_have_raw_decl_vsnprintf=yes}
1106
| : ${gl_cv_have_raw_decl_waitpid=yes}
1107
| : ${gl_cv_have_raw_decl_wcpcpy=yes}
1108
| : ${gl_cv_have_raw_decl_wcpncpy=yes}
1109
| : ${gl_cv_have_raw_decl_wcrtomb=yes}
1110
| : ${gl_cv_have_raw_decl_wcscasecmp=yes}
1111
| : ${gl_cv_have_raw_decl_wcscat=yes}
1112
| : ${gl_cv_have_raw_decl_wcschr=yes}
1113
| : ${gl_cv_have_raw_decl_wcscmp=yes}
1114
| : ${gl_cv_have_raw_decl_wcscoll=yes}
1115
| : ${gl_cv_have_raw_decl_wcscpy=yes}
1116
| : ${gl_cv_have_raw_decl_wcscspn=yes}
1117
| : ${gl_cv_have_raw_decl_wcsdup=yes}
1118
| : ${gl_cv_have_raw_decl_wcslen=yes}
1119
| : ${gl_cv_have_raw_decl_wcsncasecmp=yes}
1120
| : ${gl_cv_have_raw_decl_wcsncat=yes}
1121
| : ${gl_cv_have_raw_decl_wcsncmp=yes}
1122
| : ${gl_cv_have_raw_decl_wcsncpy=yes}
1123
| : ${gl_cv_have_raw_decl_wcsnlen=yes}
1124
| : ${gl_cv_have_raw_decl_wcsnrtombs=yes}
1125
| : ${gl_cv_have_raw_decl_wcspbrk=yes}
1126
| : ${gl_cv_have_raw_decl_wcsrchr=yes}
1127
| : ${gl_cv_have_raw_decl_wcsrtombs=yes}
1128
| : ${gl_cv_have_raw_decl_wcsspn=yes}
1129
| : ${gl_cv_have_raw_decl_wcsstr=yes}
1130
| : ${gl_cv_have_raw_decl_wcstok=yes}
1131
| : ${gl_cv_have_raw_decl_wcswidth=yes}
1132
| : ${gl_cv_have_raw_decl_wcsxfrm=yes}
1133
| : ${gl_cv_have_raw_decl_wctob=yes}
1134
| : ${gl_cv_have_raw_decl_wctrans=yes}
1135
| : ${gl_cv_have_raw_decl_wctype=yes}
1136
| : ${gl_cv_have_raw_decl_wcwidth=yes}
1137
| : ${gl_cv_have_raw_decl_wmemchr=yes}
1138
| : ${gl_cv_have_raw_decl_wmemcmp=yes}
1139
| : ${gl_cv_have_raw_decl_wmemcpy=yes}
1140
| : ${gl_cv_have_raw_decl_wmemmove=yes}
1141
| : ${gl_cv_have_raw_decl_wmemset=yes}
1142
| 
1143
| : ${gl_cv_header_errno_h_complete=yes}
1144
| : ${gl_cv_header_inttypes_h=yes}
1145
| : ${gl_cv_header_langinfo_codeset=yes}
1146
| : ${gl_cv_header_langinfo_era=yes}
1147
| : ${gl_cv_header_langinfo_t_fmt_ampm=yes}
1148
| : ${gl_cv_header_langinfo_yesexpr=yes}
1149
| : ${gl_cv_header_locale_h_posix2001=yes}
1150
| : ${gl_cv_header_signal_h_SIGPIPE=yes}
1151
| : ${gl_cv_header_stdint_h=yes}
1152
| : ${gl_cv_header_sys_select_h_selfcontained=yes}
1153
| 
1154
configure:2229: checking for gcc
1155
configure:2256: result: cc
1156
configure:2485: checking for C compiler version
1157
configure:2494: cc --version >&5
1158
FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0)
1159
Target: x86_64-unknown-freebsd11.3
1160
Thread model: posix
1161
InstalledDir: /usr/bin
1162
configure:2505: $? = 0
1163
configure:2494: cc -v >&5
1164
FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0)
1165
Target: x86_64-unknown-freebsd11.3
1166
Thread model: posix
1167
InstalledDir: /usr/bin
1168
configure:2505: $? = 0
1169
configure:2494: cc -V >&5
1170
cc: error: argument to '-V' is missing (expected 1 value)
1171
cc: error: no input files
1172
configure:2505: $? = 1
1173
configure:2494: cc -qversion >&5
1174
cc: error: unknown argument '-qversion', did you mean '--version'?
1175
cc: error: no input files
1176
configure:2505: $? = 1
1177
configure:2525: checking whether the C compiler works
1178
configure:2547: cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c  >&5
1179
configure:2551: $? = 0
1180
configure:2599: result: yes
1181
configure:2602: checking for C compiler default output file name
1182
configure:2604: result: a.out
1183
configure:2610: checking for suffix of executables
1184
configure:2617: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c  >&5
1185
configure:2621: $? = 0
1186
configure:2643: result: 
1187
configure:2665: checking whether we are cross compiling
1188
configure:2673: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c  >&5
1189
configure:2677: $? = 0
1190
configure:2684: ./conftest
1191
configure:2688: $? = 0
1192
configure:2703: result: no
1193
configure:2708: checking for suffix of object files
1194
configure:2730: cc -c -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   conftest.c >&5
1195
configure:2734: $? = 0
1196
configure:2755: result: o
1197
configure:2759: checking whether we are using the GNU C compiler
1198
configure:2778: cc -c -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   conftest.c >&5
1199
configure:2778: $? = 0
1200
configure:2787: result: yes
1201
configure:2796: checking whether cc accepts -g
1202
configure:2816: cc -c -g  conftest.c >&5
1203
configure:2816: $? = 0
1204
configure:2857: result: yes
1205
configure:2874: checking for cc option to accept ISO C89
1206
configure:2937: cc  -c -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   conftest.c >&5
1207
configure:2937: $? = 0
1208
configure:2950: result: none needed
1209
configure:2984: checking for a BSD-compatible install
1210
configure:3052: result: /usr/bin/install -c
1211
configure:3063: checking whether make sets $(MAKE)
1212
configure:3085: result: yes
1213
configure:3097: checking for pthread_create in -lpthread
1214
configure:3122: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c -lpthread   >&5
1215
configure:3122: $? = 0
1216
configure:3131: result: yes
1217
configure:3142: checking for connect in -lsocket
1218
configure:3167: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c -lsocket  -lpthread  >&5
1219
/usr/bin/ld: cannot find -lsocket
1220
cc: error: linker command failed with exit code 1 (use -v to see invocation)
1221
configure:3167: $? = 1
1222
configure: failed program was:
1223
| /* confdefs.h */
1224
| #define PACKAGE_NAME "pwol"
1225
| #define PACKAGE_TARNAME "pwol"
1226
| #define PACKAGE_VERSION "1.5"
1227
| #define PACKAGE_STRING "pwol 1.5"
1228
| #define PACKAGE_BUGREPORT "pen@lysator.liu.se"
1229
| #define PACKAGE_URL "https://github.com/ptrrkssn/pwol"
1230
| #define HAVE_LIBPTHREAD 1
1231
| /* end confdefs.h.  */
1232
| 
1233
| /* Override any GCC internal prototype to avoid an error.
1234
|    Use char because int might match the return type of a GCC
1235
|    builtin and then its argument prototype would still apply.  */
1236
| #ifdef __cplusplus
1237
| extern "C"
1238
| #endif
1239
| char connect ();
1240
| int
1241
| main ()
1242
| {
1243
| return connect ();
1244
|   ;
1245
|   return 0;
1246
| }
1247
configure:3176: result: no
1248
configure:3187: checking for gethostbyname in -lnsl
1249
configure:3212: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c -lnsl  -lpthread  >&5
1250
/usr/bin/ld: cannot find -lnsl
1251
cc: error: linker command failed with exit code 1 (use -v to see invocation)
1252
configure:3212: $? = 1
1253
configure: failed program was:
1254
| /* confdefs.h */
1255
| #define PACKAGE_NAME "pwol"
1256
| #define PACKAGE_TARNAME "pwol"
1257
| #define PACKAGE_VERSION "1.5"
1258
| #define PACKAGE_STRING "pwol 1.5"
1259
| #define PACKAGE_BUGREPORT "pen@lysator.liu.se"
1260
| #define PACKAGE_URL "https://github.com/ptrrkssn/pwol"
1261
| #define HAVE_LIBPTHREAD 1
1262
| /* end confdefs.h.  */
1263
| 
1264
| /* Override any GCC internal prototype to avoid an error.
1265
|    Use char because int might match the return type of a GCC
1266
|    builtin and then its argument prototype would still apply.  */
1267
| #ifdef __cplusplus
1268
| extern "C"
1269
| #endif
1270
| char gethostbyname ();
1271
| int
1272
| main ()
1273
| {
1274
| return gethostbyname ();
1275
|   ;
1276
|   return 0;
1277
| }
1278
configure:3221: result: no
1279
configure:3239: checking how to run the C preprocessor
1280
configure:3309: result: cpp
1281
configure:3329: cpp  conftest.c
1282
configure:3329: $? = 0
1283
configure:3343: cpp  conftest.c
1284
conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
1285
#include <ac_nonexistent.h>
1286
         ^~~~~~~~~~~~~~~~~~
1287
1 error generated.
1288
configure:3343: $? = 1
1289
configure: failed program was:
1290
| /* confdefs.h */
1291
| #define PACKAGE_NAME "pwol"
1292
| #define PACKAGE_TARNAME "pwol"
1293
| #define PACKAGE_VERSION "1.5"
1294
| #define PACKAGE_STRING "pwol 1.5"
1295
| #define PACKAGE_BUGREPORT "pen@lysator.liu.se"
1296
| #define PACKAGE_URL "https://github.com/ptrrkssn/pwol"
1297
| #define HAVE_LIBPTHREAD 1
1298
| /* end confdefs.h.  */
1299
| #include <ac_nonexistent.h>
1300
configure:3372: checking for grep that handles long lines and -e
1301
configure:3430: result: /usr/bin/grep
1302
configure:3435: checking for egrep
1303
configure:3497: result: /usr/bin/egrep
1304
configure:3502: checking for ANSI C header files
1305
configure:3606: result: yes
1306
configure:3619: checking for sys/types.h
1307
configure:3619: result: yes
1308
configure:3619: checking for sys/stat.h
1309
configure:3619: result: yes
1310
configure:3619: checking for stdlib.h
1311
configure:3619: result: yes
1312
configure:3619: checking for string.h
1313
configure:3619: result: yes
1314
configure:3619: checking for memory.h
1315
configure:3619: result: yes
1316
configure:3619: checking for strings.h
1317
configure:3619: result: yes
1318
configure:3619: checking for inttypes.h
1319
configure:3619: result: yes
1320
configure:3619: checking for stdint.h
1321
configure:3619: result: yes
1322
configure:3619: checking for unistd.h
1323
configure:3619: result: yes
1324
configure:3634: checking for arpa/inet.h
1325
configure:3634: result: yes
1326
configure:3634: checking for fcntl.h
1327
configure:3634: result: yes
1328
configure:3634: checking for netdb.h
1329
configure:3634: result: yes
1330
configure:3634: checking for netinet/in.h
1331
configure:3634: result: yes
1332
configure:3634: checking for stdlib.h
1333
configure:3634: result: yes
1334
configure:3634: checking for string.h
1335
configure:3634: result: yes
1336
configure:3634: checking for sys/socket.h
1337
configure:3634: result: yes
1338
configure:3634: checking syslog.h usability
1339
configure:3634: cc -c -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   conftest.c >&5
1340
configure:3634: $? = 0
1341
configure:3634: result: yes
1342
configure:3634: checking syslog.h presence
1343
configure:3634: cpp  conftest.c
1344
configure:3634: $? = 0
1345
configure:3634: result: yes
1346
configure:3634: checking for syslog.h
1347
configure:3634: result: yes
1348
configure:3634: checking for unistd.h
1349
configure:3634: result: yes
1350
configure:3646: checking for pid_t
1351
configure:3646: result: yes
1352
configure:3657: checking for size_t
1353
configure:3657: result: yes
1354
configure:3668: checking for ssize_t
1355
configure:3668: result: yes
1356
configure:3683: checking for vfork.h
1357
configure:3683: result: no
1358
configure:3696: checking for fork
1359
configure:3696: result: yes
1360
configure:3696: checking for vfork
1361
configure:3696: result: yes
1362
configure:3706: checking for working fork
1363
configure:3728: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c -lpthread  >&5
1364
configure:3728: $? = 0
1365
configure:3728: ./conftest
1366
configure:3728: $? = 0
1367
configure:3738: result: yes
1368
configure:3759: checking for working vfork
1369
configure:3869: result: yes
1370
configure:3896: checking for stdlib.h
1371
configure:3896: result: yes
1372
configure:3906: checking for GNU libc compatible malloc
1373
configure:3940: result: yes
1374
configure:3963: checking for stdlib.h
1375
configure:3963: result: yes
1376
configure:3973: checking for GNU libc compatible realloc
1377
configure:3997: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c -lpthread  >&5
1378
configure:3997: $? = 0
1379
configure:3997: ./conftest
1380
configure:3997: $? = 0
1381
configure:4007: result: yes
1382
configure:4031: checking for dup2
1383
configure:4031: result: yes
1384
configure:4031: checking for memset
1385
configure:4031: result: yes
1386
configure:4031: checking for socket
1387
configure:4031: cc -o conftest -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -fstack-protector-strong  conftest.c -lpthread  >&5
1388
configure:4031: $? = 0
1389
configure:4031: result: yes
1390
configure:4031: checking for strchr
1391
configure:4031: result: yes
1392
configure:4031: checking for strdup
1393
configure:4031: result: yes
1394
configure:4031: checking for strerror
1395
configure:4031: result: yes
1396
configure:4157: creating ./config.status
1397
1398
## ---------------------- ##
1399
## Running config.status. ##
1400
## ---------------------- ##
1401
1402
This file was extended by pwol config.status 1.5, which was
1403
generated by GNU Autoconf 2.69.  Invocation command line was
1404
1405
  CONFIG_FILES    = 
1406
  CONFIG_HEADERS  = 
1407
  CONFIG_LINKS    = 
1408
  CONFIG_COMMANDS = 
1409
  $ ./config.status 
1410
1411
on filur00
1412
1413
config.status:830: creating Makefile
1414
config.status:830: creating pwol.1
1415
config.status:830: creating pwol.conf.5
1416
config.status:830: creating pkgs/Makefile.port
1417
config.status:830: creating config.h
1418
1419
## ---------------- ##
1420
## Cache variables. ##
1421
## ---------------- ##
1422
1423
ac_cv_c_compiler_gnu=yes
1424
ac_cv_c_int16_t=yes
1425
ac_cv_c_int32_t=yes
1426
ac_cv_c_int64_t=yes
1427
ac_cv_c_int8_t=yes
1428
ac_cv_c_uint16_t=yes
1429
ac_cv_c_uint32_t=yes
1430
ac_cv_c_uint64_t=yes
1431
ac_cv_c_uint8_t=yes
1432
ac_cv_env_CC_set=set
1433
ac_cv_env_CC_value=cc
1434
ac_cv_env_CFLAGS_set=set
1435
ac_cv_env_CFLAGS_value='-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing '
1436
ac_cv_env_CPPFLAGS_set=set
1437
ac_cv_env_CPPFLAGS_value=''
1438
ac_cv_env_CPP_set=set
1439
ac_cv_env_CPP_value=cpp
1440
ac_cv_env_LDFLAGS_set=set
1441
ac_cv_env_LDFLAGS_value=' -fstack-protector-strong '
1442
ac_cv_env_LIBS_set=set
1443
ac_cv_env_LIBS_value=''
1444
ac_cv_env_build_alias_set=set
1445
ac_cv_env_build_alias_value=amd64-portbld-freebsd11.3
1446
ac_cv_env_host_alias_set=''
1447
ac_cv_env_host_alias_value=''
1448
ac_cv_env_target_alias_set=''
1449
ac_cv_env_target_alias_value=''
1450
ac_cv_func___b64_ntop=yes
1451
ac_cv_func___b64_pton=yes
1452
ac_cv_func__getlong=yes
1453
ac_cv_func__getshort=yes
1454
ac_cv_func__stat=yes
1455
ac_cv_func_abs=yes
1456
ac_cv_func_accept4=yes
1457
ac_cv_func_accept=yes
1458
ac_cv_func_acl_create_entry_np=yes
1459
ac_cv_func_acl_delete_def_file=yes
1460
ac_cv_func_acl_delete_fd_np=yes
1461
ac_cv_func_acl_delete_file_np=yes
1462
ac_cv_func_acl_free=yes
1463
ac_cv_func_acl_from_text=yes
1464
ac_cv_func_acl_get_fd=yes
1465
ac_cv_func_acl_get_file=yes
1466
ac_cv_func_acl_set_fd=yes
1467
ac_cv_func_acl_set_file=yes
1468
ac_cv_func_alarm=yes
1469
ac_cv_func_alloca=yes
1470
ac_cv_func_alphasort=yes
1471
ac_cv_func_arc4random=yes
1472
ac_cv_func_arc4random_buf=yes
1473
ac_cv_func_arc4random_uniform=yes
1474
ac_cv_func_argz_count=no
1475
ac_cv_func_argz_next=no
1476
ac_cv_func_argz_stringify=no
1477
ac_cv_func_asprintf=yes
1478
ac_cv_func_atexit=yes
1479
ac_cv_func_atoll=yes
1480
ac_cv_func_basename=yes
1481
ac_cv_func_bcmp=yes
1482
ac_cv_func_bcopy=yes
1483
ac_cv_func_bindresvport_sa=yes
1484
ac_cv_func_bsearch=yes
1485
ac_cv_func_btowc=yes
1486
ac_cv_func_bzero=yes
1487
ac_cv_func_calloc=yes
1488
ac_cv_func_chown=yes
1489
ac_cv_func_clock=yes
1490
ac_cv_func_clock_gettime=yes
1491
ac_cv_func_closedir=yes
1492
ac_cv_func_closefrom=yes
1493
ac_cv_func_daemon=yes
1494
ac_cv_func_dirfd=yes
1495
ac_cv_func_dirname=yes
1496
ac_cv_func_dlopen=yes
1497
ac_cv_func_dprintf=yes
1498
ac_cv_func_dup2=yes
1499
ac_cv_func_eaccess=yes
1500
ac_cv_func_endgrent=yes
1501
ac_cv_func_endutent=no
1502
ac_cv_func_endutxent=yes
1503
ac_cv_func_err=yes
1504
ac_cv_func_errx=yes
1505
ac_cv_func_fchmod=yes
1506
ac_cv_func_fchown=yes
1507
ac_cv_func_fcntl=yes
1508
ac_cv_func_ffs=yes
1509
ac_cv_func_ffsl=yes
1510
ac_cv_func_ffsll=yes
1511
ac_cv_func_fileno=yes
1512
ac_cv_func_fls=yes
1513
ac_cv_func_flsl=yes
1514
ac_cv_func_flsll=yes
1515
ac_cv_func_fork=yes
1516
ac_cv_func_fork_working=yes
1517
ac_cv_func_fork_works=yes
1518
ac_cv_func_fprintf=yes
1519
ac_cv_func_fpurge=yes
1520
ac_cv_func_freeaddrinfo=yes
1521
ac_cv_func_fstat=yes
1522
ac_cv_func_fstatat=yes
1523
ac_cv_func_fstatfs=yes
1524
ac_cv_func_fstatvfs=yes
1525
ac_cv_func_fsync=yes
1526
ac_cv_func_futimes=yes
1527
ac_cv_func_fwprintf=yes
1528
ac_cv_func_gai_strerror=yes
1529
ac_cv_func_getaddrinfo=yes
1530
ac_cv_func_getcwd=yes
1531
ac_cv_func_getdelim=yes
1532
ac_cv_func_getdtablesize=yes
1533
ac_cv_func_getegid=yes
1534
ac_cv_func_getenv=yes
1535
ac_cv_func_geteuid=yes
1536
ac_cv_func_getgid=yes
1537
ac_cv_func_getgrent=yes
1538
ac_cv_func_getgrouplist=yes
1539
ac_cv_func_gethostbyname=yes
1540
ac_cv_func_gethostname=yes
1541
ac_cv_func_getline=yes
1542
ac_cv_func_getnameinfo=yes
1543
ac_cv_func_getopt=yes
1544
ac_cv_func_getopt_long_only=yes
1545
ac_cv_func_getpagesize=yes
1546
ac_cv_func_getpeereid=yes
1547
ac_cv_func_getpgid=yes
1548
ac_cv_func_getpgrp=yes
1549
ac_cv_func_getpgrp_void=yes
1550
ac_cv_func_getpid=yes
1551
ac_cv_func_getrlimit=yes
1552
ac_cv_func_getrusage=yes
1553
ac_cv_func_gettimeofday=yes
1554
ac_cv_func_getttyent=yes
1555
ac_cv_func_getuid=yes
1556
ac_cv_func_getutent=no
1557
ac_cv_func_getutid=no
1558
ac_cv_func_getutline=no
1559
ac_cv_func_getutxent=yes
1560
ac_cv_func_getutxid=yes
1561
ac_cv_func_getutxline=yes
1562
ac_cv_func_getutxuser=yes
1563
ac_cv_func_getwd=yes
1564
ac_cv_func_glob=yes
1565
ac_cv_func_group_from_gid=yes
1566
ac_cv_func_index=yes
1567
ac_cv_func_inet_aton=yes
1568
ac_cv_func_inet_ntoa=yes
1569
ac_cv_func_inet_ntop=yes
1570
ac_cv_func_innetgr=yes
1571
ac_cv_func_insque=yes
1572
ac_cv_func_isascii=yes
1573
ac_cv_func_isblank=yes
1574
ac_cv_func_issetugid=yes
1575
ac_cv_func_iswblank=yes
1576
ac_cv_func_iswcntrl=yes
1577
ac_cv_func_iswctype=yes
1578
ac_cv_func_kill=yes
1579
ac_cv_func_killpg=yes
1580
ac_cv_func_labs=yes
1581
ac_cv_func_link=yes
1582
ac_cv_func_llabs=yes
1583
ac_cv_func_localtime=yes
1584
ac_cv_func_login_getcapbool=yes
1585
ac_cv_func_lstat=yes
1586
ac_cv_func_lstat_dereferences_slashed_symlink=yes
1587
ac_cv_func_malloc=yes
1588
ac_cv_func_malloc_0_nonnull=yes
1589
ac_cv_func_mblen=yes
1590
ac_cv_func_mbrlen=yes
1591
ac_cv_func_mbrtowc=yes
1592
ac_cv_func_mbsinit=yes
1593
ac_cv_func_mbsnrtowcs=yes
1594
ac_cv_func_mbsrtowcs=yes
1595
ac_cv_func_mbstowcs=yes
1596
ac_cv_func_mbtowc=yes
1597
ac_cv_func_memchr=yes
1598
ac_cv_func_memcmp=yes
1599
ac_cv_func_memcpy=yes
1600
ac_cv_func_memmove=yes
1601
ac_cv_func_memset=yes
1602
ac_cv_func_mincore=yes
1603
ac_cv_func_mkdtemp=yes
1604
ac_cv_func_mkstemp=yes
1605
ac_cv_func_mkstemps=yes
1606
ac_cv_func_mktemp=yes
1607
ac_cv_func_mktemps=yes
1608
ac_cv_func_mlock=yes
1609
ac_cv_func_mmap=yes
1610
ac_cv_func_mmap_fixed_mapped=yes
1611
ac_cv_func_mprotect=yes
1612
ac_cv_func_munlock=yes
1613
ac_cv_func_munmap=yes
1614
ac_cv_func_newlocale=yes
1615
ac_cv_func_nl_langinfo=yes
1616
ac_cv_func_obstacks=no
1617
ac_cv_func_opendir=yes
1618
ac_cv_func_pam_getenvlist=yes
1619
ac_cv_func_pam_putenv=yes
1620
ac_cv_func_pathconf=yes
1621
ac_cv_func_pipe=yes
1622
ac_cv_func_poll=yes
1623
ac_cv_func_posix_spawn=yes
1624
ac_cv_func_pread=yes
1625
ac_cv_func_printf=yes
1626
ac_cv_func_psignal=yes
1627
ac_cv_func_pstat_getdynamic=no
1628
ac_cv_func_pthread_cond_broadcast=yes
1629
ac_cv_func_pthread_cond_destroy=yes
1630
ac_cv_func_pthread_cond_init=yes
1631
ac_cv_func_pthread_cond_signal=yes
1632
ac_cv_func_pthread_cond_timedwait=yes
1633
ac_cv_func_pthread_cond_wait=yes
1634
ac_cv_func_pthread_equal=yes
1635
ac_cv_func_pthread_exit=yes
1636
ac_cv_func_pthread_mutex_destroy=yes
1637
ac_cv_func_pthread_mutex_init=yes
1638
ac_cv_func_pthread_mutex_lock=yes
1639
ac_cv_func_pthread_mutex_unlock=yes
1640
ac_cv_func_pthread_self=yes
1641
ac_cv_func_putc=yes
1642
ac_cv_func_putc_unlocked=yes
1643
ac_cv_func_putchar=yes
1644
ac_cv_func_putchar_unlocked=yes
1645
ac_cv_func_putenv=yes
1646
ac_cv_func_pututline=no
1647
ac_cv_func_pututxline=yes
1648
ac_cv_func_putw=yes
1649
ac_cv_func_pwrite=yes
1650
ac_cv_func_raise=yes
1651
ac_cv_func_rand=yes
1652
ac_cv_func_random=yes
1653
ac_cv_func_rawmemchr=no
1654
ac_cv_func_readdir=yes
1655
ac_cv_func_readlink=yes
1656
ac_cv_func_readlinkat=yes
1657
ac_cv_func_readpassphrase=yes
1658
ac_cv_func_realloc_0_nonnull=yes
1659
ac_cv_func_realpath=yes
1660
ac_cv_func_recvmsg=yes
1661
ac_cv_func_remque=yes
1662
ac_cv_func_rename=yes
1663
ac_cv_func_rindex=yes
1664
ac_cv_func_rresvport_af=yes
1665
ac_cv_func_scandir=yes
1666
ac_cv_func_scandir_b=yes
1667
ac_cv_func_sched_yield=yes
1668
ac_cv_func_select=yes
1669
ac_cv_func_sendmsg=yes
1670
ac_cv_func_setegid=yes
1671
ac_cv_func_setenv=yes
1672
ac_cv_func_seteuid=yes
1673
ac_cv_func_setgid=yes
1674
ac_cv_func_setgrent=yes
1675
ac_cv_func_setgroupent=yes
1676
ac_cv_func_setgroups=yes
1677
ac_cv_func_setlinebuf=yes
1678
ac_cv_func_setlocale=yes
1679
ac_cv_func_setlogin=yes
1680
ac_cv_func_setpassent=yes
1681
ac_cv_func_setpgid=yes
1682
ac_cv_func_setproctitle=yes
1683
ac_cv_func_setregid=yes
1684
ac_cv_func_setresgid=yes
1685
ac_cv_func_setresuid=yes
1686
ac_cv_func_setreuid=yes
1687
ac_cv_func_setrlimit=yes
1688
ac_cv_func_setsid=yes
1689
ac_cv_func_setsockopt=yes
1690
ac_cv_func_setuid=yes
1691
ac_cv_func_setutent=no
1692
ac_cv_func_setutxdb=yes
1693
ac_cv_func_setutxent=yes
1694
ac_cv_func_setvbuf=yes
1695
ac_cv_func_shmget=yes
1696
ac_cv_func_sigaction=yes
1697
ac_cv_func_sigaltstack=yes
1698
ac_cv_func_sigblock=yes
1699
ac_cv_func_siginterrupt=yes
1700
ac_cv_func_sigmask=yes
1701
ac_cv_func_sigprocmask=yes
1702
ac_cv_func_sigsetmask=yes
1703
ac_cv_func_sigvec=yes
1704
ac_cv_func_sleep=yes
1705
ac_cv_func_snprintf=yes
1706
ac_cv_func_socket=yes
1707
ac_cv_func_socketpair=yes
1708
ac_cv_func_sprintf=yes
1709
ac_cv_func_srand=yes
1710
ac_cv_func_srandom=yes
1711
ac_cv_func_stat=yes
1712
ac_cv_func_statfs=yes
1713
ac_cv_func_statvfs=yes
1714
ac_cv_func_stpcpy=yes
1715
ac_cv_func_stpncpy=yes
1716
ac_cv_func_strbrk=yes
1717
ac_cv_func_strcasecmp=yes
1718
ac_cv_func_strcasecmp_l=yes
1719
ac_cv_func_strcasestr=yes
1720
ac_cv_func_strcasestr_l=yes
1721
ac_cv_func_strchr=yes
1722
ac_cv_func_strchrnul=yes
1723
ac_cv_func_strcspn=yes
1724
ac_cv_func_strdup=yes
1725
ac_cv_func_strerror=yes
1726
ac_cv_func_strerror_r=yes
1727
ac_cv_func_strftime=yes
1728
ac_cv_func_strlcat=yes
1729
ac_cv_func_strlcpy=yes
1730
ac_cv_func_strlen=yes
1731
ac_cv_func_strmode=yes
1732
ac_cv_func_strncasecmp=yes
1733
ac_cv_func_strncmp=yes
1734
ac_cv_func_strncmp_working=yes
1735
ac_cv_func_strndup=yes
1736
ac_cv_func_strnlen=yes
1737
ac_cv_func_strnlen_working=yes
1738
ac_cv_func_strnstr=yes
1739
ac_cv_func_strpbrk=yes
1740
ac_cv_func_strptime=yes
1741
ac_cv_func_strrchr=yes
1742
ac_cv_func_strsep=yes
1743
ac_cv_func_strsignal=yes
1744
ac_cv_func_strstr=yes
1745
ac_cv_func_strtod=yes
1746
ac_cv_func_strtof=yes
1747
ac_cv_func_strtol=yes
1748
ac_cv_func_strtold=yes
1749
ac_cv_func_strtoll=yes
1750
ac_cv_func_strtonum=yes
1751
ac_cv_func_strtoul=yes
1752
ac_cv_func_strtoull=yes
1753
ac_cv_func_symlink=yes
1754
ac_cv_func_sysconf=yes
1755
ac_cv_func_sysctl=yes
1756
ac_cv_func_tcgetpgrp=yes
1757
ac_cv_func_time=yes
1758
ac_cv_func_times=yes
1759
ac_cv_func_tmpnam=yes
1760
ac_cv_func_towlower=yes
1761
ac_cv_func_truncate=yes
1762
ac_cv_func_tsearch=yes
1763
ac_cv_func_uname=yes
1764
ac_cv_func_unlink=yes
1765
ac_cv_func_unsetenv=yes
1766
ac_cv_func_uselocale=yes
1767
ac_cv_func_user_from_uid=yes
1768
ac_cv_func_usleep=yes
1769
ac_cv_func_utime=yes
1770
ac_cv_func_utimes=yes
1771
ac_cv_func_utmpname=no
1772
ac_cv_func_vasprintf=yes
1773
ac_cv_func_vdprintf=yes
1774
ac_cv_func_vfork=yes
1775
ac_cv_func_vfork_working=yes
1776
ac_cv_func_vfork_works=yes
1777
ac_cv_func_vfprintf=yes
1778
ac_cv_func_vprintf=yes
1779
ac_cv_func_vsnprintf=yes
1780
ac_cv_func_vsprintf=yes
1781
ac_cv_func_wait2=yes
1782
ac_cv_func_wait3=yes
1783
ac_cv_func_wait3_rusage=yes
1784
ac_cv_func_wait4=yes
1785
ac_cv_func_wait6=yes
1786
ac_cv_func_wait=yes
1787
ac_cv_func_waitid=yes
1788
ac_cv_func_waitpid=yes
1789
ac_cv_func_warn=yes
1790
ac_cv_func_warnx=yes
1791
ac_cv_func_wcrtomb=yes
1792
ac_cv_func_wcscoll=yes
1793
ac_cv_func_wcslen=yes
1794
ac_cv_func_wcsnlen=yes
1795
ac_cv_func_wcswidth=yes
1796
ac_cv_func_wctob=yes
1797
ac_cv_func_wcwidth=yes
1798
ac_cv_func_wmemchr=yes
1799
ac_cv_func_wmemcpy=yes
1800
ac_cv_func_yield=no
1801
ac_cv_func_yp_match=yes
1802
ac_cv_have___va_copy=yes
1803
ac_cv_have_clock_t=yes
1804
ac_cv_have_control_in_msghdr=yes
1805
ac_cv_have_decl_GLOB_NOMATCH=yes
1806
ac_cv_have_decl_LLONG_MAX=yes
1807
ac_cv_have_decl_MAXSYMLINKS=yes
1808
ac_cv_have_decl_O_NONBLOCK=yes
1809
ac_cv_have_decl_RLIMIT_NPROC=yes
1810
ac_cv_have_decl_SHUT_RD=yes
1811
ac_cv_have_decl__Exit=yes
1812
ac_cv_have_decl_abort=yes
1813
ac_cv_have_decl_alarm=yes
1814
ac_cv_have_decl_alphasort=yes
1815
ac_cv_have_decl_atof=yes
1816
ac_cv_have_decl_atol=yes
1817
ac_cv_have_decl_atoll=yes
1818
ac_cv_have_decl_btowc=yes
1819
ac_cv_have_decl_calloc=yes
1820
ac_cv_have_decl_chdir=yes
1821
ac_cv_have_decl_chown=yes
1822
ac_cv_have_decl_clearerr_unlocked=yes
1823
ac_cv_have_decl_clock=yes
1824
ac_cv_have_decl_closedir=yes
1825
ac_cv_have_decl_dprintf=yes
1826
ac_cv_have_decl_dup2=yes
1827
ac_cv_have_decl_dup=yes
1828
ac_cv_have_decl_endusershell=yes
1829
ac_cv_have_decl_errno=yes
1830
ac_cv_have_decl_faccessat=yes
1831
ac_cv_have_decl_fchdir=yes
1832
ac_cv_have_decl_fchmodat=yes
1833
ac_cv_have_decl_fchownat=yes
1834
ac_cv_have_decl_fcntl=yes
1835
ac_cv_have_decl_fdopendir=yes
1836
ac_cv_have_decl_feof_unlocked=yes
1837
ac_cv_have_decl_feof_unlocked_fgets_unlocked=yes
1838
ac_cv_have_decl_ferror_unlocked=yes
1839
ac_cv_have_decl_ffsl=yes
1840
ac_cv_have_decl_ffsll=yes
1841
ac_cv_have_decl_fpurge=yes
1842
ac_cv_have_decl_free=yes
1843
ac_cv_have_decl_frexpl=yes
1844
ac_cv_have_decl_fseeko=yes
1845
ac_cv_have_decl_fstat=yes
1846
ac_cv_have_decl_fstatat=yes
1847
ac_cv_have_decl_fsync=yes
1848
ac_cv_have_decl_ftello=yes
1849
ac_cv_have_decl_ftruncate=yes
1850
ac_cv_have_decl_getc_unlocked=yes
1851
ac_cv_have_decl_getchar_unlocked=yes
1852
ac_cv_have_decl_getcwd=yes
1853
ac_cv_have_decl_getdelim=yes
1854
ac_cv_have_decl_getdomainname=yes
1855
ac_cv_have_decl_getdtablesize=yes
1856
ac_cv_have_decl_getenv=yes
1857
ac_cv_have_decl_getgroups=yes
1858
ac_cv_have_decl_gethostname=yes
1859
ac_cv_have_decl_getline=yes
1860
ac_cv_have_decl_getloadavg=yes
1861
ac_cv_have_decl_getlogin=yes
1862
ac_cv_have_decl_getlogin_r=yes
1863
ac_cv_have_decl_getopt=yes
1864
ac_cv_have_decl_getpagesize=yes
1865
ac_cv_have_decl_getrlimit=yes
1866
ac_cv_have_decl_getrusage=yes
1867
ac_cv_have_decl_getsubopt=yes
1868
ac_cv_have_decl_gettimeofday=yes
1869
ac_cv_have_decl_getusershell=yes
1870
ac_cv_have_decl_getwd=yes
1871
ac_cv_have_decl_grantpt=yes
1872
ac_cv_have_decl_h_errno=yes
1873
ac_cv_have_decl_imaxabs=yes
1874
ac_cv_have_decl_imaxdiv=yes
1875
ac_cv_have_decl_initstate=yes
1876
ac_cv_have_decl_isatty=yes
1877
ac_cv_have_decl_isblank=yes
1878
ac_cv_have_decl_iswblank=yes
1879
ac_cv_have_decl_iswctype=yes
1880
ac_cv_have_decl_lchmod=yes
1881
ac_cv_have_decl_lchown=yes
1882
ac_cv_have_decl_link=yes
1883
ac_cv_have_decl_linkat=yes
1884
ac_cv_have_decl_lseek=yes
1885
ac_cv_have_decl_lstat=yes
1886
ac_cv_have_decl_malloc=yes
1887
ac_cv_have_decl_mbrlen=yes
1888
ac_cv_have_decl_mbrtowc=yes
1889
ac_cv_have_decl_mbsinit=yes
1890
ac_cv_have_decl_mbsnrtowcs=yes
1891
ac_cv_have_decl_mbsrtowcs=yes
1892
ac_cv_have_decl_memmem=yes
1893
ac_cv_have_decl_memrchr=yes
1894
ac_cv_have_decl_mkdirat=yes
1895
ac_cv_have_decl_mkdtemp=yes
1896
ac_cv_have_decl_mkfifo=yes
1897
ac_cv_have_decl_mkfifoat=yes
1898
ac_cv_have_decl_mknod=yes
1899
ac_cv_have_decl_mknodat=yes
1900
ac_cv_have_decl_mkstemp=yes
1901
ac_cv_have_decl_nl_langinfo=yes
1902
ac_cv_have_decl_offsetof=yes
1903
ac_cv_have_decl_openat=yes
1904
ac_cv_have_decl_opendir=yes
1905
ac_cv_have_decl_pclose=yes
1906
ac_cv_have_decl_pipe=yes
1907
ac_cv_have_decl_popen=yes
1908
ac_cv_have_decl_posix_openpt=yes
1909
ac_cv_have_decl_posix_spawn=yes
1910
ac_cv_have_decl_posix_spawn_file_actions_addclose=yes
1911
ac_cv_have_decl_posix_spawn_file_actions_adddup2=yes
1912
ac_cv_have_decl_posix_spawn_file_actions_addopen=yes
1913
ac_cv_have_decl_posix_spawn_file_actions_destroy=yes
1914
ac_cv_have_decl_posix_spawn_file_actions_init=yes
1915
ac_cv_have_decl_posix_spawnattr_destroy=yes
1916
ac_cv_have_decl_posix_spawnattr_getflags=yes
1917
ac_cv_have_decl_posix_spawnattr_getpgroup=yes
1918
ac_cv_have_decl_posix_spawnattr_getschedparam=yes
1919
ac_cv_have_decl_posix_spawnattr_getschedpolicy=yes
1920
ac_cv_have_decl_posix_spawnattr_getsigdefault=yes
1921
ac_cv_have_decl_posix_spawnattr_getsigmask=yes
1922
ac_cv_have_decl_posix_spawnattr_init=yes
1923
ac_cv_have_decl_posix_spawnattr_setflags=yes
1924
ac_cv_have_decl_posix_spawnattr_setpgroup=yes
1925
ac_cv_have_decl_posix_spawnattr_setschedparam=yes
1926
ac_cv_have_decl_posix_spawnattr_setschedpolicy=yes
1927
ac_cv_have_decl_posix_spawnattr_setsigdefault=yes
1928
ac_cv_have_decl_posix_spawnattr_setsigmask=yes
1929
ac_cv_have_decl_posix_spawnp=yes
1930
ac_cv_have_decl_pread=yes
1931
ac_cv_have_decl_pselect=yes
1932
ac_cv_have_decl_pthread_sigmask=yes
1933
ac_cv_have_decl_ptsname=yes
1934
ac_cv_have_decl_putc_unlocked=yes
1935
ac_cv_have_decl_putchar_unlocked=yes
1936
ac_cv_have_decl_pwrite=yes
1937
ac_cv_have_decl_random=yes
1938
ac_cv_have_decl_rawmemchr=yes
1939
ac_cv_have_decl_readdir=yes
1940
ac_cv_have_decl_readlink=yes
1941
ac_cv_have_decl_readlinkat=yes
1942
ac_cv_have_decl_realloc=yes
1943
ac_cv_have_decl_realpath=yes
1944
ac_cv_have_decl_renameat=yes
1945
ac_cv_have_decl_rewinddir=yes
1946
ac_cv_have_decl_rmdir=yes
1947
ac_cv_have_decl_rpmatch=yes
1948
ac_cv_have_decl_sbrk=yes
1949
ac_cv_have_decl_scandir=yes
1950
ac_cv_have_decl_select=yes
1951
ac_cv_have_decl_setenv=yes
1952
ac_cv_have_decl_sethostname=yes
1953
ac_cv_have_decl_setlocale=yes
1954
ac_cv_have_decl_setrlimit=yes
1955
ac_cv_have_decl_setstate=yes
1956
ac_cv_have_decl_setusershell=yes
1957
ac_cv_have_decl_sigaction=yes
1958
ac_cv_have_decl_sigaddset=yes
1959
ac_cv_have_decl_sigaltstack=yes
1960
ac_cv_have_decl_sigdelset=yes
1961
ac_cv_have_decl_sigemptyset=yes
1962
ac_cv_have_decl_sigfillset=yes
1963
ac_cv_have_decl_sigismember=yes
1964
ac_cv_have_decl_sigpending=yes
1965
ac_cv_have_decl_sigprocmask=yes
1966
ac_cv_have_decl_sleep=yes
1967
ac_cv_have_decl_snprintf=yes
1968
ac_cv_have_decl_srandom=yes
1969
ac_cv_have_decl_stat=yes
1970
ac_cv_have_decl_stpcpy=yes
1971
ac_cv_have_decl_stpncpy=yes
1972
ac_cv_have_decl_strcasestr=yes
1973
ac_cv_have_decl_strdup=yes
1974
ac_cv_have_decl_strerror_r=yes
1975
ac_cv_have_decl_strncat=yes
1976
ac_cv_have_decl_strndup=yes
1977
ac_cv_have_decl_strnlen=yes
1978
ac_cv_have_decl_strpbrk=yes
1979
ac_cv_have_decl_strsep=yes
1980
ac_cv_have_decl_strsignal=yes
1981
ac_cv_have_decl_strstr=yes
1982
ac_cv_have_decl_strtod=yes
1983
ac_cv_have_decl_strtoimax=yes
1984
ac_cv_have_decl_strtok_r=yes
1985
ac_cv_have_decl_strtoll=yes
1986
ac_cv_have_decl_strtoull=yes
1987
ac_cv_have_decl_strtoumax=yes
1988
ac_cv_have_decl_symlink=yes
1989
ac_cv_have_decl_symlinkat=yes
1990
ac_cv_have_decl_sys_siglist=yes
1991
ac_cv_have_decl_tcsendbreak=yes
1992
ac_cv_have_decl_times=yes
1993
ac_cv_have_decl_tmpfile=yes
1994
ac_cv_have_decl_towctrans=yes
1995
ac_cv_have_decl_ttyname_r=yes
1996
ac_cv_have_decl_unlink=yes
1997
ac_cv_have_decl_unlinkat=yes
1998
ac_cv_have_decl_unlockpt=yes
1999
ac_cv_have_decl_unsetenv=yes
2000
ac_cv_have_decl_usleep=yes
2001
ac_cv_have_decl_vasprintf=yes
2002
ac_cv_have_decl_vdprintf=yes
2003
ac_cv_have_decl_vsnprintf=yes
2004
ac_cv_have_decl_waitpid=yes
2005
ac_cv_have_decl_wcpcpy=yes
2006
ac_cv_have_decl_wcpncpy=yes
2007
ac_cv_have_decl_wcrtomb=yes
2008
ac_cv_have_decl_wcscasecmp=yes
2009
ac_cv_have_decl_wcscat=yes
2010
ac_cv_have_decl_wcschr=yes
2011
ac_cv_have_decl_wcscmp=yes
2012
ac_cv_have_decl_wcscoll=yes
2013
ac_cv_have_decl_wcscpy=yes
2014
ac_cv_have_decl_wcscspn=yes
2015
ac_cv_have_decl_wcsdup=yes
2016
ac_cv_have_decl_wcslen=yes
2017
ac_cv_have_decl_wcsncasecmp=yes
2018
ac_cv_have_decl_wcsncat=yes
2019
ac_cv_have_decl_wcsncmp=yes
2020
ac_cv_have_decl_wcsncpy=yes
2021
ac_cv_have_decl_wcsnlen=yes
2022
ac_cv_have_decl_wcsnrtombs=yes
2023
ac_cv_have_decl_wcspbrk=yes
2024
ac_cv_have_decl_wcsrchr=yes
2025
ac_cv_have_decl_wcsrtombs=yes
2026
ac_cv_have_decl_wcsspn=yes
2027
ac_cv_have_decl_wcsstr=yes
2028
ac_cv_have_decl_wcstok=yes
2029
ac_cv_have_decl_wcswidth=yes
2030
ac_cv_have_decl_wcsxfrm=yes
2031
ac_cv_have_decl_wctob=yes
2032
ac_cv_have_decl_wctrans=yes
2033
ac_cv_have_decl_wctype=yes
2034
ac_cv_have_decl_wcwidth=yes
2035
ac_cv_have_decl_wmemchr=yes
2036
ac_cv_have_decl_wmemcmp=yes
2037
ac_cv_have_decl_wmemcpy=yes
2038
ac_cv_have_decl_wmemmove=yes
2039
ac_cv_have_decl_wmemset=yes
2040
ac_cv_have_decl_writev=yes
2041
ac_cv_have_getopt_optreset=yes
2042
ac_cv_have_int64_t=yes
2043
ac_cv_have_intxx_t=yes
2044
ac_cv_have_mode_t=yes
2045
ac_cv_have_pid_t=yes
2046
ac_cv_have_pw_change_in_struct_passwd=yes
2047
ac_cv_have_pw_class_in_struct_passwd=yes
2048
ac_cv_have_pw_expire_in_struct_passwd=yes
2049
ac_cv_have_sa_family_t=yes
2050
ac_cv_have_size_t=yes
2051
ac_cv_have_ss_family_in_struct_ss=yes
2052
ac_cv_have_ssize_t=yes
2053
ac_cv_have_struct_addrinfo=yes
2054
ac_cv_have_struct_in6_addr=yes
2055
ac_cv_have_struct_sockaddr_in6=yes
2056
ac_cv_have_struct_sockaddr_storage=yes
2057
ac_cv_have_struct_timeval=yes
2058
ac_cv_have_u_char=yes
2059
ac_cv_have_u_int64_t=yes
2060
ac_cv_have_u_int=yes
2061
ac_cv_have_u_intxx_t=yes
2062
ac_cv_have_va_copy=yes
2063
ac_cv_header_alloca_h=no
2064
ac_cv_header_argz_h=no
2065
ac_cv_header_arpa_inet_h=yes
2066
ac_cv_header_arpa_nameser_h=yes
2067
ac_cv_header_byteswap_h=no
2068
ac_cv_header_ctype_h=yes
2069
ac_cv_header_dirent_h=yes
2070
ac_cv_header_dl_h=no
2071
ac_cv_header_dlfcn_h=yes
2072
ac_cv_header_elf_h=yes
2073
ac_cv_header_err_h=yes
2074
ac_cv_header_errno_h=yes
2075
ac_cv_header_fcntl_h=yes
2076
ac_cv_header_float_h=yes
2077
ac_cv_header_floatingpoint_h=yes
2078
ac_cv_header_getopt_h=yes
2079
ac_cv_header_glob_h=yes
2080
ac_cv_header_inttypes_h=yes
2081
ac_cv_header_langinfo_h=yes
2082
ac_cv_header_libgen_h=yes
2083
ac_cv_header_libutil_h=yes
2084
ac_cv_header_limits_h=yes
2085
ac_cv_header_locale_h=yes
2086
ac_cv_header_login_cap_h=yes
2087
ac_cv_header_math_h=yes
2088
ac_cv_header_memory_h=yes
2089
ac_cv_header_minix_config_h=no
2090
ac_cv_header_net_if_h=yes
2091
ac_cv_header_net_if_media_h=yes
2092
ac_cv_header_net_if_tap_h=yes
2093
ac_cv_header_net_if_tun_h=yes
2094
ac_cv_header_netdb_h=yes
2095
ac_cv_header_netinet_in_h=yes
2096
ac_cv_header_paths_h=yes
2097
ac_cv_header_poll_h=yes
2098
ac_cv_header_pthread_h=yes
2099
ac_cv_header_pwd_h=yes
2100
ac_cv_header_random_h=no
2101
ac_cv_header_readpassphrase_h=yes
2102
ac_cv_header_resolv_h=yes
2103
ac_cv_header_rpc_types_h=yes
2104
ac_cv_header_sched_h=yes
2105
ac_cv_header_search_h=yes
2106
ac_cv_header_security_pam_appl_h=yes
2107
ac_cv_header_signal_h=yes
2108
ac_cv_header_spawn_h=yes
2109
ac_cv_header_stdarg_h=yes
2110
ac_cv_header_stdbool_h=yes
2111
ac_cv_header_stdc=yes
2112
ac_cv_header_stddef_h=yes
2113
ac_cv_header_stdint_h=yes
2114
ac_cv_header_stdio_h=yes
2115
ac_cv_header_stdlib_h=yes
2116
ac_cv_header_string_h=yes
2117
ac_cv_header_strings_h=yes
2118
ac_cv_header_sys_acl_h=yes
2119
ac_cv_header_sys_cdefs_h=yes
2120
ac_cv_header_sys_fcntl_h=yes
2121
ac_cv_header_sys_file_h=yes
2122
ac_cv_header_sys_ioctl_h=yes
2123
ac_cv_header_sys_mman_h=yes
2124
ac_cv_header_sys_mount_h=yes
2125
ac_cv_header_sys_msg_h=yes
2126
ac_cv_header_sys_param_h=yes
2127
ac_cv_header_sys_poll_h=yes
2128
ac_cv_header_sys_ptrace_h=yes
2129
ac_cv_header_sys_resource_h=yes
2130
ac_cv_header_sys_select_h=yes
2131
ac_cv_header_sys_socket_h=yes
2132
ac_cv_header_sys_stat_h=yes
2133
ac_cv_header_sys_statvfs_h=yes
2134
ac_cv_header_sys_sysctl_h=yes
2135
ac_cv_header_sys_time_h=yes
2136
ac_cv_header_sys_timers_h=yes
2137
ac_cv_header_sys_times_h=yes
2138
ac_cv_header_sys_types_h=yes
2139
ac_cv_header_sys_uio_h=yes
2140
ac_cv_header_sys_un_h=yes
2141
ac_cv_header_sys_wait_h=yes
2142
ac_cv_header_syslog_h=yes
2143
ac_cv_header_time_h=yes
2144
ac_cv_header_ttyent_h=yes
2145
ac_cv_header_ucontext_h=yes
2146
ac_cv_header_unistd_h=yes
2147
ac_cv_header_utime_h=yes
2148
ac_cv_header_utmp_h=no
2149
ac_cv_header_utmpx_h=yes
2150
ac_cv_header_vfork_h=no
2151
ac_cv_header_vis_h=yes
2152
ac_cv_header_wchar_h=yes
2153
ac_cv_header_wctype_h=yes
2154
ac_cv_header_zlib_h=yes
2155
ac_cv_lib_crypt_crypt=yes
2156
ac_cv_lib_edit_el_init=yes
2157
ac_cv_lib_nsl_gethostbyname=no
2158
ac_cv_lib_pam_pam_set_item=yes
2159
ac_cv_lib_pthread_pthread_create=yes
2160
ac_cv_lib_socket_connect=no
2161
ac_cv_lib_z_deflate=yes
2162
ac_cv_libc_defines___progname=yes
2163
ac_cv_libc_defines_sys_errlist=yes
2164
ac_cv_libc_defines_sys_nerr=yes
2165
ac_cv_member_HEADER_ad=yes
2166
ac_cv_member_struct___res_state_retrans=yes
2167
ac_cv_member_struct_sigaction_sa_sigaction=yes
2168
ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
2169
ac_cv_member_struct_stat_st_blksize=yes
2170
ac_cv_objext=o
2171
ac_cv_path_BZIP2=/usr/bin/bzip2
2172
ac_cv_path_EGREP=/usr/bin/egrep
2173
ac_cv_path_FGREP=/usr/bin/fgrep
2174
ac_cv_path_GREP=/usr/bin/grep
2175
ac_cv_path_GZIP=/usr/bin/gzip
2176
ac_cv_path_MKTEMP_COMMAND=/usr/bin/mktemp
2177
ac_cv_path_SED=/usr/bin/sed
2178
ac_cv_path_install=/usr/bin/install
2179
ac_cv_path_mkdir=/bin/mkdir
2180
ac_cv_prog_AWK=/usr/bin/awk
2181
ac_cv_prog_CPP=cpp
2182
ac_cv_prog_SED=/usr/bin/sed
2183
ac_cv_prog_ac_ct_CC=cc
2184
ac_cv_prog_cc_c89=''
2185
ac_cv_prog_cc_g=yes
2186
ac_cv_prog_make_make_set=yes
2187
ac_cv_sys_long_file_names=yes
2188
ac_cv_type__Bool=yes
2189
ac_cv_type_char=yes
2190
ac_cv_type_char_p=yes
2191
ac_cv_type_fsblkcnt_t=yes
2192
ac_cv_type_fsfilcnt_t=yes
2193
ac_cv_type_in_addr_t=yes
2194
ac_cv_type_in_port_t=yes
2195
ac_cv_type_int16_t=yes
2196
ac_cv_type_int32_t=yes
2197
ac_cv_type_int=yes
2198
ac_cv_type_intmax_t=yes
2199
ac_cv_type_long=yes
2200
ac_cv_type_long_double=yes
2201
ac_cv_type_long_long=yes
2202
ac_cv_type_long_long_int=yes
2203
ac_cv_type_mbstate_t=yes
2204
ac_cv_type_mode_t=yes
2205
ac_cv_type_nlink_t=yes
2206
ac_cv_type_off_t=yes
2207
ac_cv_type_pid_t=yes
2208
ac_cv_type_posix_spawn_file_actions_t=yes
2209
ac_cv_type_posix_spawnattr_t=yes
2210
ac_cv_type_ptrdiff_t=yes
2211
ac_cv_type_short=yes
2212
ac_cv_type_sig_atomic_t=yes
2213
ac_cv_type_sigset_t=yes
2214
ac_cv_type_size_t=yes
2215
ac_cv_type_socklen_t=yes
2216
ac_cv_type_ssize_t=yes
2217
ac_cv_type_stack_t=yes
2218
ac_cv_type_struct_timespec=yes
2219
ac_cv_type_u_char=yes
2220
ac_cv_type_u_int16_t=yes
2221
ac_cv_type_u_int32_t=yes
2222
ac_cv_type_u_int8_t=yes
2223
ac_cv_type_u_int=yes
2224
ac_cv_type_u_long=yes
2225
ac_cv_type_u_short=yes
2226
ac_cv_type_uid_t=yes
2227
ac_cv_type_uintptr_t=yes
2228
ac_cv_type_unsigned_char=yes
2229
ac_cv_type_unsigned_int=yes
2230
ac_cv_type_unsigned_long=yes
2231
ac_cv_type_unsigned_long_long=yes
2232
ac_cv_type_unsigned_long_long_int=yes
2233
ac_cv_type_unsigned_short=yes
2234
ac_cv_type_volatile_sig_atomic_t=yes
2235
ac_cv_type_wchar_t=yes
2236
ac_cv_type_wint_t=yes
2237
am_cv_prog_tar_ustar=/usr/bin/tar
2238
cl_cv_prog_LN=/bin/ln
2239
cl_cv_prog_cp='/bin/cp -p'
2240
gl_cv_func_btowc_eof=yes
2241
gl_cv_func_btowc_nul=yes
2242
gl_cv_func_fcntl_f_dupfd_cloexec=yes
2243
gl_cv_func_fnmatch_posix=yes
2244
gl_cv_func_fopen_slash=yes
2245
gl_cv_func_frexp_no_libm=yes
2246
gl_cv_func_fseeko=yes
2247
gl_cv_func_ftello=yes
2248
gl_cv_func_getcwd_null=yes
2249
gl_cv_func_getcwd_posix_signature=yes
2250
gl_cv_func_getopt_posix=yes
2251
gl_cv_func_isnand_no_libm=yes
2252
gl_cv_func_ldexp_no_libm=yes
2253
gl_cv_func_lseek_pipe=yes
2254
gl_cv_func_lstat_dereferences_slashed_symlink=yes
2255
gl_cv_func_malloc_0_nonnull=1
2256
gl_cv_func_malloc_posix=yes
2257
gl_cv_func_mbrtowc_incomplete_state=yes
2258
gl_cv_func_mbrtowc_nul_retval=yes
2259
gl_cv_func_mbrtowc_null_arg1=yes
2260
gl_cv_func_mbrtowc_null_arg2=yes
2261
gl_cv_func_mbrtowc_retval=yes
2262
gl_cv_func_mbrtowc_sanitycheck=yes
2263
gl_cv_func_open_slash=yes
2264
gl_cv_func_printf_directive_a=yes
2265
gl_cv_func_printf_directive_f=yes
2266
gl_cv_func_printf_directive_ls=yes
2267
gl_cv_func_printf_directive_n=yes
2268
gl_cv_func_printf_flag_grouping=yes
2269
gl_cv_func_printf_flag_leftadjust=yes
2270
gl_cv_func_printf_flag_zero=yes
2271
gl_cv_func_printf_infinite=yes
2272
gl_cv_func_printf_long_double=yes
2273
gl_cv_func_printf_positions=yes
2274
gl_cv_func_printf_precision=yes
2275
gl_cv_func_printf_sizes_c99=yes
2276
gl_cv_func_sigprocmask=1
2277
gl_cv_func_snprintf_retval_c99=yes
2278
gl_cv_func_snprintf_size1=yes
2279
gl_cv_func_snprintf_usable=yes
2280
gl_cv_func_spawnattr_setschedparam=yes
2281
gl_cv_func_spawnattr_setschedpolicy=yes
2282
gl_cv_func_stat_dir_slash=yes
2283
gl_cv_func_stat_file_slash=yes
2284
gl_cv_func_stpncpy=yes
2285
gl_cv_func_va_copy=yes
2286
gl_cv_func_wcrtomb_retval=yes
2287
gl_cv_have_include_next=yes
2288
gl_cv_have_raw_decl__Exit=yes
2289
gl_cv_have_raw_decl_alphasort=yes
2290
gl_cv_have_raw_decl_atoll=yes
2291
gl_cv_have_raw_decl_btowc=yes
2292
gl_cv_have_raw_decl_chdir=yes
2293
gl_cv_have_raw_decl_chown=yes
2294
gl_cv_have_raw_decl_closedir=yes
2295
gl_cv_have_raw_decl_dprintf=yes
2296
gl_cv_have_raw_decl_dup2=yes
2297
gl_cv_have_raw_decl_dup=yes
2298
gl_cv_have_raw_decl_endusershell=yes
2299
gl_cv_have_raw_decl_faccessat=yes
2300
gl_cv_have_raw_decl_fchdir=yes
2301
gl_cv_have_raw_decl_fchmodat=yes
2302
gl_cv_have_raw_decl_fchownat=yes
2303
gl_cv_have_raw_decl_fcntl=yes
2304
gl_cv_have_raw_decl_fdopendir=yes
2305
gl_cv_have_raw_decl_ffsl=yes
2306
gl_cv_have_raw_decl_ffsll=yes
2307
gl_cv_have_raw_decl_fpurge=yes
2308
gl_cv_have_raw_decl_fseeko=yes
2309
gl_cv_have_raw_decl_fstat=yes
2310
gl_cv_have_raw_decl_fstatat=yes
2311
gl_cv_have_raw_decl_fsync=yes
2312
gl_cv_have_raw_decl_ftello=yes
2313
gl_cv_have_raw_decl_ftruncate=yes
2314
gl_cv_have_raw_decl_getcwd=yes
2315
gl_cv_have_raw_decl_getdelim=yes
2316
gl_cv_have_raw_decl_getdomainname=yes
2317
gl_cv_have_raw_decl_getdtablesize=yes
2318
gl_cv_have_raw_decl_getgroups=yes
2319
gl_cv_have_raw_decl_gethostname=yes
2320
gl_cv_have_raw_decl_getline=yes
2321
gl_cv_have_raw_decl_getloadavg=yes
2322
gl_cv_have_raw_decl_getlogin=yes
2323
gl_cv_have_raw_decl_getlogin_r=yes
2324
gl_cv_have_raw_decl_getpagesize=yes
2325
gl_cv_have_raw_decl_getsubopt=yes
2326
gl_cv_have_raw_decl_gettimeofday=yes
2327
gl_cv_have_raw_decl_getusershell=yes
2328
gl_cv_have_raw_decl_grantpt=yes
2329
gl_cv_have_raw_decl_imaxabs=yes
2330
gl_cv_have_raw_decl_imaxdiv=yes
2331
gl_cv_have_raw_decl_initstate=yes
2332
gl_cv_have_raw_decl_isatty=yes
2333
gl_cv_have_raw_decl_iswctype=yes
2334
gl_cv_have_raw_decl_lchmod=yes
2335
gl_cv_have_raw_decl_lchown=yes
2336
gl_cv_have_raw_decl_link=yes
2337
gl_cv_have_raw_decl_linkat=yes
2338
gl_cv_have_raw_decl_lseek=yes
2339
gl_cv_have_raw_decl_lstat=yes
2340
gl_cv_have_raw_decl_mbrlen=yes
2341
gl_cv_have_raw_decl_mbrtowc=yes
2342
gl_cv_have_raw_decl_mbsinit=yes
2343
gl_cv_have_raw_decl_mbsnrtowcs=yes
2344
gl_cv_have_raw_decl_mbsrtowcs=yes
2345
gl_cv_have_raw_decl_memcpy=no
2346
gl_cv_have_raw_decl_memmem=yes
2347
gl_cv_have_raw_decl_memrchr=yes
2348
gl_cv_have_raw_decl_mkdirat=yes
2349
gl_cv_have_raw_decl_mkdtemp=yes
2350
gl_cv_have_raw_decl_mkfifo=yes
2351
gl_cv_have_raw_decl_mkfifoat=yes
2352
gl_cv_have_raw_decl_mknod=yes
2353
gl_cv_have_raw_decl_mknodat=yes
2354
gl_cv_have_raw_decl_mkstemp=yes
2355
gl_cv_have_raw_decl_nl_langinfo=yes
2356
gl_cv_have_raw_decl_openat=yes
2357
gl_cv_have_raw_decl_opendir=yes
2358
gl_cv_have_raw_decl_pclose=yes
2359
gl_cv_have_raw_decl_pipe=yes
2360
gl_cv_have_raw_decl_popen=yes
2361
gl_cv_have_raw_decl_posix_openpt=yes
2362
gl_cv_have_raw_decl_posix_spawn=yes
2363
gl_cv_have_raw_decl_posix_spawn_file_actions_addclose=yes
2364
gl_cv_have_raw_decl_posix_spawn_file_actions_adddup2=yes
2365
gl_cv_have_raw_decl_posix_spawn_file_actions_addopen=yes
2366
gl_cv_have_raw_decl_posix_spawn_file_actions_destroy=yes
2367
gl_cv_have_raw_decl_posix_spawn_file_actions_init=yes
2368
gl_cv_have_raw_decl_posix_spawnattr_destroy=yes
2369
gl_cv_have_raw_decl_posix_spawnattr_getflags=yes
2370
gl_cv_have_raw_decl_posix_spawnattr_getpgroup=yes
2371
gl_cv_have_raw_decl_posix_spawnattr_getschedparam=yes
2372
gl_cv_have_raw_decl_posix_spawnattr_getschedpolicy=yes
2373
gl_cv_have_raw_decl_posix_spawnattr_getsigdefault=yes
2374
gl_cv_have_raw_decl_posix_spawnattr_getsigmask=yes
2375
gl_cv_have_raw_decl_posix_spawnattr_init=yes
2376
gl_cv_have_raw_decl_posix_spawnattr_setflags=yes
2377
gl_cv_have_raw_decl_posix_spawnattr_setpgroup=yes
2378
gl_cv_have_raw_decl_posix_spawnattr_setschedparam=yes
2379
gl_cv_have_raw_decl_posix_spawnattr_setschedpolicy=yes
2380
gl_cv_have_raw_decl_posix_spawnattr_setsigdefault=yes
2381
gl_cv_have_raw_decl_posix_spawnattr_setsigmask=yes
2382
gl_cv_have_raw_decl_posix_spawnp=yes
2383
gl_cv_have_raw_decl_pread=yes
2384
gl_cv_have_raw_decl_pselect=yes
2385
gl_cv_have_raw_decl_pthread_sigmask=yes
2386
gl_cv_have_raw_decl_ptsname=yes
2387
gl_cv_have_raw_decl_pwrite=yes
2388
gl_cv_have_raw_decl_random=yes
2389
gl_cv_have_raw_decl_rawmemchr=yes
2390
gl_cv_have_raw_decl_readdir=yes
2391
gl_cv_have_raw_decl_readlink=yes
2392
gl_cv_have_raw_decl_readlinkat=yes
2393
gl_cv_have_raw_decl_realpath=yes
2394
gl_cv_have_raw_decl_renameat=yes
2395
gl_cv_have_raw_decl_rewinddir=yes
2396
gl_cv_have_raw_decl_rmdir=yes
2397
gl_cv_have_raw_decl_rpmatch=yes
2398
gl_cv_have_raw_decl_scandir=yes
2399
gl_cv_have_raw_decl_select=yes
2400
gl_cv_have_raw_decl_setenv=yes
2401
gl_cv_have_raw_decl_sethostname=yes
2402
gl_cv_have_raw_decl_setlocale=yes
2403
gl_cv_have_raw_decl_setstate=yes
2404
gl_cv_have_raw_decl_setusershell=yes
2405
gl_cv_have_raw_decl_sigaction=yes
2406
gl_cv_have_raw_decl_sigaddset=yes
2407
gl_cv_have_raw_decl_sigdelset=yes
2408
gl_cv_have_raw_decl_sigemptyset=yes
2409
gl_cv_have_raw_decl_sigfillset=yes
2410
gl_cv_have_raw_decl_sigismember=yes
2411
gl_cv_have_raw_decl_sigpending=yes
2412
gl_cv_have_raw_decl_sigprocmask=yes
2413
gl_cv_have_raw_decl_sleep=yes
2414
gl_cv_have_raw_decl_snprintf=yes
2415
gl_cv_have_raw_decl_srandom=yes
2416
gl_cv_have_raw_decl_stat=yes
2417
gl_cv_have_raw_decl_stpcpy=yes
2418
gl_cv_have_raw_decl_stpncpy=yes
2419
gl_cv_have_raw_decl_strcasestr=yes
2420
gl_cv_have_raw_decl_strchrnul=yes
2421
gl_cv_have_raw_decl_strdup=yes
2422
gl_cv_have_raw_decl_strerror_r=yes
2423
gl_cv_have_raw_decl_strncat=yes
2424
gl_cv_have_raw_decl_strndup=yes
2425
gl_cv_have_raw_decl_strnlen=yes
2426
gl_cv_have_raw_decl_strpbrk=yes
2427
gl_cv_have_raw_decl_strsep=yes
2428
gl_cv_have_raw_decl_strsignal=yes
2429
gl_cv_have_raw_decl_strtod=yes
2430
gl_cv_have_raw_decl_strtoimax=yes
2431
gl_cv_have_raw_decl_strtok_r=yes
2432
gl_cv_have_raw_decl_strtoll=yes
2433
gl_cv_have_raw_decl_strtoull=yes
2434
gl_cv_have_raw_decl_strtoumax=yes
2435
gl_cv_have_raw_decl_strverscmp=no
2436
gl_cv_have_raw_decl_symlink=yes
2437
gl_cv_have_raw_decl_symlinkat=yes
2438
gl_cv_have_raw_decl_tmpfile=yes
2439
gl_cv_have_raw_decl_towctrans=yes
2440
gl_cv_have_raw_decl_ttyname_r=yes
2441
gl_cv_have_raw_decl_unlink=yes
2442
gl_cv_have_raw_decl_unlinkat=yes
2443
gl_cv_have_raw_decl_unlockpt=yes
2444
gl_cv_have_raw_decl_unsetenv=yes
2445
gl_cv_have_raw_decl_usleep=yes
2446
gl_cv_have_raw_decl_vdprintf=yes
2447
gl_cv_have_raw_decl_vsnprintf=yes
2448
gl_cv_have_raw_decl_waitpid=yes
2449
gl_cv_have_raw_decl_wcpcpy=yes
2450
gl_cv_have_raw_decl_wcpncpy=yes
2451
gl_cv_have_raw_decl_wcrtomb=yes
2452
gl_cv_have_raw_decl_wcscasecmp=yes
2453
gl_cv_have_raw_decl_wcscat=yes
2454
gl_cv_have_raw_decl_wcschr=yes
2455
gl_cv_have_raw_decl_wcscmp=yes
2456
gl_cv_have_raw_decl_wcscoll=yes
2457
gl_cv_have_raw_decl_wcscpy=yes
2458
gl_cv_have_raw_decl_wcscspn=yes
2459
gl_cv_have_raw_decl_wcsdup=yes
2460
gl_cv_have_raw_decl_wcslen=yes
2461
gl_cv_have_raw_decl_wcsncasecmp=yes
2462
gl_cv_have_raw_decl_wcsncat=yes
2463
gl_cv_have_raw_decl_wcsncmp=yes
2464
gl_cv_have_raw_decl_wcsncpy=yes
2465
gl_cv_have_raw_decl_wcsnlen=yes
2466
gl_cv_have_raw_decl_wcsnrtombs=yes
2467
gl_cv_have_raw_decl_wcspbrk=yes
2468
gl_cv_have_raw_decl_wcsrchr=yes
2469
gl_cv_have_raw_decl_wcsrtombs=yes
2470
gl_cv_have_raw_decl_wcsspn=yes
2471
gl_cv_have_raw_decl_wcsstr=yes
2472
gl_cv_have_raw_decl_wcstok=yes
2473
gl_cv_have_raw_decl_wcswidth=yes
2474
gl_cv_have_raw_decl_wcsxfrm=yes
2475
gl_cv_have_raw_decl_wctob=yes
2476
gl_cv_have_raw_decl_wctrans=yes
2477
gl_cv_have_raw_decl_wctype=yes
2478
gl_cv_have_raw_decl_wcwidth=yes
2479
gl_cv_have_raw_decl_wmemchr=yes
2480
gl_cv_have_raw_decl_wmemcmp=yes
2481
gl_cv_have_raw_decl_wmemcpy=yes
2482
gl_cv_have_raw_decl_wmemmove=yes
2483
gl_cv_have_raw_decl_wmemset=yes
2484
gl_cv_header_errno_h_complete=yes
2485
gl_cv_header_inttypes_h=yes
2486
gl_cv_header_langinfo_codeset=yes
2487
gl_cv_header_langinfo_era=yes
2488
gl_cv_header_langinfo_t_fmt_ampm=yes
2489
gl_cv_header_langinfo_yesexpr=yes
2490
gl_cv_header_locale_h_posix2001=yes
2491
gl_cv_header_signal_h_SIGPIPE=yes
2492
gl_cv_header_stdint_h=yes
2493
gl_cv_header_sys_select_h_selfcontained=yes
2494
gl_cv_header_wchar_h_correct_inline=yes
2495
gl_cv_sigaltstack_low_base=yes
2496
gl_cv_size_max=yes
2497
gl_cv_sys_struct_timespec_in_time_h=yes
2498
gl_cv_sys_struct_timeval=yes
2499
gl_cv_type_sigset_t=yes
2500
gl_cv_type_wchar_t_signed=yes
2501
gl_cv_type_wctrans_t=yes
2502
gl_cv_type_wctype_t=yes
2503
gl_cv_type_wint_t_signed=yes
2504
gl_cv_var_stdin_large_offset=yes
2505
gt_cv_c_intmax_t=yes
2506
gt_cv_c_wchar_t=yes
2507
gt_cv_c_wint_t=yes
2508
gt_cv_func_printf_posix=yes
2509
gt_cv_func_unsetenv_ret=int
2510
gt_cv_int_divbyzero_sigfpe=yes
2511
gt_cv_siginfo_t=yes
2512
gt_cv_ssize_t=yes
2513
lt_cv_path_MAGIC_CMD=/usr/bin/file
2514
lt_cv_sys_max_cmd_len=262144
2515
2516
## ----------------- ##
2517
## Output variables. ##
2518
## ----------------- ##
2519
2520
CC='cc'
2521
CFLAGS='-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing '
2522
CPP='cpp'
2523
CPPFLAGS=''
2524
DEFS='-DHAVE_CONFIG_H'
2525
ECHO_C=''
2526
ECHO_N='-n'
2527
ECHO_T=''
2528
EGREP='/usr/bin/egrep'
2529
EXEEXT=''
2530
GREP='/usr/bin/grep'
2531
INSTALL_DATA='install  -m 0644'
2532
INSTALL_PROGRAM='install  -s -m 555'
2533
INSTALL_SCRIPT='install  -m 555'
2534
LDFLAGS=' -fstack-protector-strong '
2535
LIBOBJS=''
2536
LIBS='-lpthread '
2537
LTLIBOBJS=''
2538
OBJEXT='o'
2539
PACKAGE_BUGREPORT='pen@lysator.liu.se'
2540
PACKAGE_NAME='pwol'
2541
PACKAGE_STRING='pwol 1.5'
2542
PACKAGE_TARNAME='pwol'
2543
PACKAGE_URL='https://github.com/ptrrkssn/pwol'
2544
PACKAGE_VERSION='1.5'
2545
PATH_SEPARATOR=':'
2546
SET_MAKE=''
2547
SHELL='/bin/sh'
2548
ac_ct_CC='cc'
2549
bindir='${exec_prefix}/bin'
2550
build_alias='amd64-portbld-freebsd11.3'
2551
datadir='${datarootdir}'
2552
datarootdir='${prefix}/share'
2553
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2554
dvidir='${docdir}'
2555
exec_prefix='${prefix}'
2556
host_alias=''
2557
htmldir='${docdir}'
2558
includedir='${prefix}/include'
2559
infodir='/usr/local/share/info'
2560
libdir='${exec_prefix}/lib'
2561
libexecdir='${exec_prefix}/libexec'
2562
localedir='${datarootdir}/locale'
2563
localstatedir='/var'
2564
mandir='/usr/local/man'
2565
oldincludedir='/usr/include'
2566
pdfdir='${docdir}'
2567
prefix='/usr/local'
2568
program_transform_name='s,x,x,'
2569
psdir='${docdir}'
2570
sbindir='${exec_prefix}/sbin'
2571
sharedstatedir='${prefix}/com'
2572
sysconfdir='${prefix}/etc'
2573
target_alias=''
2574
2575
## ----------- ##
2576
## confdefs.h. ##
2577
## ----------- ##
2578
2579
/* confdefs.h */
2580
#define PACKAGE_NAME "pwol"
2581
#define PACKAGE_TARNAME "pwol"
2582
#define PACKAGE_VERSION "1.5"
2583
#define PACKAGE_STRING "pwol 1.5"
2584
#define PACKAGE_BUGREPORT "pen@lysator.liu.se"
2585
#define PACKAGE_URL "https://github.com/ptrrkssn/pwol"
2586
#define HAVE_LIBPTHREAD 1
2587
#define STDC_HEADERS 1
2588
#define HAVE_SYS_TYPES_H 1
2589
#define HAVE_SYS_STAT_H 1
2590
#define HAVE_STDLIB_H 1
2591
#define HAVE_STRING_H 1
2592
#define HAVE_MEMORY_H 1
2593
#define HAVE_STRINGS_H 1
2594
#define HAVE_INTTYPES_H 1
2595
#define HAVE_STDINT_H 1
2596
#define HAVE_UNISTD_H 1
2597
#define HAVE_ARPA_INET_H 1
2598
#define HAVE_FCNTL_H 1
2599
#define HAVE_NETDB_H 1
2600
#define HAVE_NETINET_IN_H 1
2601
#define HAVE_STDLIB_H 1
2602
#define HAVE_STRING_H 1
2603
#define HAVE_SYS_SOCKET_H 1
2604
#define HAVE_SYSLOG_H 1
2605
#define HAVE_UNISTD_H 1
2606
#define HAVE_FORK 1
2607
#define HAVE_VFORK 1
2608
#define HAVE_WORKING_VFORK 1
2609
#define HAVE_WORKING_FORK 1
2610
#define HAVE_STDLIB_H 1
2611
#define HAVE_MALLOC 1
2612
#define HAVE_STDLIB_H 1
2613
#define HAVE_REALLOC 1
2614
#define HAVE_DUP2 1
2615
#define HAVE_MEMSET 1
2616
#define HAVE_SOCKET 1
2617
#define HAVE_STRCHR 1
2618
#define HAVE_STRDUP 1
2619
#define HAVE_STRERROR 1
2620
2621
configure: exit 0
(-)sysutils/pwol/work/pwol-1.5/config.status (+1025 lines)
Line 0 Link Here
1
#! /bin/sh
2
# Generated by configure.
3
# Run this file to recreate the current configuration.
4
# Compiler output produced by configure, useful for debugging
5
# configure, is in config.log if it exists.
6
7
debug=false
8
ac_cs_recheck=false
9
ac_cs_silent=false
10
11
SHELL=${CONFIG_SHELL-/bin/sh}
12
export SHELL
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32
esac
33
fi
34
35
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in #(
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
83
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90
91
# Find who we are.  Look in the path if we contain no directory separator.
92
as_myself=
93
case $0 in #((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137
138
# as_fn_error STATUS ERROR [LINENO LOG_FD]
139
# ----------------------------------------
140
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
141
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
142
# script with STATUS, using 1 if that was 0.
143
as_fn_error ()
144
{
145
  as_status=$1; test $as_status -eq 0 && as_status=1
146
  if test "$4"; then
147
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
148
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
149
  fi
150
  $as_echo "$as_me: error: $2" >&2
151
  as_fn_exit $as_status
152
} # as_fn_error
153
154
155
# as_fn_set_status STATUS
156
# -----------------------
157
# Set $? to STATUS, without forking.
158
as_fn_set_status ()
159
{
160
  return $1
161
} # as_fn_set_status
162
163
# as_fn_exit STATUS
164
# -----------------
165
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
166
as_fn_exit ()
167
{
168
  set +e
169
  as_fn_set_status $1
170
  exit $1
171
} # as_fn_exit
172
173
# as_fn_unset VAR
174
# ---------------
175
# Portably unset VAR.
176
as_fn_unset ()
177
{
178
  { eval $1=; unset $1;}
179
}
180
as_unset=as_fn_unset
181
# as_fn_append VAR VALUE
182
# ----------------------
183
# Append the text in VALUE to the end of the definition contained in VAR. Take
184
# advantage of any shell optimizations that allow amortized linear growth over
185
# repeated appends, instead of the typical quadratic growth present in naive
186
# implementations.
187
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
188
  eval 'as_fn_append ()
189
  {
190
    eval $1+=\$2
191
  }'
192
else
193
  as_fn_append ()
194
  {
195
    eval $1=\$$1\$2
196
  }
197
fi # as_fn_append
198
199
# as_fn_arith ARG...
200
# ------------------
201
# Perform arithmetic evaluation on the ARGs, and store the result in the
202
# global $as_val. Take advantage of shells that can avoid forks. The arguments
203
# must be portable across $(()) and expr.
204
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
205
  eval 'as_fn_arith ()
206
  {
207
    as_val=$(( $* ))
208
  }'
209
else
210
  as_fn_arith ()
211
  {
212
    as_val=`expr "$@" || test $? -eq 1`
213
  }
214
fi # as_fn_arith
215
216
217
if expr a : '\(a\)' >/dev/null 2>&1 &&
218
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
219
  as_expr=expr
220
else
221
  as_expr=false
222
fi
223
224
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
225
  as_basename=basename
226
else
227
  as_basename=false
228
fi
229
230
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
231
  as_dirname=dirname
232
else
233
  as_dirname=false
234
fi
235
236
as_me=`$as_basename -- "$0" ||
237
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
238
	 X"$0" : 'X\(//\)$' \| \
239
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
240
$as_echo X/"$0" |
241
    sed '/^.*\/\([^/][^/]*\)\/*$/{
242
	    s//\1/
243
	    q
244
	  }
245
	  /^X\/\(\/\/\)$/{
246
	    s//\1/
247
	    q
248
	  }
249
	  /^X\/\(\/\).*/{
250
	    s//\1/
251
	    q
252
	  }
253
	  s/.*/./; q'`
254
255
# Avoid depending upon Character Ranges.
256
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
257
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
258
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
259
as_cr_digits='0123456789'
260
as_cr_alnum=$as_cr_Letters$as_cr_digits
261
262
ECHO_C= ECHO_N= ECHO_T=
263
case `echo -n x` in #(((((
264
-n*)
265
  case `echo 'xy\c'` in
266
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
267
  xy)  ECHO_C='\c';;
268
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
269
       ECHO_T='	';;
270
  esac;;
271
*)
272
  ECHO_N='-n';;
273
esac
274
275
rm -f conf$$ conf$$.exe conf$$.file
276
if test -d conf$$.dir; then
277
  rm -f conf$$.dir/conf$$.file
278
else
279
  rm -f conf$$.dir
280
  mkdir conf$$.dir 2>/dev/null
281
fi
282
if (echo >conf$$.file) 2>/dev/null; then
283
  if ln -s conf$$.file conf$$ 2>/dev/null; then
284
    as_ln_s='ln -s'
285
    # ... but there are two gotchas:
286
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
287
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
288
    # In both cases, we have to default to `cp -pR'.
289
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
290
      as_ln_s='cp -pR'
291
  elif ln conf$$.file conf$$ 2>/dev/null; then
292
    as_ln_s=ln
293
  else
294
    as_ln_s='cp -pR'
295
  fi
296
else
297
  as_ln_s='cp -pR'
298
fi
299
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
300
rmdir conf$$.dir 2>/dev/null
301
302
303
# as_fn_mkdir_p
304
# -------------
305
# Create "$as_dir" as a directory, including parents if necessary.
306
as_fn_mkdir_p ()
307
{
308
309
  case $as_dir in #(
310
  -*) as_dir=./$as_dir;;
311
  esac
312
  test -d "$as_dir" || eval $as_mkdir_p || {
313
    as_dirs=
314
    while :; do
315
      case $as_dir in #(
316
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
317
      *) as_qdir=$as_dir;;
318
      esac
319
      as_dirs="'$as_qdir' $as_dirs"
320
      as_dir=`$as_dirname -- "$as_dir" ||
321
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
322
	 X"$as_dir" : 'X\(//\)[^/]' \| \
323
	 X"$as_dir" : 'X\(//\)$' \| \
324
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
325
$as_echo X"$as_dir" |
326
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327
	    s//\1/
328
	    q
329
	  }
330
	  /^X\(\/\/\)[^/].*/{
331
	    s//\1/
332
	    q
333
	  }
334
	  /^X\(\/\/\)$/{
335
	    s//\1/
336
	    q
337
	  }
338
	  /^X\(\/\).*/{
339
	    s//\1/
340
	    q
341
	  }
342
	  s/.*/./; q'`
343
      test -d "$as_dir" && break
344
    done
345
    test -z "$as_dirs" || eval "mkdir $as_dirs"
346
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
347
348
349
} # as_fn_mkdir_p
350
if mkdir -p . 2>/dev/null; then
351
  as_mkdir_p='mkdir -p "$as_dir"'
352
else
353
  test -d ./-p && rmdir ./-p
354
  as_mkdir_p=false
355
fi
356
357
358
# as_fn_executable_p FILE
359
# -----------------------
360
# Test if FILE is an executable regular file.
361
as_fn_executable_p ()
362
{
363
  test -f "$1" && test -x "$1"
364
} # as_fn_executable_p
365
as_test_x='test -x'
366
as_executable_p=as_fn_executable_p
367
368
# Sed expression to map a string onto a valid CPP name.
369
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
370
371
# Sed expression to map a string onto a valid variable name.
372
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
373
374
375
exec 6>&1
376
## ----------------------------------- ##
377
## Main body of $CONFIG_STATUS script. ##
378
## ----------------------------------- ##
379
# Save the log message, to keep $0 and so on meaningful, and to
380
# report actual input values of CONFIG_FILES etc. instead of their
381
# values after options handling.
382
ac_log="
383
This file was extended by pwol $as_me 1.5, which was
384
generated by GNU Autoconf 2.69.  Invocation command line was
385
386
  CONFIG_FILES    = $CONFIG_FILES
387
  CONFIG_HEADERS  = $CONFIG_HEADERS
388
  CONFIG_LINKS    = $CONFIG_LINKS
389
  CONFIG_COMMANDS = $CONFIG_COMMANDS
390
  $ $0 $@
391
392
on `(hostname || uname -n) 2>/dev/null | sed 1q`
393
"
394
395
# Files that config.status was made for.
396
config_files=" Makefile pwol.1 pwol.conf.5 pkgs/Makefile.port"
397
config_headers=" config.h"
398
399
ac_cs_usage="\
400
\`$as_me' instantiates files and other configuration actions
401
from templates according to the current configuration.  Unless the files
402
and actions are specified as TAGs, all are instantiated by default.
403
404
Usage: $0 [OPTION]... [TAG]...
405
406
  -h, --help       print this help, then exit
407
  -V, --version    print version number and configuration settings, then exit
408
      --config     print configuration, then exit
409
  -q, --quiet, --silent
410
                   do not print progress messages
411
  -d, --debug      don't remove temporary files
412
      --recheck    update $as_me by reconfiguring in the same conditions
413
      --file=FILE[:TEMPLATE]
414
                   instantiate the configuration file FILE
415
      --header=FILE[:TEMPLATE]
416
                   instantiate the configuration header FILE
417
418
Configuration files:
419
$config_files
420
421
Configuration headers:
422
$config_headers
423
424
Report bugs to <pen@lysator.liu.se>.
425
pwol home page: <https://github.com/ptrrkssn/pwol>."
426
427
ac_cs_config="'--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd11.3' 'build_alias=amd64-portbld-freebsd11.3' 'CC=cc' 'CFLAGS=-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS= -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CPP=cpp'"
428
ac_cs_version="\
429
pwol config.status 1.5
430
configured by ./configure, generated by GNU Autoconf 2.69,
431
  with options \"$ac_cs_config\"
432
433
Copyright (C) 2012 Free Software Foundation, Inc.
434
This config.status script is free software; the Free Software Foundation
435
gives unlimited permission to copy, distribute and modify it."
436
437
ac_pwd='/usr/ports/sysutils/pwol/work/pwol-1.5'
438
srcdir='.'
439
INSTALL='/usr/bin/install -c'
440
test -n "$AWK" || AWK=awk
441
# The default lists apply if the user does not specify any file.
442
ac_need_defaults=:
443
while test $# != 0
444
do
445
  case $1 in
446
  --*=?*)
447
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
448
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
449
    ac_shift=:
450
    ;;
451
  --*=)
452
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
453
    ac_optarg=
454
    ac_shift=:
455
    ;;
456
  *)
457
    ac_option=$1
458
    ac_optarg=$2
459
    ac_shift=shift
460
    ;;
461
  esac
462
463
  case $ac_option in
464
  # Handling of the options.
465
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
466
    ac_cs_recheck=: ;;
467
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
468
    $as_echo "$ac_cs_version"; exit ;;
469
  --config | --confi | --conf | --con | --co | --c )
470
    $as_echo "$ac_cs_config"; exit ;;
471
  --debug | --debu | --deb | --de | --d | -d )
472
    debug=: ;;
473
  --file | --fil | --fi | --f )
474
    $ac_shift
475
    case $ac_optarg in
476
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
477
    '') as_fn_error $? "missing file argument" ;;
478
    esac
479
    as_fn_append CONFIG_FILES " '$ac_optarg'"
480
    ac_need_defaults=false;;
481
  --header | --heade | --head | --hea )
482
    $ac_shift
483
    case $ac_optarg in
484
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
485
    esac
486
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
487
    ac_need_defaults=false;;
488
  --he | --h)
489
    # Conflict between --help and --header
490
    as_fn_error $? "ambiguous option: \`$1'
491
Try \`$0 --help' for more information.";;
492
  --help | --hel | -h )
493
    $as_echo "$ac_cs_usage"; exit ;;
494
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
496
    ac_cs_silent=: ;;
497
498
  # This is an error.
499
  -*) as_fn_error $? "unrecognized option: \`$1'
500
Try \`$0 --help' for more information." ;;
501
502
  *) as_fn_append ac_config_targets " $1"
503
     ac_need_defaults=false ;;
504
505
  esac
506
  shift
507
done
508
509
ac_configure_extra_args=
510
511
if $ac_cs_silent; then
512
  exec 6>/dev/null
513
  ac_configure_extra_args="$ac_configure_extra_args --silent"
514
fi
515
516
if $ac_cs_recheck; then
517
  set X /bin/sh './configure'  '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd11.3' 'build_alias=amd64-portbld-freebsd11.3' 'CC=cc' 'CFLAGS=-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS= -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CPP=cpp' $ac_configure_extra_args --no-create --no-recursion
518
  shift
519
  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
520
  CONFIG_SHELL='/bin/sh'
521
  export CONFIG_SHELL
522
  exec "$@"
523
fi
524
525
exec 5>>config.log
526
{
527
  echo
528
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
529
## Running $as_me. ##
530
_ASBOX
531
  $as_echo "$ac_log"
532
} >&5
533
534
535
# Handling of arguments.
536
for ac_config_target in $ac_config_targets
537
do
538
  case $ac_config_target in
539
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
540
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
541
    "pwol.1") CONFIG_FILES="$CONFIG_FILES pwol.1" ;;
542
    "pwol.conf.5") CONFIG_FILES="$CONFIG_FILES pwol.conf.5" ;;
543
    "pkgs/Makefile.port") CONFIG_FILES="$CONFIG_FILES pkgs/Makefile.port" ;;
544
545
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
546
  esac
547
done
548
549
550
# If the user did not use the arguments to specify the items to instantiate,
551
# then the envvar interface is used.  Set only those that are not.
552
# We use the long form for the default assignment because of an extremely
553
# bizarre bug on SunOS 4.1.3.
554
if $ac_need_defaults; then
555
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
556
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
557
fi
558
559
# Have a temporary directory for convenience.  Make it in the build tree
560
# simply because there is no reason against having it here, and in addition,
561
# creating and moving files from /tmp can sometimes cause problems.
562
# Hook for its removal unless debugging.
563
# Note that there is a small window in which the directory will not be cleaned:
564
# after its creation but before its name has been assigned to `$tmp'.
565
$debug ||
566
{
567
  tmp= ac_tmp=
568
  trap 'exit_status=$?
569
  : "${ac_tmp:=$tmp}"
570
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
571
' 0
572
  trap 'as_fn_exit 1' 1 2 13 15
573
}
574
# Create a (secure) tmp directory for tmp files.
575
576
{
577
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
578
  test -d "$tmp"
579
}  ||
580
{
581
  tmp=./conf$$-$RANDOM
582
  (umask 077 && mkdir "$tmp")
583
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
584
ac_tmp=$tmp
585
586
# Set up the scripts for CONFIG_FILES section.
587
# No need to generate them if there are no CONFIG_FILES.
588
# This happens for instance with `./config.status config.h'.
589
if test -n "$CONFIG_FILES"; then
590
591
592
ac_cr=`echo X | tr X '\015'`
593
# On cygwin, bash can eat \r inside `` if the user requested igncr.
594
# But we know of no other shell where ac_cr would be empty at this
595
# point, so we can use a bashism as a fallback.
596
if test "x$ac_cr" = x; then
597
  eval ac_cr=\$\'\\r\'
598
fi
599
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
600
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
601
  ac_cs_awk_cr='\\r'
602
else
603
  ac_cs_awk_cr=$ac_cr
604
fi
605
606
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
607
cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
608
S["LTLIBOBJS"]=""
609
S["LIBOBJS"]=""
610
S["EGREP"]="/usr/bin/egrep"
611
S["GREP"]="/usr/bin/grep"
612
S["CPP"]="cpp"
613
S["SET_MAKE"]=""
614
S["INSTALL_DATA"]="install  -m 0644"
615
S["INSTALL_SCRIPT"]="install  -m 555"
616
S["INSTALL_PROGRAM"]="install  -s -m 555"
617
S["OBJEXT"]="o"
618
S["EXEEXT"]=""
619
S["ac_ct_CC"]="cc"
620
S["CPPFLAGS"]=""
621
S["LDFLAGS"]=" -fstack-protector-strong "
622
S["CFLAGS"]="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "
623
S["CC"]="cc"
624
S["target_alias"]=""
625
S["host_alias"]=""
626
S["build_alias"]="amd64-portbld-freebsd11.3"
627
S["LIBS"]="-lpthread "
628
S["ECHO_T"]=""
629
S["ECHO_N"]="-n"
630
S["ECHO_C"]=""
631
S["DEFS"]="-DHAVE_CONFIG_H"
632
S["mandir"]="/usr/local/man"
633
S["localedir"]="${datarootdir}/locale"
634
S["libdir"]="${exec_prefix}/lib"
635
S["psdir"]="${docdir}"
636
S["pdfdir"]="${docdir}"
637
S["dvidir"]="${docdir}"
638
S["htmldir"]="${docdir}"
639
S["infodir"]="/usr/local/share/info"
640
S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
641
S["oldincludedir"]="/usr/include"
642
S["includedir"]="${prefix}/include"
643
S["localstatedir"]="/var"
644
S["sharedstatedir"]="${prefix}/com"
645
S["sysconfdir"]="${prefix}/etc"
646
S["datadir"]="${datarootdir}"
647
S["datarootdir"]="${prefix}/share"
648
S["libexecdir"]="${exec_prefix}/libexec"
649
S["sbindir"]="${exec_prefix}/sbin"
650
S["bindir"]="${exec_prefix}/bin"
651
S["program_transform_name"]="s,x,x,"
652
S["prefix"]="/usr/local"
653
S["exec_prefix"]="${prefix}"
654
S["PACKAGE_URL"]="https://github.com/ptrrkssn/pwol"
655
S["PACKAGE_BUGREPORT"]="pen@lysator.liu.se"
656
S["PACKAGE_STRING"]="pwol 1.5"
657
S["PACKAGE_VERSION"]="1.5"
658
S["PACKAGE_TARNAME"]="pwol"
659
S["PACKAGE_NAME"]="pwol"
660
S["PATH_SEPARATOR"]=":"
661
S["SHELL"]="/bin/sh"
662
_ACAWK
663
cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
664
  for (key in S) S_is_set[key] = 1
665
  FS = ""
666
667
}
668
{
669
  line = $ 0
670
  nfields = split(line, field, "@")
671
  substed = 0
672
  len = length(field[1])
673
  for (i = 2; i < nfields; i++) {
674
    key = field[i]
675
    keylen = length(key)
676
    if (S_is_set[key]) {
677
      value = S[key]
678
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
679
      len += length(value) + length(field[++i])
680
      substed = 1
681
    } else
682
      len += 1 + keylen
683
  }
684
685
  print line
686
}
687
688
_ACAWK
689
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
690
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
691
else
692
  cat
693
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
694
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
695
fi # test -n "$CONFIG_FILES"
696
697
# Set up the scripts for CONFIG_HEADERS section.
698
# No need to generate them if there are no CONFIG_HEADERS.
699
# This happens for instance with `./config.status Makefile'.
700
if test -n "$CONFIG_HEADERS"; then
701
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
702
BEGIN {
703
D["PACKAGE_NAME"]=" \"pwol\""
704
D["PACKAGE_TARNAME"]=" \"pwol\""
705
D["PACKAGE_VERSION"]=" \"1.5\""
706
D["PACKAGE_STRING"]=" \"pwol 1.5\""
707
D["PACKAGE_BUGREPORT"]=" \"pen@lysator.liu.se\""
708
D["PACKAGE_URL"]=" \"https://github.com/ptrrkssn/pwol\""
709
D["HAVE_LIBPTHREAD"]=" 1"
710
D["STDC_HEADERS"]=" 1"
711
D["HAVE_SYS_TYPES_H"]=" 1"
712
D["HAVE_SYS_STAT_H"]=" 1"
713
D["HAVE_STDLIB_H"]=" 1"
714
D["HAVE_STRING_H"]=" 1"
715
D["HAVE_MEMORY_H"]=" 1"
716
D["HAVE_STRINGS_H"]=" 1"
717
D["HAVE_INTTYPES_H"]=" 1"
718
D["HAVE_STDINT_H"]=" 1"
719
D["HAVE_UNISTD_H"]=" 1"
720
D["HAVE_ARPA_INET_H"]=" 1"
721
D["HAVE_FCNTL_H"]=" 1"
722
D["HAVE_NETDB_H"]=" 1"
723
D["HAVE_NETINET_IN_H"]=" 1"
724
D["HAVE_STDLIB_H"]=" 1"
725
D["HAVE_STRING_H"]=" 1"
726
D["HAVE_SYS_SOCKET_H"]=" 1"
727
D["HAVE_SYSLOG_H"]=" 1"
728
D["HAVE_UNISTD_H"]=" 1"
729
D["HAVE_FORK"]=" 1"
730
D["HAVE_VFORK"]=" 1"
731
D["HAVE_WORKING_VFORK"]=" 1"
732
D["HAVE_WORKING_FORK"]=" 1"
733
D["HAVE_STDLIB_H"]=" 1"
734
D["HAVE_MALLOC"]=" 1"
735
D["HAVE_STDLIB_H"]=" 1"
736
D["HAVE_REALLOC"]=" 1"
737
D["HAVE_DUP2"]=" 1"
738
D["HAVE_MEMSET"]=" 1"
739
D["HAVE_SOCKET"]=" 1"
740
D["HAVE_STRCHR"]=" 1"
741
D["HAVE_STRDUP"]=" 1"
742
D["HAVE_STRERROR"]=" 1"
743
  for (key in D) D_is_set[key] = 1
744
  FS = ""
745
}
746
/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
747
  line = $ 0
748
  split(line, arg, " ")
749
  if (arg[1] == "#") {
750
    defundef = arg[2]
751
    mac1 = arg[3]
752
  } else {
753
    defundef = substr(arg[1], 2)
754
    mac1 = arg[2]
755
  }
756
  split(mac1, mac2, "(") #)
757
  macro = mac2[1]
758
  prefix = substr(line, 1, index(line, defundef) - 1)
759
  if (D_is_set[macro]) {
760
    # Preserve the white space surrounding the "#".
761
    print prefix "define", macro P[macro] D[macro]
762
    next
763
  } else {
764
    # Replace #undef with comments.  This is necessary, for example,
765
    # in the case of _POSIX_SOURCE, which is predefined and required
766
    # on some systems where configure will not decide to define it.
767
    if (defundef == "undef") {
768
      print "/*", prefix defundef, macro, "*/"
769
      next
770
    }
771
  }
772
}
773
{ print }
774
_ACAWK
775
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
776
fi # test -n "$CONFIG_HEADERS"
777
778
779
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
780
shift
781
for ac_tag
782
do
783
  case $ac_tag in
784
  :[FHLC]) ac_mode=$ac_tag; continue;;
785
  esac
786
  case $ac_mode$ac_tag in
787
  :[FHL]*:*);;
788
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
789
  :[FH]-) ac_tag=-:-;;
790
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
791
  esac
792
  ac_save_IFS=$IFS
793
  IFS=:
794
  set x $ac_tag
795
  IFS=$ac_save_IFS
796
  shift
797
  ac_file=$1
798
  shift
799
800
  case $ac_mode in
801
  :L) ac_source=$1;;
802
  :[FH])
803
    ac_file_inputs=
804
    for ac_f
805
    do
806
      case $ac_f in
807
      -) ac_f="$ac_tmp/stdin";;
808
      *) # Look for the file first in the build tree, then in the source tree
809
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
810
	 # because $ac_f cannot contain `:'.
811
	 test -f "$ac_f" ||
812
	   case $ac_f in
813
	   [\\/$]*) false;;
814
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
815
	   esac ||
816
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
817
      esac
818
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
819
      as_fn_append ac_file_inputs " '$ac_f'"
820
    done
821
822
    # Let's still pretend it is `configure' which instantiates (i.e., don't
823
    # use $as_me), people would be surprised to read:
824
    #    /* config.h.  Generated by config.status.  */
825
    configure_input='Generated from '`
826
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
827
	`' by configure.'
828
    if test x"$ac_file" != x-; then
829
      configure_input="$ac_file.  $configure_input"
830
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
831
$as_echo "$as_me: creating $ac_file" >&6;}
832
    fi
833
    # Neutralize special characters interpreted by sed in replacement strings.
834
    case $configure_input in #(
835
    *\&* | *\|* | *\\* )
836
       ac_sed_conf_input=`$as_echo "$configure_input" |
837
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
838
    *) ac_sed_conf_input=$configure_input;;
839
    esac
840
841
    case $ac_tag in
842
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
843
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
844
    esac
845
    ;;
846
  esac
847
848
  ac_dir=`$as_dirname -- "$ac_file" ||
849
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
850
	 X"$ac_file" : 'X\(//\)[^/]' \| \
851
	 X"$ac_file" : 'X\(//\)$' \| \
852
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
853
$as_echo X"$ac_file" |
854
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
855
	    s//\1/
856
	    q
857
	  }
858
	  /^X\(\/\/\)[^/].*/{
859
	    s//\1/
860
	    q
861
	  }
862
	  /^X\(\/\/\)$/{
863
	    s//\1/
864
	    q
865
	  }
866
	  /^X\(\/\).*/{
867
	    s//\1/
868
	    q
869
	  }
870
	  s/.*/./; q'`
871
  as_dir="$ac_dir"; as_fn_mkdir_p
872
  ac_builddir=.
873
874
case "$ac_dir" in
875
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
876
*)
877
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
878
  # A ".." for each directory in $ac_dir_suffix.
879
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
880
  case $ac_top_builddir_sub in
881
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
882
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
883
  esac ;;
884
esac
885
ac_abs_top_builddir=$ac_pwd
886
ac_abs_builddir=$ac_pwd$ac_dir_suffix
887
# for backward compatibility:
888
ac_top_builddir=$ac_top_build_prefix
889
890
case $srcdir in
891
  .)  # We are building in place.
892
    ac_srcdir=.
893
    ac_top_srcdir=$ac_top_builddir_sub
894
    ac_abs_top_srcdir=$ac_pwd ;;
895
  [\\/]* | ?:[\\/]* )  # Absolute name.
896
    ac_srcdir=$srcdir$ac_dir_suffix;
897
    ac_top_srcdir=$srcdir
898
    ac_abs_top_srcdir=$srcdir ;;
899
  *) # Relative name.
900
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
901
    ac_top_srcdir=$ac_top_build_prefix$srcdir
902
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
903
esac
904
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
905
906
907
  case $ac_mode in
908
  :F)
909
  #
910
  # CONFIG_FILE
911
  #
912
913
  case $INSTALL in
914
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
915
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
916
  esac
917
# If the template does not know about datarootdir, expand it.
918
# FIXME: This hack should be removed a few years after 2.60.
919
ac_datarootdir_hack=; ac_datarootdir_seen=
920
ac_sed_dataroot='
921
/datarootdir/ {
922
  p
923
  q
924
}
925
/@datadir@/p
926
/@docdir@/p
927
/@infodir@/p
928
/@localedir@/p
929
/@mandir@/p'
930
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
931
*datarootdir*) ac_datarootdir_seen=yes;;
932
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
933
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
934
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
935
  ac_datarootdir_hack='
936
  s&@datadir@&${datarootdir}&g
937
  s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
938
  s&@infodir@&/usr/local/share/info&g
939
  s&@localedir@&${datarootdir}/locale&g
940
  s&@mandir@&/usr/local/man&g
941
  s&\${datarootdir}&${prefix}/share&g' ;;
942
esac
943
ac_sed_extra="/^[	 ]*VPATH[	 ]*=[	 ]*/{
944
h
945
s///
946
s/^/:/
947
s/[	 ]*$/:/
948
s/:\$(srcdir):/:/g
949
s/:\${srcdir}:/:/g
950
s/:@srcdir@:/:/g
951
s/^:*//
952
s/:*$//
953
x
954
s/\(=[	 ]*\).*/\1/
955
G
956
s/\n//
957
s/^[^=]*=[	 ]*$//
958
}
959
960
:t
961
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
962
s|@configure_input@|$ac_sed_conf_input|;t t
963
s&@top_builddir@&$ac_top_builddir_sub&;t t
964
s&@top_build_prefix@&$ac_top_build_prefix&;t t
965
s&@srcdir@&$ac_srcdir&;t t
966
s&@abs_srcdir@&$ac_abs_srcdir&;t t
967
s&@top_srcdir@&$ac_top_srcdir&;t t
968
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
969
s&@builddir@&$ac_builddir&;t t
970
s&@abs_builddir@&$ac_abs_builddir&;t t
971
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
972
s&@INSTALL@&$ac_INSTALL&;t t
973
$ac_datarootdir_hack
974
"
975
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
976
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
977
978
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
979
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
980
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
981
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
982
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
983
which seems to be undefined.  Please make sure it is defined" >&5
984
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
985
which seems to be undefined.  Please make sure it is defined" >&2;}
986
987
  rm -f "$ac_tmp/stdin"
988
  case $ac_file in
989
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
990
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
991
  esac \
992
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
993
 ;;
994
  :H)
995
  #
996
  # CONFIG_HEADER
997
  #
998
  if test x"$ac_file" != x-; then
999
    {
1000
      $as_echo "/* $configure_input  */" \
1001
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1002
    } >"$ac_tmp/config.h" \
1003
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1004
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1005
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1006
$as_echo "$as_me: $ac_file is unchanged" >&6;}
1007
    else
1008
      rm -f "$ac_file"
1009
      mv "$ac_tmp/config.h" "$ac_file" \
1010
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1011
    fi
1012
  else
1013
    $as_echo "/* $configure_input  */" \
1014
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1015
      || as_fn_error $? "could not create -" "$LINENO" 5
1016
  fi
1017
 ;;
1018
1019
1020
  esac
1021
1022
done # for ac_tag
1023
1024
1025
as_fn_exit 0
(-)sysutils/pwol/work/pwol-1.5/configure (+5324 lines)
Line 0 Link Here
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for pwol 1.5.
4
#
5
# Report bugs to <pen@lysator.liu.se>.
6
#
7
#
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
#
10
#
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32
esac
33
fi
34
35
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in #(
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
83
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90
91
# Find who we are.  Look in the path if we contain no directory separator.
92
as_myself=
93
case $0 in #((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137
# Use a proper internal environment variable to ensure we don't fall
138
  # into an infinite loop, continuously re-executing ourselves.
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
    _as_can_reexec=no; export _as_can_reexec;
141
    # We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
145
BASH_ENV=/dev/null
146
ENV=/dev/null
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
case $- in # ((((
149
  *v*x* | *x*v* ) as_opts=-vx ;;
150
  *v* ) as_opts=-v ;;
151
  *x* ) as_opts=-x ;;
152
  * ) as_opts= ;;
153
esac
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
as_fn_exit 255
159
  fi
160
  # We don't want this to propagate to other subprocesses.
161
          { _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
  emulate sh
165
  NULLCMD=:
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
  # is contrary to our usage.  Disable this feature.
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
  setopt NO_GLOB_SUBST
170
else
171
  case \`(set -o) 2>/dev/null\` in #(
172
  *posix*) :
173
    set -o posix ;; #(
174
  *) :
175
     ;;
176
esac
177
fi
178
"
179
  as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
184
185
exitcode=0
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192
else
193
  exitcode=1; echo positional parameters were not saved.
194
fi
195
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
test \$(( 1 + 1 )) = 2 || exit 1"
202
  if (eval "$as_required") 2>/dev/null; then :
203
  as_have_required=yes
204
else
205
  as_have_required=no
206
fi
207
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209
else
210
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211
as_found=false
212
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
do
214
  IFS=$as_save_IFS
215
  test -z "$as_dir" && as_dir=.
216
  as_found=:
217
  case $as_dir in #(
218
	 /*)
219
	   for as_base in sh bash ksh sh5; do
220
	     # Try only shells that exist, to save several forks.
221
	     as_shell=$as_dir/$as_base
222
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
  CONFIG_SHELL=$as_shell as_have_required=yes
225
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226
  break 2
227
fi
228
fi
229
	   done;;
230
       esac
231
  as_found=false
232
done
233
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235
  CONFIG_SHELL=$SHELL as_have_required=yes
236
fi; }
237
IFS=$as_save_IFS
238
239
240
      if test "x$CONFIG_SHELL" != x; then :
241
  export CONFIG_SHELL
242
             # We cannot yet assume a decent shell, so we have to provide a
243
# neutralization value for shells without unset; and this also
244
# works around shells that cannot unset nonexistent variables.
245
# Preserve -v and -x to the replacement shell.
246
BASH_ENV=/dev/null
247
ENV=/dev/null
248
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249
case $- in # ((((
250
  *v*x* | *x*v* ) as_opts=-vx ;;
251
  *v* ) as_opts=-v ;;
252
  *x* ) as_opts=-x ;;
253
  * ) as_opts= ;;
254
esac
255
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256
# Admittedly, this is quite paranoid, since all the known shells bail
257
# out after a failed `exec'.
258
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259
exit 255
260
fi
261
262
    if test x$as_have_required = xno; then :
263
  $as_echo "$0: This script requires a shell more modern than all"
264
  $as_echo "$0: the shells that I found on your system."
265
  if test x${ZSH_VERSION+set} = xset ; then
266
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268
  else
269
    $as_echo "$0: Please tell bug-autoconf@gnu.org and pen@lysator.liu.se
270
$0: about your system, including any error possibly output
271
$0: before this message. Then install a modern shell, or
272
$0: manually run the script under such a shell if you do
273
$0: have one."
274
  fi
275
  exit 1
276
fi
277
fi
278
fi
279
SHELL=${CONFIG_SHELL-/bin/sh}
280
export SHELL
281
# Unset more variables known to interfere with behavior of common tools.
282
CLICOLOR_FORCE= GREP_OPTIONS=
283
unset CLICOLOR_FORCE GREP_OPTIONS
284
285
## --------------------- ##
286
## M4sh Shell Functions. ##
287
## --------------------- ##
288
# as_fn_unset VAR
289
# ---------------
290
# Portably unset VAR.
291
as_fn_unset ()
292
{
293
  { eval $1=; unset $1;}
294
}
295
as_unset=as_fn_unset
296
297
# as_fn_set_status STATUS
298
# -----------------------
299
# Set $? to STATUS, without forking.
300
as_fn_set_status ()
301
{
302
  return $1
303
} # as_fn_set_status
304
305
# as_fn_exit STATUS
306
# -----------------
307
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308
as_fn_exit ()
309
{
310
  set +e
311
  as_fn_set_status $1
312
  exit $1
313
} # as_fn_exit
314
315
# as_fn_mkdir_p
316
# -------------
317
# Create "$as_dir" as a directory, including parents if necessary.
318
as_fn_mkdir_p ()
319
{
320
321
  case $as_dir in #(
322
  -*) as_dir=./$as_dir;;
323
  esac
324
  test -d "$as_dir" || eval $as_mkdir_p || {
325
    as_dirs=
326
    while :; do
327
      case $as_dir in #(
328
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329
      *) as_qdir=$as_dir;;
330
      esac
331
      as_dirs="'$as_qdir' $as_dirs"
332
      as_dir=`$as_dirname -- "$as_dir" ||
333
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334
	 X"$as_dir" : 'X\(//\)[^/]' \| \
335
	 X"$as_dir" : 'X\(//\)$' \| \
336
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337
$as_echo X"$as_dir" |
338
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339
	    s//\1/
340
	    q
341
	  }
342
	  /^X\(\/\/\)[^/].*/{
343
	    s//\1/
344
	    q
345
	  }
346
	  /^X\(\/\/\)$/{
347
	    s//\1/
348
	    q
349
	  }
350
	  /^X\(\/\).*/{
351
	    s//\1/
352
	    q
353
	  }
354
	  s/.*/./; q'`
355
      test -d "$as_dir" && break
356
    done
357
    test -z "$as_dirs" || eval "mkdir $as_dirs"
358
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361
} # as_fn_mkdir_p
362
363
# as_fn_executable_p FILE
364
# -----------------------
365
# Test if FILE is an executable regular file.
366
as_fn_executable_p ()
367
{
368
  test -f "$1" && test -x "$1"
369
} # as_fn_executable_p
370
# as_fn_append VAR VALUE
371
# ----------------------
372
# Append the text in VALUE to the end of the definition contained in VAR. Take
373
# advantage of any shell optimizations that allow amortized linear growth over
374
# repeated appends, instead of the typical quadratic growth present in naive
375
# implementations.
376
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377
  eval 'as_fn_append ()
378
  {
379
    eval $1+=\$2
380
  }'
381
else
382
  as_fn_append ()
383
  {
384
    eval $1=\$$1\$2
385
  }
386
fi # as_fn_append
387
388
# as_fn_arith ARG...
389
# ------------------
390
# Perform arithmetic evaluation on the ARGs, and store the result in the
391
# global $as_val. Take advantage of shells that can avoid forks. The arguments
392
# must be portable across $(()) and expr.
393
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394
  eval 'as_fn_arith ()
395
  {
396
    as_val=$(( $* ))
397
  }'
398
else
399
  as_fn_arith ()
400
  {
401
    as_val=`expr "$@" || test $? -eq 1`
402
  }
403
fi # as_fn_arith
404
405
406
# as_fn_error STATUS ERROR [LINENO LOG_FD]
407
# ----------------------------------------
408
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410
# script with STATUS, using 1 if that was 0.
411
as_fn_error ()
412
{
413
  as_status=$1; test $as_status -eq 0 && as_status=1
414
  if test "$4"; then
415
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417
  fi
418
  $as_echo "$as_me: error: $2" >&2
419
  as_fn_exit $as_status
420
} # as_fn_error
421
422
if expr a : '\(a\)' >/dev/null 2>&1 &&
423
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424
  as_expr=expr
425
else
426
  as_expr=false
427
fi
428
429
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430
  as_basename=basename
431
else
432
  as_basename=false
433
fi
434
435
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436
  as_dirname=dirname
437
else
438
  as_dirname=false
439
fi
440
441
as_me=`$as_basename -- "$0" ||
442
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443
	 X"$0" : 'X\(//\)$' \| \
444
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445
$as_echo X/"$0" |
446
    sed '/^.*\/\([^/][^/]*\)\/*$/{
447
	    s//\1/
448
	    q
449
	  }
450
	  /^X\/\(\/\/\)$/{
451
	    s//\1/
452
	    q
453
	  }
454
	  /^X\/\(\/\).*/{
455
	    s//\1/
456
	    q
457
	  }
458
	  s/.*/./; q'`
459
460
# Avoid depending upon Character Ranges.
461
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464
as_cr_digits='0123456789'
465
as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473
  sed -n '
474
    p
475
    /[$]LINENO/=
476
  ' <$as_myself |
477
    sed '
478
      s/[$]LINENO.*/&-/
479
      t lineno
480
      b
481
      :lineno
482
      N
483
      :loop
484
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485
      t loop
486
      s/-\n.*//
487
    ' >$as_me.lineno &&
488
  chmod +x "$as_me.lineno" ||
489
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492
  # already done that, so ensure we don't try to do so again and fall
493
  # in an infinite loop.  This has already happened in practice.
494
  _as_can_reexec=no; export _as_can_reexec
495
  # Don't try to exec as it changes $[0], causing all sort of problems
496
  # (the dirname of $[0] is not the place where we might find the
497
  # original and so on.  Autoconf is especially sensitive to this).
498
  . "./$as_me.lineno"
499
  # Exit status is that of the last command.
500
  exit
501
}
502
503
ECHO_C= ECHO_N= ECHO_T=
504
case `echo -n x` in #(((((
505
-n*)
506
  case `echo 'xy\c'` in
507
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508
  xy)  ECHO_C='\c';;
509
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510
       ECHO_T='	';;
511
  esac;;
512
*)
513
  ECHO_N='-n';;
514
esac
515
516
rm -f conf$$ conf$$.exe conf$$.file
517
if test -d conf$$.dir; then
518
  rm -f conf$$.dir/conf$$.file
519
else
520
  rm -f conf$$.dir
521
  mkdir conf$$.dir 2>/dev/null
522
fi
523
if (echo >conf$$.file) 2>/dev/null; then
524
  if ln -s conf$$.file conf$$ 2>/dev/null; then
525
    as_ln_s='ln -s'
526
    # ... but there are two gotchas:
527
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529
    # In both cases, we have to default to `cp -pR'.
530
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531
      as_ln_s='cp -pR'
532
  elif ln conf$$.file conf$$ 2>/dev/null; then
533
    as_ln_s=ln
534
  else
535
    as_ln_s='cp -pR'
536
  fi
537
else
538
  as_ln_s='cp -pR'
539
fi
540
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541
rmdir conf$$.dir 2>/dev/null
542
543
if mkdir -p . 2>/dev/null; then
544
  as_mkdir_p='mkdir -p "$as_dir"'
545
else
546
  test -d ./-p && rmdir ./-p
547
  as_mkdir_p=false
548
fi
549
550
as_test_x='test -x'
551
as_executable_p=as_fn_executable_p
552
553
# Sed expression to map a string onto a valid CPP name.
554
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556
# Sed expression to map a string onto a valid variable name.
557
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
test -n "$DJDIR" || exec 7<&0 </dev/null
561
exec 6>&1
562
563
# Name of the host.
564
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565
# so uname gets run too.
566
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568
#
569
# Initializations.
570
#
571
ac_default_prefix=/usr/local
572
ac_clean_files=
573
ac_config_libobj_dir=.
574
LIBOBJS=
575
cross_compiling=no
576
subdirs=
577
MFLAGS=
578
MAKEFLAGS=
579
580
# Identity of this package.
581
PACKAGE_NAME='pwol'
582
PACKAGE_TARNAME='pwol'
583
PACKAGE_VERSION='1.5'
584
PACKAGE_STRING='pwol 1.5'
585
PACKAGE_BUGREPORT='pen@lysator.liu.se'
586
PACKAGE_URL='https://github.com/ptrrkssn/pwol'
587
588
ac_unique_file="pwol.c"
589
# Factoring default headers for most tests.
590
ac_includes_default="\
591
#include <stdio.h>
592
#ifdef HAVE_SYS_TYPES_H
593
# include <sys/types.h>
594
#endif
595
#ifdef HAVE_SYS_STAT_H
596
# include <sys/stat.h>
597
#endif
598
#ifdef STDC_HEADERS
599
# include <stdlib.h>
600
# include <stddef.h>
601
#else
602
# ifdef HAVE_STDLIB_H
603
#  include <stdlib.h>
604
# endif
605
#endif
606
#ifdef HAVE_STRING_H
607
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608
#  include <memory.h>
609
# endif
610
# include <string.h>
611
#endif
612
#ifdef HAVE_STRINGS_H
613
# include <strings.h>
614
#endif
615
#ifdef HAVE_INTTYPES_H
616
# include <inttypes.h>
617
#endif
618
#ifdef HAVE_STDINT_H
619
# include <stdint.h>
620
#endif
621
#ifdef HAVE_UNISTD_H
622
# include <unistd.h>
623
#endif"
624
625
ac_subst_vars='LTLIBOBJS
626
LIBOBJS
627
EGREP
628
GREP
629
CPP
630
SET_MAKE
631
INSTALL_DATA
632
INSTALL_SCRIPT
633
INSTALL_PROGRAM
634
OBJEXT
635
EXEEXT
636
ac_ct_CC
637
CPPFLAGS
638
LDFLAGS
639
CFLAGS
640
CC
641
target_alias
642
host_alias
643
build_alias
644
LIBS
645
ECHO_T
646
ECHO_N
647
ECHO_C
648
DEFS
649
mandir
650
localedir
651
libdir
652
psdir
653
pdfdir
654
dvidir
655
htmldir
656
infodir
657
docdir
658
oldincludedir
659
includedir
660
localstatedir
661
sharedstatedir
662
sysconfdir
663
datadir
664
datarootdir
665
libexecdir
666
sbindir
667
bindir
668
program_transform_name
669
prefix
670
exec_prefix
671
PACKAGE_URL
672
PACKAGE_BUGREPORT
673
PACKAGE_STRING
674
PACKAGE_VERSION
675
PACKAGE_TARNAME
676
PACKAGE_NAME
677
PATH_SEPARATOR
678
SHELL'
679
ac_subst_files=''
680
ac_user_opts='
681
enable_option_checking
682
'
683
      ac_precious_vars='build_alias
684
host_alias
685
target_alias
686
CC
687
CFLAGS
688
LDFLAGS
689
LIBS
690
CPPFLAGS
691
CPP'
692
693
694
# Initialize some variables set by options.
695
ac_init_help=
696
ac_init_version=false
697
ac_unrecognized_opts=
698
ac_unrecognized_sep=
699
# The variables have the same names as the options, with
700
# dashes changed to underlines.
701
cache_file=/dev/null
702
exec_prefix=NONE
703
no_create=
704
no_recursion=
705
prefix=NONE
706
program_prefix=NONE
707
program_suffix=NONE
708
program_transform_name=s,x,x,
709
silent=
710
site=
711
srcdir=
712
verbose=
713
x_includes=NONE
714
x_libraries=NONE
715
716
# Installation directory options.
717
# These are left unexpanded so users can "make install exec_prefix=/foo"
718
# and all the variables that are supposed to be based on exec_prefix
719
# by default will actually change.
720
# Use braces instead of parens because sh, perl, etc. also accept them.
721
# (The list follows the same order as the GNU Coding Standards.)
722
bindir='${exec_prefix}/bin'
723
sbindir='${exec_prefix}/sbin'
724
libexecdir='${exec_prefix}/libexec'
725
datarootdir='${prefix}/share'
726
datadir='${datarootdir}'
727
sysconfdir='${prefix}/etc'
728
sharedstatedir='${prefix}/com'
729
localstatedir='${prefix}/var'
730
includedir='${prefix}/include'
731
oldincludedir='/usr/include'
732
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
733
infodir='${datarootdir}/info'
734
htmldir='${docdir}'
735
dvidir='${docdir}'
736
pdfdir='${docdir}'
737
psdir='${docdir}'
738
libdir='${exec_prefix}/lib'
739
localedir='${datarootdir}/locale'
740
mandir='${datarootdir}/man'
741
742
ac_prev=
743
ac_dashdash=
744
for ac_option
745
do
746
  # If the previous option needs an argument, assign it.
747
  if test -n "$ac_prev"; then
748
    eval $ac_prev=\$ac_option
749
    ac_prev=
750
    continue
751
  fi
752
753
  case $ac_option in
754
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755
  *=)   ac_optarg= ;;
756
  *)    ac_optarg=yes ;;
757
  esac
758
759
  # Accept the important Cygnus configure options, so we can diagnose typos.
760
761
  case $ac_dashdash$ac_option in
762
  --)
763
    ac_dashdash=yes ;;
764
765
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
766
    ac_prev=bindir ;;
767
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
768
    bindir=$ac_optarg ;;
769
770
  -build | --build | --buil | --bui | --bu)
771
    ac_prev=build_alias ;;
772
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
773
    build_alias=$ac_optarg ;;
774
775
  -cache-file | --cache-file | --cache-fil | --cache-fi \
776
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
777
    ac_prev=cache_file ;;
778
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
779
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
780
    cache_file=$ac_optarg ;;
781
782
  --config-cache | -C)
783
    cache_file=config.cache ;;
784
785
  -datadir | --datadir | --datadi | --datad)
786
    ac_prev=datadir ;;
787
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
788
    datadir=$ac_optarg ;;
789
790
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
791
  | --dataroo | --dataro | --datar)
792
    ac_prev=datarootdir ;;
793
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
794
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
795
    datarootdir=$ac_optarg ;;
796
797
  -disable-* | --disable-*)
798
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
799
    # Reject names that are not valid shell variable names.
800
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801
      as_fn_error $? "invalid feature name: $ac_useropt"
802
    ac_useropt_orig=$ac_useropt
803
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804
    case $ac_user_opts in
805
      *"
806
"enable_$ac_useropt"
807
"*) ;;
808
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
809
	 ac_unrecognized_sep=', ';;
810
    esac
811
    eval enable_$ac_useropt=no ;;
812
813
  -docdir | --docdir | --docdi | --doc | --do)
814
    ac_prev=docdir ;;
815
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
816
    docdir=$ac_optarg ;;
817
818
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
819
    ac_prev=dvidir ;;
820
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
821
    dvidir=$ac_optarg ;;
822
823
  -enable-* | --enable-*)
824
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
825
    # Reject names that are not valid shell variable names.
826
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827
      as_fn_error $? "invalid feature name: $ac_useropt"
828
    ac_useropt_orig=$ac_useropt
829
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830
    case $ac_user_opts in
831
      *"
832
"enable_$ac_useropt"
833
"*) ;;
834
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
835
	 ac_unrecognized_sep=', ';;
836
    esac
837
    eval enable_$ac_useropt=\$ac_optarg ;;
838
839
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
840
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
841
  | --exec | --exe | --ex)
842
    ac_prev=exec_prefix ;;
843
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
844
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
845
  | --exec=* | --exe=* | --ex=*)
846
    exec_prefix=$ac_optarg ;;
847
848
  -gas | --gas | --ga | --g)
849
    # Obsolete; use --with-gas.
850
    with_gas=yes ;;
851
852
  -help | --help | --hel | --he | -h)
853
    ac_init_help=long ;;
854
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
855
    ac_init_help=recursive ;;
856
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
857
    ac_init_help=short ;;
858
859
  -host | --host | --hos | --ho)
860
    ac_prev=host_alias ;;
861
  -host=* | --host=* | --hos=* | --ho=*)
862
    host_alias=$ac_optarg ;;
863
864
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
865
    ac_prev=htmldir ;;
866
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
867
  | --ht=*)
868
    htmldir=$ac_optarg ;;
869
870
  -includedir | --includedir | --includedi | --included | --include \
871
  | --includ | --inclu | --incl | --inc)
872
    ac_prev=includedir ;;
873
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
874
  | --includ=* | --inclu=* | --incl=* | --inc=*)
875
    includedir=$ac_optarg ;;
876
877
  -infodir | --infodir | --infodi | --infod | --info | --inf)
878
    ac_prev=infodir ;;
879
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
880
    infodir=$ac_optarg ;;
881
882
  -libdir | --libdir | --libdi | --libd)
883
    ac_prev=libdir ;;
884
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
885
    libdir=$ac_optarg ;;
886
887
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
888
  | --libexe | --libex | --libe)
889
    ac_prev=libexecdir ;;
890
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
891
  | --libexe=* | --libex=* | --libe=*)
892
    libexecdir=$ac_optarg ;;
893
894
  -localedir | --localedir | --localedi | --localed | --locale)
895
    ac_prev=localedir ;;
896
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
897
    localedir=$ac_optarg ;;
898
899
  -localstatedir | --localstatedir | --localstatedi | --localstated \
900
  | --localstate | --localstat | --localsta | --localst | --locals)
901
    ac_prev=localstatedir ;;
902
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
903
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
904
    localstatedir=$ac_optarg ;;
905
906
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
907
    ac_prev=mandir ;;
908
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909
    mandir=$ac_optarg ;;
910
911
  -nfp | --nfp | --nf)
912
    # Obsolete; use --without-fp.
913
    with_fp=no ;;
914
915
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
916
  | --no-cr | --no-c | -n)
917
    no_create=yes ;;
918
919
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
921
    no_recursion=yes ;;
922
923
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
924
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
925
  | --oldin | --oldi | --old | --ol | --o)
926
    ac_prev=oldincludedir ;;
927
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
928
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
929
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
930
    oldincludedir=$ac_optarg ;;
931
932
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
933
    ac_prev=prefix ;;
934
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
935
    prefix=$ac_optarg ;;
936
937
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
938
  | --program-pre | --program-pr | --program-p)
939
    ac_prev=program_prefix ;;
940
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
941
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
942
    program_prefix=$ac_optarg ;;
943
944
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
945
  | --program-suf | --program-su | --program-s)
946
    ac_prev=program_suffix ;;
947
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
948
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
949
    program_suffix=$ac_optarg ;;
950
951
  -program-transform-name | --program-transform-name \
952
  | --program-transform-nam | --program-transform-na \
953
  | --program-transform-n | --program-transform- \
954
  | --program-transform | --program-transfor \
955
  | --program-transfo | --program-transf \
956
  | --program-trans | --program-tran \
957
  | --progr-tra | --program-tr | --program-t)
958
    ac_prev=program_transform_name ;;
959
  -program-transform-name=* | --program-transform-name=* \
960
  | --program-transform-nam=* | --program-transform-na=* \
961
  | --program-transform-n=* | --program-transform-=* \
962
  | --program-transform=* | --program-transfor=* \
963
  | --program-transfo=* | --program-transf=* \
964
  | --program-trans=* | --program-tran=* \
965
  | --progr-tra=* | --program-tr=* | --program-t=*)
966
    program_transform_name=$ac_optarg ;;
967
968
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
969
    ac_prev=pdfdir ;;
970
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
971
    pdfdir=$ac_optarg ;;
972
973
  -psdir | --psdir | --psdi | --psd | --ps)
974
    ac_prev=psdir ;;
975
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
976
    psdir=$ac_optarg ;;
977
978
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
979
  | -silent | --silent | --silen | --sile | --sil)
980
    silent=yes ;;
981
982
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
983
    ac_prev=sbindir ;;
984
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
985
  | --sbi=* | --sb=*)
986
    sbindir=$ac_optarg ;;
987
988
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
989
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
990
  | --sharedst | --shareds | --shared | --share | --shar \
991
  | --sha | --sh)
992
    ac_prev=sharedstatedir ;;
993
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
994
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
995
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
996
  | --sha=* | --sh=*)
997
    sharedstatedir=$ac_optarg ;;
998
999
  -site | --site | --sit)
1000
    ac_prev=site ;;
1001
  -site=* | --site=* | --sit=*)
1002
    site=$ac_optarg ;;
1003
1004
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1005
    ac_prev=srcdir ;;
1006
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1007
    srcdir=$ac_optarg ;;
1008
1009
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1010
  | --syscon | --sysco | --sysc | --sys | --sy)
1011
    ac_prev=sysconfdir ;;
1012
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1013
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1014
    sysconfdir=$ac_optarg ;;
1015
1016
  -target | --target | --targe | --targ | --tar | --ta | --t)
1017
    ac_prev=target_alias ;;
1018
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1019
    target_alias=$ac_optarg ;;
1020
1021
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1022
    verbose=yes ;;
1023
1024
  -version | --version | --versio | --versi | --vers | -V)
1025
    ac_init_version=: ;;
1026
1027
  -with-* | --with-*)
1028
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029
    # Reject names that are not valid shell variable names.
1030
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031
      as_fn_error $? "invalid package name: $ac_useropt"
1032
    ac_useropt_orig=$ac_useropt
1033
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034
    case $ac_user_opts in
1035
      *"
1036
"with_$ac_useropt"
1037
"*) ;;
1038
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1039
	 ac_unrecognized_sep=', ';;
1040
    esac
1041
    eval with_$ac_useropt=\$ac_optarg ;;
1042
1043
  -without-* | --without-*)
1044
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045
    # Reject names that are not valid shell variable names.
1046
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047
      as_fn_error $? "invalid package name: $ac_useropt"
1048
    ac_useropt_orig=$ac_useropt
1049
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050
    case $ac_user_opts in
1051
      *"
1052
"with_$ac_useropt"
1053
"*) ;;
1054
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1055
	 ac_unrecognized_sep=', ';;
1056
    esac
1057
    eval with_$ac_useropt=no ;;
1058
1059
  --x)
1060
    # Obsolete; use --with-x.
1061
    with_x=yes ;;
1062
1063
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064
  | --x-incl | --x-inc | --x-in | --x-i)
1065
    ac_prev=x_includes ;;
1066
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068
    x_includes=$ac_optarg ;;
1069
1070
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1071
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072
    ac_prev=x_libraries ;;
1073
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075
    x_libraries=$ac_optarg ;;
1076
1077
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1078
Try \`$0 --help' for more information"
1079
    ;;
1080
1081
  *=*)
1082
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083
    # Reject names that are not valid shell variable names.
1084
    case $ac_envvar in #(
1085
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1086
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1087
    esac
1088
    eval $ac_envvar=\$ac_optarg
1089
    export $ac_envvar ;;
1090
1091
  *)
1092
    # FIXME: should be removed in autoconf 3.0.
1093
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1097
    ;;
1098
1099
  esac
1100
done
1101
1102
if test -n "$ac_prev"; then
1103
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1104
  as_fn_error $? "missing argument to $ac_option"
1105
fi
1106
1107
if test -n "$ac_unrecognized_opts"; then
1108
  case $enable_option_checking in
1109
    no) ;;
1110
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1111
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1112
  esac
1113
fi
1114
1115
# Check all directory arguments for consistency.
1116
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1117
		datadir sysconfdir sharedstatedir localstatedir includedir \
1118
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1119
		libdir localedir mandir
1120
do
1121
  eval ac_val=\$$ac_var
1122
  # Remove trailing slashes.
1123
  case $ac_val in
1124
    */ )
1125
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1126
      eval $ac_var=\$ac_val;;
1127
  esac
1128
  # Be sure to have absolute directory names.
1129
  case $ac_val in
1130
    [\\/$]* | ?:[\\/]* )  continue;;
1131
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1132
  esac
1133
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1134
done
1135
1136
# There might be people who depend on the old broken behavior: `$host'
1137
# used to hold the argument of --host etc.
1138
# FIXME: To remove some day.
1139
build=$build_alias
1140
host=$host_alias
1141
target=$target_alias
1142
1143
# FIXME: To remove some day.
1144
if test "x$host_alias" != x; then
1145
  if test "x$build_alias" = x; then
1146
    cross_compiling=maybe
1147
  elif test "x$build_alias" != "x$host_alias"; then
1148
    cross_compiling=yes
1149
  fi
1150
fi
1151
1152
ac_tool_prefix=
1153
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154
1155
test "$silent" = yes && exec 6>/dev/null
1156
1157
1158
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159
ac_ls_di=`ls -di .` &&
1160
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161
  as_fn_error $? "working directory cannot be determined"
1162
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163
  as_fn_error $? "pwd does not report name of working directory"
1164
1165
1166
# Find the source files, if location was not specified.
1167
if test -z "$srcdir"; then
1168
  ac_srcdir_defaulted=yes
1169
  # Try the directory containing this script, then the parent directory.
1170
  ac_confdir=`$as_dirname -- "$as_myself" ||
1171
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1173
	 X"$as_myself" : 'X\(//\)$' \| \
1174
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1175
$as_echo X"$as_myself" |
1176
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177
	    s//\1/
1178
	    q
1179
	  }
1180
	  /^X\(\/\/\)[^/].*/{
1181
	    s//\1/
1182
	    q
1183
	  }
1184
	  /^X\(\/\/\)$/{
1185
	    s//\1/
1186
	    q
1187
	  }
1188
	  /^X\(\/\).*/{
1189
	    s//\1/
1190
	    q
1191
	  }
1192
	  s/.*/./; q'`
1193
  srcdir=$ac_confdir
1194
  if test ! -r "$srcdir/$ac_unique_file"; then
1195
    srcdir=..
1196
  fi
1197
else
1198
  ac_srcdir_defaulted=no
1199
fi
1200
if test ! -r "$srcdir/$ac_unique_file"; then
1201
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1203
fi
1204
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205
ac_abs_confdir=`(
1206
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1207
	pwd)`
1208
# When building in place, set srcdir=.
1209
if test "$ac_abs_confdir" = "$ac_pwd"; then
1210
  srcdir=.
1211
fi
1212
# Remove unnecessary trailing slashes from srcdir.
1213
# Double slashes in file names in object file debugging info
1214
# mess up M-x gdb in Emacs.
1215
case $srcdir in
1216
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217
esac
1218
for ac_var in $ac_precious_vars; do
1219
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220
  eval ac_env_${ac_var}_value=\$${ac_var}
1221
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223
done
1224
1225
#
1226
# Report the --help message.
1227
#
1228
if test "$ac_init_help" = "long"; then
1229
  # Omit some internal or obsolete options to make the list less imposing.
1230
  # This message is too long to be a string in the A/UX 3.1 sh.
1231
  cat <<_ACEOF
1232
\`configure' configures pwol 1.5 to adapt to many kinds of systems.
1233
1234
Usage: $0 [OPTION]... [VAR=VALUE]...
1235
1236
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237
VAR=VALUE.  See below for descriptions of some of the useful variables.
1238
1239
Defaults for the options are specified in brackets.
1240
1241
Configuration:
1242
  -h, --help              display this help and exit
1243
      --help=short        display options specific to this package
1244
      --help=recursive    display the short help of all the included packages
1245
  -V, --version           display version information and exit
1246
  -q, --quiet, --silent   do not print \`checking ...' messages
1247
      --cache-file=FILE   cache test results in FILE [disabled]
1248
  -C, --config-cache      alias for \`--cache-file=config.cache'
1249
  -n, --no-create         do not create output files
1250
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1251
1252
Installation directories:
1253
  --prefix=PREFIX         install architecture-independent files in PREFIX
1254
                          [$ac_default_prefix]
1255
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1256
                          [PREFIX]
1257
1258
By default, \`make install' will install all the files in
1259
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1260
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261
for instance \`--prefix=\$HOME'.
1262
1263
For better control, use the options below.
1264
1265
Fine tuning of the installation directories:
1266
  --bindir=DIR            user executables [EPREFIX/bin]
1267
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1268
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1269
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1270
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1271
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1272
  --libdir=DIR            object code libraries [EPREFIX/lib]
1273
  --includedir=DIR        C header files [PREFIX/include]
1274
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1275
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1276
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1277
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1278
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1279
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1280
  --docdir=DIR            documentation root [DATAROOTDIR/doc/pwol]
1281
  --htmldir=DIR           html documentation [DOCDIR]
1282
  --dvidir=DIR            dvi documentation [DOCDIR]
1283
  --pdfdir=DIR            pdf documentation [DOCDIR]
1284
  --psdir=DIR             ps documentation [DOCDIR]
1285
_ACEOF
1286
1287
  cat <<\_ACEOF
1288
_ACEOF
1289
fi
1290
1291
if test -n "$ac_init_help"; then
1292
  case $ac_init_help in
1293
     short | recursive ) echo "Configuration of pwol 1.5:";;
1294
   esac
1295
  cat <<\_ACEOF
1296
1297
Some influential environment variables:
1298
  CC          C compiler command
1299
  CFLAGS      C compiler flags
1300
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1301
              nonstandard directory <lib dir>
1302
  LIBS        libraries to pass to the linker, e.g. -l<library>
1303
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1304
              you have headers in a nonstandard directory <include dir>
1305
  CPP         C preprocessor
1306
1307
Use these variables to override the choices made by `configure' or to help
1308
it to find libraries and programs with nonstandard names/locations.
1309
1310
Report bugs to <pen@lysator.liu.se>.
1311
pwol home page: <https://github.com/ptrrkssn/pwol>.
1312
_ACEOF
1313
ac_status=$?
1314
fi
1315
1316
if test "$ac_init_help" = "recursive"; then
1317
  # If there are subdirs, report their specific --help.
1318
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319
    test -d "$ac_dir" ||
1320
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1321
      continue
1322
    ac_builddir=.
1323
1324
case "$ac_dir" in
1325
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1326
*)
1327
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1328
  # A ".." for each directory in $ac_dir_suffix.
1329
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1330
  case $ac_top_builddir_sub in
1331
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333
  esac ;;
1334
esac
1335
ac_abs_top_builddir=$ac_pwd
1336
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337
# for backward compatibility:
1338
ac_top_builddir=$ac_top_build_prefix
1339
1340
case $srcdir in
1341
  .)  # We are building in place.
1342
    ac_srcdir=.
1343
    ac_top_srcdir=$ac_top_builddir_sub
1344
    ac_abs_top_srcdir=$ac_pwd ;;
1345
  [\\/]* | ?:[\\/]* )  # Absolute name.
1346
    ac_srcdir=$srcdir$ac_dir_suffix;
1347
    ac_top_srcdir=$srcdir
1348
    ac_abs_top_srcdir=$srcdir ;;
1349
  *) # Relative name.
1350
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1352
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1353
esac
1354
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1355
1356
    cd "$ac_dir" || { ac_status=$?; continue; }
1357
    # Check for guested configure.
1358
    if test -f "$ac_srcdir/configure.gnu"; then
1359
      echo &&
1360
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361
    elif test -f "$ac_srcdir/configure"; then
1362
      echo &&
1363
      $SHELL "$ac_srcdir/configure" --help=recursive
1364
    else
1365
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366
    fi || ac_status=$?
1367
    cd "$ac_pwd" || { ac_status=$?; break; }
1368
  done
1369
fi
1370
1371
test -n "$ac_init_help" && exit $ac_status
1372
if $ac_init_version; then
1373
  cat <<\_ACEOF
1374
pwol configure 1.5
1375
generated by GNU Autoconf 2.69
1376
1377
Copyright (C) 2012 Free Software Foundation, Inc.
1378
This configure script is free software; the Free Software Foundation
1379
gives unlimited permission to copy, distribute and modify it.
1380
_ACEOF
1381
  exit
1382
fi
1383
1384
## ------------------------ ##
1385
## Autoconf initialization. ##
1386
## ------------------------ ##
1387
1388
# ac_fn_c_try_compile LINENO
1389
# --------------------------
1390
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1391
ac_fn_c_try_compile ()
1392
{
1393
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1394
  rm -f conftest.$ac_objext
1395
  if { { ac_try="$ac_compile"
1396
case "(($ac_try" in
1397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1398
  *) ac_try_echo=$ac_try;;
1399
esac
1400
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1401
$as_echo "$ac_try_echo"; } >&5
1402
  (eval "$ac_compile") 2>conftest.err
1403
  ac_status=$?
1404
  if test -s conftest.err; then
1405
    grep -v '^ *+' conftest.err >conftest.er1
1406
    cat conftest.er1 >&5
1407
    mv -f conftest.er1 conftest.err
1408
  fi
1409
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1410
  test $ac_status = 0; } && {
1411
	 test -z "$ac_c_werror_flag" ||
1412
	 test ! -s conftest.err
1413
       } && test -s conftest.$ac_objext; then :
1414
  ac_retval=0
1415
else
1416
  $as_echo "$as_me: failed program was:" >&5
1417
sed 's/^/| /' conftest.$ac_ext >&5
1418
1419
	ac_retval=1
1420
fi
1421
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1422
  as_fn_set_status $ac_retval
1423
1424
} # ac_fn_c_try_compile
1425
1426
# ac_fn_c_try_link LINENO
1427
# -----------------------
1428
# Try to link conftest.$ac_ext, and return whether this succeeded.
1429
ac_fn_c_try_link ()
1430
{
1431
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1432
  rm -f conftest.$ac_objext conftest$ac_exeext
1433
  if { { ac_try="$ac_link"
1434
case "(($ac_try" in
1435
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1436
  *) ac_try_echo=$ac_try;;
1437
esac
1438
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439
$as_echo "$ac_try_echo"; } >&5
1440
  (eval "$ac_link") 2>conftest.err
1441
  ac_status=$?
1442
  if test -s conftest.err; then
1443
    grep -v '^ *+' conftest.err >conftest.er1
1444
    cat conftest.er1 >&5
1445
    mv -f conftest.er1 conftest.err
1446
  fi
1447
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1448
  test $ac_status = 0; } && {
1449
	 test -z "$ac_c_werror_flag" ||
1450
	 test ! -s conftest.err
1451
       } && test -s conftest$ac_exeext && {
1452
	 test "$cross_compiling" = yes ||
1453
	 test -x conftest$ac_exeext
1454
       }; then :
1455
  ac_retval=0
1456
else
1457
  $as_echo "$as_me: failed program was:" >&5
1458
sed 's/^/| /' conftest.$ac_ext >&5
1459
1460
	ac_retval=1
1461
fi
1462
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1463
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1464
  # interfere with the next link command; also delete a directory that is
1465
  # left behind by Apple's compiler.  We do this before executing the actions.
1466
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1467
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1468
  as_fn_set_status $ac_retval
1469
1470
} # ac_fn_c_try_link
1471
1472
# ac_fn_c_try_cpp LINENO
1473
# ----------------------
1474
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1475
ac_fn_c_try_cpp ()
1476
{
1477
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1479
case "(($ac_try" in
1480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481
  *) ac_try_echo=$ac_try;;
1482
esac
1483
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484
$as_echo "$ac_try_echo"; } >&5
1485
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1486
  ac_status=$?
1487
  if test -s conftest.err; then
1488
    grep -v '^ *+' conftest.err >conftest.er1
1489
    cat conftest.er1 >&5
1490
    mv -f conftest.er1 conftest.err
1491
  fi
1492
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493
  test $ac_status = 0; } > conftest.i && {
1494
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1495
	 test ! -s conftest.err
1496
       }; then :
1497
  ac_retval=0
1498
else
1499
  $as_echo "$as_me: failed program was:" >&5
1500
sed 's/^/| /' conftest.$ac_ext >&5
1501
1502
    ac_retval=1
1503
fi
1504
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505
  as_fn_set_status $ac_retval
1506
1507
} # ac_fn_c_try_cpp
1508
1509
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1510
# -------------------------------------------------------
1511
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1512
# the include files in INCLUDES and setting the cache variable VAR
1513
# accordingly.
1514
ac_fn_c_check_header_mongrel ()
1515
{
1516
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517
  if eval \${$3+:} false; then :
1518
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1519
$as_echo_n "checking for $2... " >&6; }
1520
if eval \${$3+:} false; then :
1521
  $as_echo_n "(cached) " >&6
1522
fi
1523
eval ac_res=\$$3
1524
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1525
$as_echo "$ac_res" >&6; }
1526
else
1527
  # Is the header compilable?
1528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1529
$as_echo_n "checking $2 usability... " >&6; }
1530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1531
/* end confdefs.h.  */
1532
$4
1533
#include <$2>
1534
_ACEOF
1535
if ac_fn_c_try_compile "$LINENO"; then :
1536
  ac_header_compiler=yes
1537
else
1538
  ac_header_compiler=no
1539
fi
1540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1542
$as_echo "$ac_header_compiler" >&6; }
1543
1544
# Is the header present?
1545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1546
$as_echo_n "checking $2 presence... " >&6; }
1547
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548
/* end confdefs.h.  */
1549
#include <$2>
1550
_ACEOF
1551
if ac_fn_c_try_cpp "$LINENO"; then :
1552
  ac_header_preproc=yes
1553
else
1554
  ac_header_preproc=no
1555
fi
1556
rm -f conftest.err conftest.i conftest.$ac_ext
1557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1558
$as_echo "$ac_header_preproc" >&6; }
1559
1560
# So?  What about this header?
1561
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1562
  yes:no: )
1563
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1564
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1565
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1566
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1567
    ;;
1568
  no:yes:* )
1569
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1570
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1571
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1572
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1573
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1574
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1575
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1576
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1577
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1578
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1579
( $as_echo "## --------------------------------- ##
1580
## Report this to pen@lysator.liu.se ##
1581
## --------------------------------- ##"
1582
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1583
    ;;
1584
esac
1585
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586
$as_echo_n "checking for $2... " >&6; }
1587
if eval \${$3+:} false; then :
1588
  $as_echo_n "(cached) " >&6
1589
else
1590
  eval "$3=\$ac_header_compiler"
1591
fi
1592
eval ac_res=\$$3
1593
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594
$as_echo "$ac_res" >&6; }
1595
fi
1596
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597
1598
} # ac_fn_c_check_header_mongrel
1599
1600
# ac_fn_c_try_run LINENO
1601
# ----------------------
1602
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1603
# that executables *can* be run.
1604
ac_fn_c_try_run ()
1605
{
1606
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607
  if { { ac_try="$ac_link"
1608
case "(($ac_try" in
1609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610
  *) ac_try_echo=$ac_try;;
1611
esac
1612
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613
$as_echo "$ac_try_echo"; } >&5
1614
  (eval "$ac_link") 2>&5
1615
  ac_status=$?
1616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1618
  { { case "(($ac_try" in
1619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620
  *) ac_try_echo=$ac_try;;
1621
esac
1622
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623
$as_echo "$ac_try_echo"; } >&5
1624
  (eval "$ac_try") 2>&5
1625
  ac_status=$?
1626
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627
  test $ac_status = 0; }; }; then :
1628
  ac_retval=0
1629
else
1630
  $as_echo "$as_me: program exited with status $ac_status" >&5
1631
       $as_echo "$as_me: failed program was:" >&5
1632
sed 's/^/| /' conftest.$ac_ext >&5
1633
1634
       ac_retval=$ac_status
1635
fi
1636
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
  as_fn_set_status $ac_retval
1639
1640
} # ac_fn_c_try_run
1641
1642
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643
# -------------------------------------------------------
1644
# Tests whether HEADER exists and can be compiled using the include files in
1645
# INCLUDES, setting the cache variable VAR accordingly.
1646
ac_fn_c_check_header_compile ()
1647
{
1648
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650
$as_echo_n "checking for $2... " >&6; }
1651
if eval \${$3+:} false; then :
1652
  $as_echo_n "(cached) " >&6
1653
else
1654
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655
/* end confdefs.h.  */
1656
$4
1657
#include <$2>
1658
_ACEOF
1659
if ac_fn_c_try_compile "$LINENO"; then :
1660
  eval "$3=yes"
1661
else
1662
  eval "$3=no"
1663
fi
1664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665
fi
1666
eval ac_res=\$$3
1667
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668
$as_echo "$ac_res" >&6; }
1669
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671
} # ac_fn_c_check_header_compile
1672
1673
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1674
# -------------------------------------------
1675
# Tests whether TYPE exists after having included INCLUDES, setting cache
1676
# variable VAR accordingly.
1677
ac_fn_c_check_type ()
1678
{
1679
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681
$as_echo_n "checking for $2... " >&6; }
1682
if eval \${$3+:} false; then :
1683
  $as_echo_n "(cached) " >&6
1684
else
1685
  eval "$3=no"
1686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687
/* end confdefs.h.  */
1688
$4
1689
int
1690
main ()
1691
{
1692
if (sizeof ($2))
1693
	 return 0;
1694
  ;
1695
  return 0;
1696
}
1697
_ACEOF
1698
if ac_fn_c_try_compile "$LINENO"; then :
1699
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700
/* end confdefs.h.  */
1701
$4
1702
int
1703
main ()
1704
{
1705
if (sizeof (($2)))
1706
	    return 0;
1707
  ;
1708
  return 0;
1709
}
1710
_ACEOF
1711
if ac_fn_c_try_compile "$LINENO"; then :
1712
1713
else
1714
  eval "$3=yes"
1715
fi
1716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717
fi
1718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719
fi
1720
eval ac_res=\$$3
1721
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722
$as_echo "$ac_res" >&6; }
1723
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725
} # ac_fn_c_check_type
1726
1727
# ac_fn_c_check_func LINENO FUNC VAR
1728
# ----------------------------------
1729
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730
ac_fn_c_check_func ()
1731
{
1732
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734
$as_echo_n "checking for $2... " >&6; }
1735
if eval \${$3+:} false; then :
1736
  $as_echo_n "(cached) " >&6
1737
else
1738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739
/* end confdefs.h.  */
1740
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742
#define $2 innocuous_$2
1743
1744
/* System header to define __stub macros and hopefully few prototypes,
1745
    which can conflict with char $2 (); below.
1746
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747
    <limits.h> exists even on freestanding compilers.  */
1748
1749
#ifdef __STDC__
1750
# include <limits.h>
1751
#else
1752
# include <assert.h>
1753
#endif
1754
1755
#undef $2
1756
1757
/* Override any GCC internal prototype to avoid an error.
1758
   Use char because int might match the return type of a GCC
1759
   builtin and then its argument prototype would still apply.  */
1760
#ifdef __cplusplus
1761
extern "C"
1762
#endif
1763
char $2 ();
1764
/* The GNU C library defines this for functions which it implements
1765
    to always fail with ENOSYS.  Some functions are actually named
1766
    something starting with __ and the normal name is an alias.  */
1767
#if defined __stub_$2 || defined __stub___$2
1768
choke me
1769
#endif
1770
1771
int
1772
main ()
1773
{
1774
return $2 ();
1775
  ;
1776
  return 0;
1777
}
1778
_ACEOF
1779
if ac_fn_c_try_link "$LINENO"; then :
1780
  eval "$3=yes"
1781
else
1782
  eval "$3=no"
1783
fi
1784
rm -f core conftest.err conftest.$ac_objext \
1785
    conftest$ac_exeext conftest.$ac_ext
1786
fi
1787
eval ac_res=\$$3
1788
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789
$as_echo "$ac_res" >&6; }
1790
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792
} # ac_fn_c_check_func
1793
cat >config.log <<_ACEOF
1794
This file contains any messages produced by compilers while
1795
running configure, to aid debugging if configure makes a mistake.
1796
1797
It was created by pwol $as_me 1.5, which was
1798
generated by GNU Autoconf 2.69.  Invocation command line was
1799
1800
  $ $0 $@
1801
1802
_ACEOF
1803
exec 5>>config.log
1804
{
1805
cat <<_ASUNAME
1806
## --------- ##
1807
## Platform. ##
1808
## --------- ##
1809
1810
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1811
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1812
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1813
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1814
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1815
1816
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1817
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1818
1819
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1820
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1821
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1822
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1823
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1824
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1825
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1826
1827
_ASUNAME
1828
1829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830
for as_dir in $PATH
1831
do
1832
  IFS=$as_save_IFS
1833
  test -z "$as_dir" && as_dir=.
1834
    $as_echo "PATH: $as_dir"
1835
  done
1836
IFS=$as_save_IFS
1837
1838
} >&5
1839
1840
cat >&5 <<_ACEOF
1841
1842
1843
## ----------- ##
1844
## Core tests. ##
1845
## ----------- ##
1846
1847
_ACEOF
1848
1849
1850
# Keep a trace of the command line.
1851
# Strip out --no-create and --no-recursion so they do not pile up.
1852
# Strip out --silent because we don't want to record it for future runs.
1853
# Also quote any args containing shell meta-characters.
1854
# Make two passes to allow for proper duplicate-argument suppression.
1855
ac_configure_args=
1856
ac_configure_args0=
1857
ac_configure_args1=
1858
ac_must_keep_next=false
1859
for ac_pass in 1 2
1860
do
1861
  for ac_arg
1862
  do
1863
    case $ac_arg in
1864
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1865
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1866
    | -silent | --silent | --silen | --sile | --sil)
1867
      continue ;;
1868
    *\'*)
1869
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1870
    esac
1871
    case $ac_pass in
1872
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1873
    2)
1874
      as_fn_append ac_configure_args1 " '$ac_arg'"
1875
      if test $ac_must_keep_next = true; then
1876
	ac_must_keep_next=false # Got value, back to normal.
1877
      else
1878
	case $ac_arg in
1879
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1880
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1881
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1882
	  | -with-* | --with-* | -without-* | --without-* | --x)
1883
	    case "$ac_configure_args0 " in
1884
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1885
	    esac
1886
	    ;;
1887
	  -* ) ac_must_keep_next=true ;;
1888
	esac
1889
      fi
1890
      as_fn_append ac_configure_args " '$ac_arg'"
1891
      ;;
1892
    esac
1893
  done
1894
done
1895
{ ac_configure_args0=; unset ac_configure_args0;}
1896
{ ac_configure_args1=; unset ac_configure_args1;}
1897
1898
# When interrupted or exit'd, cleanup temporary files, and complete
1899
# config.log.  We remove comments because anyway the quotes in there
1900
# would cause problems or look ugly.
1901
# WARNING: Use '\'' to represent an apostrophe within the trap.
1902
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1903
trap 'exit_status=$?
1904
  # Save into config.log some information that might help in debugging.
1905
  {
1906
    echo
1907
1908
    $as_echo "## ---------------- ##
1909
## Cache variables. ##
1910
## ---------------- ##"
1911
    echo
1912
    # The following way of writing the cache mishandles newlines in values,
1913
(
1914
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915
    eval ac_val=\$$ac_var
1916
    case $ac_val in #(
1917
    *${as_nl}*)
1918
      case $ac_var in #(
1919
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1920
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921
      esac
1922
      case $ac_var in #(
1923
      _ | IFS | as_nl) ;; #(
1924
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925
      *) { eval $ac_var=; unset $ac_var;} ;;
1926
      esac ;;
1927
    esac
1928
  done
1929
  (set) 2>&1 |
1930
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931
    *${as_nl}ac_space=\ *)
1932
      sed -n \
1933
	"s/'\''/'\''\\\\'\'''\''/g;
1934
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935
      ;; #(
1936
    *)
1937
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938
      ;;
1939
    esac |
1940
    sort
1941
)
1942
    echo
1943
1944
    $as_echo "## ----------------- ##
1945
## Output variables. ##
1946
## ----------------- ##"
1947
    echo
1948
    for ac_var in $ac_subst_vars
1949
    do
1950
      eval ac_val=\$$ac_var
1951
      case $ac_val in
1952
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953
      esac
1954
      $as_echo "$ac_var='\''$ac_val'\''"
1955
    done | sort
1956
    echo
1957
1958
    if test -n "$ac_subst_files"; then
1959
      $as_echo "## ------------------- ##
1960
## File substitutions. ##
1961
## ------------------- ##"
1962
      echo
1963
      for ac_var in $ac_subst_files
1964
      do
1965
	eval ac_val=\$$ac_var
1966
	case $ac_val in
1967
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968
	esac
1969
	$as_echo "$ac_var='\''$ac_val'\''"
1970
      done | sort
1971
      echo
1972
    fi
1973
1974
    if test -s confdefs.h; then
1975
      $as_echo "## ----------- ##
1976
## confdefs.h. ##
1977
## ----------- ##"
1978
      echo
1979
      cat confdefs.h
1980
      echo
1981
    fi
1982
    test "$ac_signal" != 0 &&
1983
      $as_echo "$as_me: caught signal $ac_signal"
1984
    $as_echo "$as_me: exit $exit_status"
1985
  } >&5
1986
  rm -f core *.core core.conftest.* &&
1987
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988
    exit $exit_status
1989
' 0
1990
for ac_signal in 1 2 13 15; do
1991
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992
done
1993
ac_signal=0
1994
1995
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1996
rm -f -r conftest* confdefs.h
1997
1998
$as_echo "/* confdefs.h */" > confdefs.h
1999
2000
# Predefined preprocessor variables.
2001
2002
cat >>confdefs.h <<_ACEOF
2003
#define PACKAGE_NAME "$PACKAGE_NAME"
2004
_ACEOF
2005
2006
cat >>confdefs.h <<_ACEOF
2007
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008
_ACEOF
2009
2010
cat >>confdefs.h <<_ACEOF
2011
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2012
_ACEOF
2013
2014
cat >>confdefs.h <<_ACEOF
2015
#define PACKAGE_STRING "$PACKAGE_STRING"
2016
_ACEOF
2017
2018
cat >>confdefs.h <<_ACEOF
2019
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020
_ACEOF
2021
2022
cat >>confdefs.h <<_ACEOF
2023
#define PACKAGE_URL "$PACKAGE_URL"
2024
_ACEOF
2025
2026
2027
# Let the site file select an alternate cache file if it wants to.
2028
# Prefer an explicitly selected file to automatically selected ones.
2029
ac_site_file1=NONE
2030
ac_site_file2=NONE
2031
if test -n "$CONFIG_SITE"; then
2032
  # We do not want a PATH search for config.site.
2033
  case $CONFIG_SITE in #((
2034
    -*)  ac_site_file1=./$CONFIG_SITE;;
2035
    */*) ac_site_file1=$CONFIG_SITE;;
2036
    *)   ac_site_file1=./$CONFIG_SITE;;
2037
  esac
2038
elif test "x$prefix" != xNONE; then
2039
  ac_site_file1=$prefix/share/config.site
2040
  ac_site_file2=$prefix/etc/config.site
2041
else
2042
  ac_site_file1=$ac_default_prefix/share/config.site
2043
  ac_site_file2=$ac_default_prefix/etc/config.site
2044
fi
2045
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2046
do
2047
  test "x$ac_site_file" = xNONE && continue
2048
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2049
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2051
    sed 's/^/| /' "$ac_site_file" >&5
2052
    . "$ac_site_file" \
2053
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2054
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2055
as_fn_error $? "failed to load site script $ac_site_file
2056
See \`config.log' for more details" "$LINENO" 5; }
2057
  fi
2058
done
2059
2060
if test -r "$cache_file"; then
2061
  # Some versions of bash will fail to source /dev/null (special files
2062
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2063
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2064
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065
$as_echo "$as_me: loading cache $cache_file" >&6;}
2066
    case $cache_file in
2067
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068
      *)                      . "./$cache_file";;
2069
    esac
2070
  fi
2071
else
2072
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073
$as_echo "$as_me: creating cache $cache_file" >&6;}
2074
  >$cache_file
2075
fi
2076
2077
# Check that the precious variables saved in the cache have kept the same
2078
# value.
2079
ac_cache_corrupted=false
2080
for ac_var in $ac_precious_vars; do
2081
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082
  eval ac_new_set=\$ac_env_${ac_var}_set
2083
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084
  eval ac_new_val=\$ac_env_${ac_var}_value
2085
  case $ac_old_set,$ac_new_set in
2086
    set,)
2087
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2089
      ac_cache_corrupted=: ;;
2090
    ,set)
2091
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2093
      ac_cache_corrupted=: ;;
2094
    ,);;
2095
    *)
2096
      if test "x$ac_old_val" != "x$ac_new_val"; then
2097
	# differences in whitespace do not lead to failure.
2098
	ac_old_val_w=`echo x $ac_old_val`
2099
	ac_new_val_w=`echo x $ac_new_val`
2100
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103
	  ac_cache_corrupted=:
2104
	else
2105
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107
	  eval $ac_var=\$ac_old_val
2108
	fi
2109
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2110
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2111
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2112
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2113
      fi;;
2114
  esac
2115
  # Pass precious variables to config.status.
2116
  if test "$ac_new_set" = set; then
2117
    case $ac_new_val in
2118
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2119
    *) ac_arg=$ac_var=$ac_new_val ;;
2120
    esac
2121
    case " $ac_configure_args " in
2122
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2123
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2124
    esac
2125
  fi
2126
done
2127
if $ac_cache_corrupted; then
2128
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2133
fi
2134
## -------------------- ##
2135
## Main body of script. ##
2136
## -------------------- ##
2137
2138
ac_ext=c
2139
ac_cpp='$CPP $CPPFLAGS'
2140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
2144
2145
2146
2147
ac_config_headers="$ac_config_headers config.h"
2148
2149
2150
ac_aux_dir=
2151
for ac_dir in aux "$srcdir"/aux; do
2152
  if test -f "$ac_dir/install-sh"; then
2153
    ac_aux_dir=$ac_dir
2154
    ac_install_sh="$ac_aux_dir/install-sh -c"
2155
    break
2156
  elif test -f "$ac_dir/install.sh"; then
2157
    ac_aux_dir=$ac_dir
2158
    ac_install_sh="$ac_aux_dir/install.sh -c"
2159
    break
2160
  elif test -f "$ac_dir/shtool"; then
2161
    ac_aux_dir=$ac_dir
2162
    ac_install_sh="$ac_aux_dir/shtool install -c"
2163
    break
2164
  fi
2165
done
2166
if test -z "$ac_aux_dir"; then
2167
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux \"$srcdir\"/aux" "$LINENO" 5
2168
fi
2169
2170
# These three variables are undocumented and unsupported,
2171
# and are intended to be withdrawn in a future Autoconf release.
2172
# They can cause serious problems if a builder's source tree is in a directory
2173
# whose full name contains unusual characters.
2174
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2175
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2176
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2177
2178
2179
2180
# Checks for programs.
2181
ac_ext=c
2182
ac_cpp='$CPP $CPPFLAGS'
2183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186
if test -n "$ac_tool_prefix"; then
2187
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2190
$as_echo_n "checking for $ac_word... " >&6; }
2191
if ${ac_cv_prog_CC+:} false; then :
2192
  $as_echo_n "(cached) " >&6
2193
else
2194
  if test -n "$CC"; then
2195
  ac_cv_prog_CC="$CC" # Let the user override the test.
2196
else
2197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198
for as_dir in $PATH
2199
do
2200
  IFS=$as_save_IFS
2201
  test -z "$as_dir" && as_dir=.
2202
    for ac_exec_ext in '' $ac_executable_extensions; do
2203
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2206
    break 2
2207
  fi
2208
done
2209
  done
2210
IFS=$as_save_IFS
2211
2212
fi
2213
fi
2214
CC=$ac_cv_prog_CC
2215
if test -n "$CC"; then
2216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2217
$as_echo "$CC" >&6; }
2218
else
2219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2220
$as_echo "no" >&6; }
2221
fi
2222
2223
2224
fi
2225
if test -z "$ac_cv_prog_CC"; then
2226
  ac_ct_CC=$CC
2227
  # Extract the first word of "gcc", so it can be a program name with args.
2228
set dummy gcc; ac_word=$2
2229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2230
$as_echo_n "checking for $ac_word... " >&6; }
2231
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2232
  $as_echo_n "(cached) " >&6
2233
else
2234
  if test -n "$ac_ct_CC"; then
2235
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2236
else
2237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238
for as_dir in $PATH
2239
do
2240
  IFS=$as_save_IFS
2241
  test -z "$as_dir" && as_dir=.
2242
    for ac_exec_ext in '' $ac_executable_extensions; do
2243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244
    ac_cv_prog_ac_ct_CC="gcc"
2245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2246
    break 2
2247
  fi
2248
done
2249
  done
2250
IFS=$as_save_IFS
2251
2252
fi
2253
fi
2254
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2255
if test -n "$ac_ct_CC"; then
2256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2257
$as_echo "$ac_ct_CC" >&6; }
2258
else
2259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260
$as_echo "no" >&6; }
2261
fi
2262
2263
  if test "x$ac_ct_CC" = x; then
2264
    CC=""
2265
  else
2266
    case $cross_compiling:$ac_tool_warned in
2267
yes:)
2268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2270
ac_tool_warned=yes ;;
2271
esac
2272
    CC=$ac_ct_CC
2273
  fi
2274
else
2275
  CC="$ac_cv_prog_CC"
2276
fi
2277
2278
if test -z "$CC"; then
2279
          if test -n "$ac_tool_prefix"; then
2280
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2281
set dummy ${ac_tool_prefix}cc; ac_word=$2
2282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2283
$as_echo_n "checking for $ac_word... " >&6; }
2284
if ${ac_cv_prog_CC+:} false; then :
2285
  $as_echo_n "(cached) " >&6
2286
else
2287
  if test -n "$CC"; then
2288
  ac_cv_prog_CC="$CC" # Let the user override the test.
2289
else
2290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291
for as_dir in $PATH
2292
do
2293
  IFS=$as_save_IFS
2294
  test -z "$as_dir" && as_dir=.
2295
    for ac_exec_ext in '' $ac_executable_extensions; do
2296
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2298
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299
    break 2
2300
  fi
2301
done
2302
  done
2303
IFS=$as_save_IFS
2304
2305
fi
2306
fi
2307
CC=$ac_cv_prog_CC
2308
if test -n "$CC"; then
2309
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2310
$as_echo "$CC" >&6; }
2311
else
2312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2313
$as_echo "no" >&6; }
2314
fi
2315
2316
2317
  fi
2318
fi
2319
if test -z "$CC"; then
2320
  # Extract the first word of "cc", so it can be a program name with args.
2321
set dummy cc; ac_word=$2
2322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2323
$as_echo_n "checking for $ac_word... " >&6; }
2324
if ${ac_cv_prog_CC+:} false; then :
2325
  $as_echo_n "(cached) " >&6
2326
else
2327
  if test -n "$CC"; then
2328
  ac_cv_prog_CC="$CC" # Let the user override the test.
2329
else
2330
  ac_prog_rejected=no
2331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332
for as_dir in $PATH
2333
do
2334
  IFS=$as_save_IFS
2335
  test -z "$as_dir" && as_dir=.
2336
    for ac_exec_ext in '' $ac_executable_extensions; do
2337
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2339
       ac_prog_rejected=yes
2340
       continue
2341
     fi
2342
    ac_cv_prog_CC="cc"
2343
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2344
    break 2
2345
  fi
2346
done
2347
  done
2348
IFS=$as_save_IFS
2349
2350
if test $ac_prog_rejected = yes; then
2351
  # We found a bogon in the path, so make sure we never use it.
2352
  set dummy $ac_cv_prog_CC
2353
  shift
2354
  if test $# != 0; then
2355
    # We chose a different compiler from the bogus one.
2356
    # However, it has the same basename, so the bogon will be chosen
2357
    # first if we set CC to just the basename; use the full file name.
2358
    shift
2359
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2360
  fi
2361
fi
2362
fi
2363
fi
2364
CC=$ac_cv_prog_CC
2365
if test -n "$CC"; then
2366
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2367
$as_echo "$CC" >&6; }
2368
else
2369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370
$as_echo "no" >&6; }
2371
fi
2372
2373
2374
fi
2375
if test -z "$CC"; then
2376
  if test -n "$ac_tool_prefix"; then
2377
  for ac_prog in cl.exe
2378
  do
2379
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2380
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382
$as_echo_n "checking for $ac_word... " >&6; }
2383
if ${ac_cv_prog_CC+:} false; then :
2384
  $as_echo_n "(cached) " >&6
2385
else
2386
  if test -n "$CC"; then
2387
  ac_cv_prog_CC="$CC" # Let the user override the test.
2388
else
2389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390
for as_dir in $PATH
2391
do
2392
  IFS=$as_save_IFS
2393
  test -z "$as_dir" && as_dir=.
2394
    for ac_exec_ext in '' $ac_executable_extensions; do
2395
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2398
    break 2
2399
  fi
2400
done
2401
  done
2402
IFS=$as_save_IFS
2403
2404
fi
2405
fi
2406
CC=$ac_cv_prog_CC
2407
if test -n "$CC"; then
2408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2409
$as_echo "$CC" >&6; }
2410
else
2411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2412
$as_echo "no" >&6; }
2413
fi
2414
2415
2416
    test -n "$CC" && break
2417
  done
2418
fi
2419
if test -z "$CC"; then
2420
  ac_ct_CC=$CC
2421
  for ac_prog in cl.exe
2422
do
2423
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2424
set dummy $ac_prog; ac_word=$2
2425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426
$as_echo_n "checking for $ac_word... " >&6; }
2427
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2428
  $as_echo_n "(cached) " >&6
2429
else
2430
  if test -n "$ac_ct_CC"; then
2431
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2432
else
2433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434
for as_dir in $PATH
2435
do
2436
  IFS=$as_save_IFS
2437
  test -z "$as_dir" && as_dir=.
2438
    for ac_exec_ext in '' $ac_executable_extensions; do
2439
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2440
    ac_cv_prog_ac_ct_CC="$ac_prog"
2441
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442
    break 2
2443
  fi
2444
done
2445
  done
2446
IFS=$as_save_IFS
2447
2448
fi
2449
fi
2450
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451
if test -n "$ac_ct_CC"; then
2452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2453
$as_echo "$ac_ct_CC" >&6; }
2454
else
2455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456
$as_echo "no" >&6; }
2457
fi
2458
2459
2460
  test -n "$ac_ct_CC" && break
2461
done
2462
2463
  if test "x$ac_ct_CC" = x; then
2464
    CC=""
2465
  else
2466
    case $cross_compiling:$ac_tool_warned in
2467
yes:)
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2469
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2470
ac_tool_warned=yes ;;
2471
esac
2472
    CC=$ac_ct_CC
2473
  fi
2474
fi
2475
2476
fi
2477
2478
2479
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481
as_fn_error $? "no acceptable C compiler found in \$PATH
2482
See \`config.log' for more details" "$LINENO" 5; }
2483
2484
# Provide some information about the compiler.
2485
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2486
set X $ac_compile
2487
ac_compiler=$2
2488
for ac_option in --version -v -V -qversion; do
2489
  { { ac_try="$ac_compiler $ac_option >&5"
2490
case "(($ac_try" in
2491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492
  *) ac_try_echo=$ac_try;;
2493
esac
2494
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495
$as_echo "$ac_try_echo"; } >&5
2496
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2497
  ac_status=$?
2498
  if test -s conftest.err; then
2499
    sed '10a\
2500
... rest of stderr output deleted ...
2501
         10q' conftest.err >conftest.er1
2502
    cat conftest.er1 >&5
2503
  fi
2504
  rm -f conftest.er1 conftest.err
2505
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506
  test $ac_status = 0; }
2507
done
2508
2509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510
/* end confdefs.h.  */
2511
2512
int
2513
main ()
2514
{
2515
2516
  ;
2517
  return 0;
2518
}
2519
_ACEOF
2520
ac_clean_files_save=$ac_clean_files
2521
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2522
# Try to create an executable without -o first, disregard a.out.
2523
# It will help us diagnose broken compilers, and finding out an intuition
2524
# of exeext.
2525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2526
$as_echo_n "checking whether the C compiler works... " >&6; }
2527
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2528
2529
# The possible output files:
2530
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2531
2532
ac_rmfiles=
2533
for ac_file in $ac_files
2534
do
2535
  case $ac_file in
2536
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2537
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2538
  esac
2539
done
2540
rm -f $ac_rmfiles
2541
2542
if { { ac_try="$ac_link_default"
2543
case "(($ac_try" in
2544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545
  *) ac_try_echo=$ac_try;;
2546
esac
2547
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548
$as_echo "$ac_try_echo"; } >&5
2549
  (eval "$ac_link_default") 2>&5
2550
  ac_status=$?
2551
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2552
  test $ac_status = 0; }; then :
2553
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2554
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2555
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2556
# so that the user can short-circuit this test for compilers unknown to
2557
# Autoconf.
2558
for ac_file in $ac_files ''
2559
do
2560
  test -f "$ac_file" || continue
2561
  case $ac_file in
2562
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2563
	;;
2564
    [ab].out )
2565
	# We found the default executable, but exeext='' is most
2566
	# certainly right.
2567
	break;;
2568
    *.* )
2569
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2570
	then :; else
2571
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572
	fi
2573
	# We set ac_cv_exeext here because the later test for it is not
2574
	# safe: cross compilers may not add the suffix if given an `-o'
2575
	# argument, so we may need to know it at that point already.
2576
	# Even if this section looks crufty: it has the advantage of
2577
	# actually working.
2578
	break;;
2579
    * )
2580
	break;;
2581
  esac
2582
done
2583
test "$ac_cv_exeext" = no && ac_cv_exeext=
2584
2585
else
2586
  ac_file=''
2587
fi
2588
if test -z "$ac_file"; then :
2589
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590
$as_echo "no" >&6; }
2591
$as_echo "$as_me: failed program was:" >&5
2592
sed 's/^/| /' conftest.$ac_ext >&5
2593
2594
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596
as_fn_error 77 "C compiler cannot create executables
2597
See \`config.log' for more details" "$LINENO" 5; }
2598
else
2599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600
$as_echo "yes" >&6; }
2601
fi
2602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2603
$as_echo_n "checking for C compiler default output file name... " >&6; }
2604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2605
$as_echo "$ac_file" >&6; }
2606
ac_exeext=$ac_cv_exeext
2607
2608
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2609
ac_clean_files=$ac_clean_files_save
2610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2611
$as_echo_n "checking for suffix of executables... " >&6; }
2612
if { { ac_try="$ac_link"
2613
case "(($ac_try" in
2614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615
  *) ac_try_echo=$ac_try;;
2616
esac
2617
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2618
$as_echo "$ac_try_echo"; } >&5
2619
  (eval "$ac_link") 2>&5
2620
  ac_status=$?
2621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622
  test $ac_status = 0; }; then :
2623
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2624
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2625
# work properly (i.e., refer to `conftest.exe'), while it won't with
2626
# `rm'.
2627
for ac_file in conftest.exe conftest conftest.*; do
2628
  test -f "$ac_file" || continue
2629
  case $ac_file in
2630
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2631
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632
	  break;;
2633
    * ) break;;
2634
  esac
2635
done
2636
else
2637
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2640
See \`config.log' for more details" "$LINENO" 5; }
2641
fi
2642
rm -f conftest conftest$ac_cv_exeext
2643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2644
$as_echo "$ac_cv_exeext" >&6; }
2645
2646
rm -f conftest.$ac_ext
2647
EXEEXT=$ac_cv_exeext
2648
ac_exeext=$EXEEXT
2649
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650
/* end confdefs.h.  */
2651
#include <stdio.h>
2652
int
2653
main ()
2654
{
2655
FILE *f = fopen ("conftest.out", "w");
2656
 return ferror (f) || fclose (f) != 0;
2657
2658
  ;
2659
  return 0;
2660
}
2661
_ACEOF
2662
ac_clean_files="$ac_clean_files conftest.out"
2663
# Check that the compiler produces executables we can run.  If not, either
2664
# the compiler is broken, or we cross compile.
2665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2666
$as_echo_n "checking whether we are cross compiling... " >&6; }
2667
if test "$cross_compiling" != yes; then
2668
  { { ac_try="$ac_link"
2669
case "(($ac_try" in
2670
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671
  *) ac_try_echo=$ac_try;;
2672
esac
2673
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674
$as_echo "$ac_try_echo"; } >&5
2675
  (eval "$ac_link") 2>&5
2676
  ac_status=$?
2677
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678
  test $ac_status = 0; }
2679
  if { ac_try='./conftest$ac_cv_exeext'
2680
  { { case "(($ac_try" in
2681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682
  *) ac_try_echo=$ac_try;;
2683
esac
2684
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685
$as_echo "$ac_try_echo"; } >&5
2686
  (eval "$ac_try") 2>&5
2687
  ac_status=$?
2688
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689
  test $ac_status = 0; }; }; then
2690
    cross_compiling=no
2691
  else
2692
    if test "$cross_compiling" = maybe; then
2693
	cross_compiling=yes
2694
    else
2695
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697
as_fn_error $? "cannot run C compiled programs.
2698
If you meant to cross compile, use \`--host'.
2699
See \`config.log' for more details" "$LINENO" 5; }
2700
    fi
2701
  fi
2702
fi
2703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2704
$as_echo "$cross_compiling" >&6; }
2705
2706
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2707
ac_clean_files=$ac_clean_files_save
2708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2709
$as_echo_n "checking for suffix of object files... " >&6; }
2710
if ${ac_cv_objext+:} false; then :
2711
  $as_echo_n "(cached) " >&6
2712
else
2713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714
/* end confdefs.h.  */
2715
2716
int
2717
main ()
2718
{
2719
2720
  ;
2721
  return 0;
2722
}
2723
_ACEOF
2724
rm -f conftest.o conftest.obj
2725
if { { ac_try="$ac_compile"
2726
case "(($ac_try" in
2727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728
  *) ac_try_echo=$ac_try;;
2729
esac
2730
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731
$as_echo "$ac_try_echo"; } >&5
2732
  (eval "$ac_compile") 2>&5
2733
  ac_status=$?
2734
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735
  test $ac_status = 0; }; then :
2736
  for ac_file in conftest.o conftest.obj conftest.*; do
2737
  test -f "$ac_file" || continue;
2738
  case $ac_file in
2739
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2740
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2741
       break;;
2742
  esac
2743
done
2744
else
2745
  $as_echo "$as_me: failed program was:" >&5
2746
sed 's/^/| /' conftest.$ac_ext >&5
2747
2748
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750
as_fn_error $? "cannot compute suffix of object files: cannot compile
2751
See \`config.log' for more details" "$LINENO" 5; }
2752
fi
2753
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2754
fi
2755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2756
$as_echo "$ac_cv_objext" >&6; }
2757
OBJEXT=$ac_cv_objext
2758
ac_objext=$OBJEXT
2759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2760
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2761
if ${ac_cv_c_compiler_gnu+:} false; then :
2762
  $as_echo_n "(cached) " >&6
2763
else
2764
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765
/* end confdefs.h.  */
2766
2767
int
2768
main ()
2769
{
2770
#ifndef __GNUC__
2771
       choke me
2772
#endif
2773
2774
  ;
2775
  return 0;
2776
}
2777
_ACEOF
2778
if ac_fn_c_try_compile "$LINENO"; then :
2779
  ac_compiler_gnu=yes
2780
else
2781
  ac_compiler_gnu=no
2782
fi
2783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2785
2786
fi
2787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2788
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2789
if test $ac_compiler_gnu = yes; then
2790
  GCC=yes
2791
else
2792
  GCC=
2793
fi
2794
ac_test_CFLAGS=${CFLAGS+set}
2795
ac_save_CFLAGS=$CFLAGS
2796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2797
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2798
if ${ac_cv_prog_cc_g+:} false; then :
2799
  $as_echo_n "(cached) " >&6
2800
else
2801
  ac_save_c_werror_flag=$ac_c_werror_flag
2802
   ac_c_werror_flag=yes
2803
   ac_cv_prog_cc_g=no
2804
   CFLAGS="-g"
2805
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806
/* end confdefs.h.  */
2807
2808
int
2809
main ()
2810
{
2811
2812
  ;
2813
  return 0;
2814
}
2815
_ACEOF
2816
if ac_fn_c_try_compile "$LINENO"; then :
2817
  ac_cv_prog_cc_g=yes
2818
else
2819
  CFLAGS=""
2820
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821
/* end confdefs.h.  */
2822
2823
int
2824
main ()
2825
{
2826
2827
  ;
2828
  return 0;
2829
}
2830
_ACEOF
2831
if ac_fn_c_try_compile "$LINENO"; then :
2832
2833
else
2834
  ac_c_werror_flag=$ac_save_c_werror_flag
2835
	 CFLAGS="-g"
2836
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837
/* end confdefs.h.  */
2838
2839
int
2840
main ()
2841
{
2842
2843
  ;
2844
  return 0;
2845
}
2846
_ACEOF
2847
if ac_fn_c_try_compile "$LINENO"; then :
2848
  ac_cv_prog_cc_g=yes
2849
fi
2850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851
fi
2852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853
fi
2854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855
   ac_c_werror_flag=$ac_save_c_werror_flag
2856
fi
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2858
$as_echo "$ac_cv_prog_cc_g" >&6; }
2859
if test "$ac_test_CFLAGS" = set; then
2860
  CFLAGS=$ac_save_CFLAGS
2861
elif test $ac_cv_prog_cc_g = yes; then
2862
  if test "$GCC" = yes; then
2863
    CFLAGS="-g -O2"
2864
  else
2865
    CFLAGS="-g"
2866
  fi
2867
else
2868
  if test "$GCC" = yes; then
2869
    CFLAGS="-O2"
2870
  else
2871
    CFLAGS=
2872
  fi
2873
fi
2874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2875
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2876
if ${ac_cv_prog_cc_c89+:} false; then :
2877
  $as_echo_n "(cached) " >&6
2878
else
2879
  ac_cv_prog_cc_c89=no
2880
ac_save_CC=$CC
2881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882
/* end confdefs.h.  */
2883
#include <stdarg.h>
2884
#include <stdio.h>
2885
struct stat;
2886
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2887
struct buf { int x; };
2888
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2889
static char *e (p, i)
2890
     char **p;
2891
     int i;
2892
{
2893
  return p[i];
2894
}
2895
static char *f (char * (*g) (char **, int), char **p, ...)
2896
{
2897
  char *s;
2898
  va_list v;
2899
  va_start (v,p);
2900
  s = g (p, va_arg (v,int));
2901
  va_end (v);
2902
  return s;
2903
}
2904
2905
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2906
   function prototypes and stuff, but not '\xHH' hex character constants.
2907
   These don't provoke an error unfortunately, instead are silently treated
2908
   as 'x'.  The following induces an error, until -std is added to get
2909
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2910
   array size at least.  It's necessary to write '\x00'==0 to get something
2911
   that's true only with -std.  */
2912
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2913
2914
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2915
   inside strings and character constants.  */
2916
#define FOO(x) 'x'
2917
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2918
2919
int test (int i, double x);
2920
struct s1 {int (*f) (int a);};
2921
struct s2 {int (*f) (double a);};
2922
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2923
int argc;
2924
char **argv;
2925
int
2926
main ()
2927
{
2928
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2929
  ;
2930
  return 0;
2931
}
2932
_ACEOF
2933
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2934
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2935
do
2936
  CC="$ac_save_CC $ac_arg"
2937
  if ac_fn_c_try_compile "$LINENO"; then :
2938
  ac_cv_prog_cc_c89=$ac_arg
2939
fi
2940
rm -f core conftest.err conftest.$ac_objext
2941
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2942
done
2943
rm -f conftest.$ac_ext
2944
CC=$ac_save_CC
2945
2946
fi
2947
# AC_CACHE_VAL
2948
case "x$ac_cv_prog_cc_c89" in
2949
  x)
2950
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2951
$as_echo "none needed" >&6; } ;;
2952
  xno)
2953
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2954
$as_echo "unsupported" >&6; } ;;
2955
  *)
2956
    CC="$CC $ac_cv_prog_cc_c89"
2957
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2958
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2959
esac
2960
if test "x$ac_cv_prog_cc_c89" != xno; then :
2961
2962
fi
2963
2964
ac_ext=c
2965
ac_cpp='$CPP $CPPFLAGS'
2966
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969
2970
# Find a good install program.  We prefer a C program (faster),
2971
# so one script is as good as another.  But avoid the broken or
2972
# incompatible versions:
2973
# SysV /etc/install, /usr/sbin/install
2974
# SunOS /usr/etc/install
2975
# IRIX /sbin/install
2976
# AIX /bin/install
2977
# AmigaOS /C/install, which installs bootblocks on floppy discs
2978
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2979
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2980
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2981
# OS/2's system install, which has a completely different semantic
2982
# ./install, which can be erroneously created by make from ./install.sh.
2983
# Reject install programs that cannot install multiple files.
2984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2985
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2986
if test -z "$INSTALL"; then
2987
if ${ac_cv_path_install+:} false; then :
2988
  $as_echo_n "(cached) " >&6
2989
else
2990
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991
for as_dir in $PATH
2992
do
2993
  IFS=$as_save_IFS
2994
  test -z "$as_dir" && as_dir=.
2995
    # Account for people who put trailing slashes in PATH elements.
2996
case $as_dir/ in #((
2997
  ./ | .// | /[cC]/* | \
2998
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2999
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3000
  /usr/ucb/* ) ;;
3001
  *)
3002
    # OSF1 and SCO ODT 3.0 have their own names for install.
3003
    # Don't use installbsd from OSF since it installs stuff as root
3004
    # by default.
3005
    for ac_prog in ginstall scoinst install; do
3006
      for ac_exec_ext in '' $ac_executable_extensions; do
3007
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3008
	  if test $ac_prog = install &&
3009
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3010
	    # AIX install.  It has an incompatible calling convention.
3011
	    :
3012
	  elif test $ac_prog = install &&
3013
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3014
	    # program-specific install script used by HP pwplus--don't use.
3015
	    :
3016
	  else
3017
	    rm -rf conftest.one conftest.two conftest.dir
3018
	    echo one > conftest.one
3019
	    echo two > conftest.two
3020
	    mkdir conftest.dir
3021
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3022
	      test -s conftest.one && test -s conftest.two &&
3023
	      test -s conftest.dir/conftest.one &&
3024
	      test -s conftest.dir/conftest.two
3025
	    then
3026
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3027
	      break 3
3028
	    fi
3029
	  fi
3030
	fi
3031
      done
3032
    done
3033
    ;;
3034
esac
3035
3036
  done
3037
IFS=$as_save_IFS
3038
3039
rm -rf conftest.one conftest.two conftest.dir
3040
3041
fi
3042
  if test "${ac_cv_path_install+set}" = set; then
3043
    INSTALL=$ac_cv_path_install
3044
  else
3045
    # As a last resort, use the slow shell script.  Don't cache a
3046
    # value for INSTALL within a source directory, because that will
3047
    # break other packages using the cache if that directory is
3048
    # removed, or if the value is a relative name.
3049
    INSTALL=$ac_install_sh
3050
  fi
3051
fi
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3053
$as_echo "$INSTALL" >&6; }
3054
3055
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3056
# It thinks the first close brace ends the variable substitution.
3057
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3058
3059
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3060
3061
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3062
3063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065
set x ${MAKE-make}
3066
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3068
  $as_echo_n "(cached) " >&6
3069
else
3070
  cat >conftest.make <<\_ACEOF
3071
SHELL = /bin/sh
3072
all:
3073
	@echo '@@@%%%=$(MAKE)=@@@%%%'
3074
_ACEOF
3075
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3076
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077
  *@@@%%%=?*=@@@%%%*)
3078
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3079
  *)
3080
    eval ac_cv_prog_make_${ac_make}_set=no;;
3081
esac
3082
rm -f conftest.make
3083
fi
3084
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086
$as_echo "yes" >&6; }
3087
  SET_MAKE=
3088
else
3089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090
$as_echo "no" >&6; }
3091
  SET_MAKE="MAKE=${MAKE-make}"
3092
fi
3093
3094
3095
# Checks for libraries.
3096
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3098
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3099
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
3100
  $as_echo_n "(cached) " >&6
3101
else
3102
  ac_check_lib_save_LIBS=$LIBS
3103
LIBS="-lpthread  $LIBS"
3104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105
/* end confdefs.h.  */
3106
3107
/* Override any GCC internal prototype to avoid an error.
3108
   Use char because int might match the return type of a GCC
3109
   builtin and then its argument prototype would still apply.  */
3110
#ifdef __cplusplus
3111
extern "C"
3112
#endif
3113
char pthread_create ();
3114
int
3115
main ()
3116
{
3117
return pthread_create ();
3118
  ;
3119
  return 0;
3120
}
3121
_ACEOF
3122
if ac_fn_c_try_link "$LINENO"; then :
3123
  ac_cv_lib_pthread_pthread_create=yes
3124
else
3125
  ac_cv_lib_pthread_pthread_create=no
3126
fi
3127
rm -f core conftest.err conftest.$ac_objext \
3128
    conftest$ac_exeext conftest.$ac_ext
3129
LIBS=$ac_check_lib_save_LIBS
3130
fi
3131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3132
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3133
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
3134
  cat >>confdefs.h <<_ACEOF
3135
#define HAVE_LIBPTHREAD 1
3136
_ACEOF
3137
3138
  LIBS="-lpthread $LIBS"
3139
3140
fi
3141
3142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
3143
$as_echo_n "checking for connect in -lsocket... " >&6; }
3144
if ${ac_cv_lib_socket_connect+:} false; then :
3145
  $as_echo_n "(cached) " >&6
3146
else
3147
  ac_check_lib_save_LIBS=$LIBS
3148
LIBS="-lsocket  $LIBS"
3149
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150
/* end confdefs.h.  */
3151
3152
/* Override any GCC internal prototype to avoid an error.
3153
   Use char because int might match the return type of a GCC
3154
   builtin and then its argument prototype would still apply.  */
3155
#ifdef __cplusplus
3156
extern "C"
3157
#endif
3158
char connect ();
3159
int
3160
main ()
3161
{
3162
return connect ();
3163
  ;
3164
  return 0;
3165
}
3166
_ACEOF
3167
if ac_fn_c_try_link "$LINENO"; then :
3168
  ac_cv_lib_socket_connect=yes
3169
else
3170
  ac_cv_lib_socket_connect=no
3171
fi
3172
rm -f core conftest.err conftest.$ac_objext \
3173
    conftest$ac_exeext conftest.$ac_ext
3174
LIBS=$ac_check_lib_save_LIBS
3175
fi
3176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
3177
$as_echo "$ac_cv_lib_socket_connect" >&6; }
3178
if test "x$ac_cv_lib_socket_connect" = xyes; then :
3179
  cat >>confdefs.h <<_ACEOF
3180
#define HAVE_LIBSOCKET 1
3181
_ACEOF
3182
3183
  LIBS="-lsocket $LIBS"
3184
3185
fi
3186
3187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3188
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3189
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
3190
  $as_echo_n "(cached) " >&6
3191
else
3192
  ac_check_lib_save_LIBS=$LIBS
3193
LIBS="-lnsl  $LIBS"
3194
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195
/* end confdefs.h.  */
3196
3197
/* Override any GCC internal prototype to avoid an error.
3198
   Use char because int might match the return type of a GCC
3199
   builtin and then its argument prototype would still apply.  */
3200
#ifdef __cplusplus
3201
extern "C"
3202
#endif
3203
char gethostbyname ();
3204
int
3205
main ()
3206
{
3207
return gethostbyname ();
3208
  ;
3209
  return 0;
3210
}
3211
_ACEOF
3212
if ac_fn_c_try_link "$LINENO"; then :
3213
  ac_cv_lib_nsl_gethostbyname=yes
3214
else
3215
  ac_cv_lib_nsl_gethostbyname=no
3216
fi
3217
rm -f core conftest.err conftest.$ac_objext \
3218
    conftest$ac_exeext conftest.$ac_ext
3219
LIBS=$ac_check_lib_save_LIBS
3220
fi
3221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3222
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3223
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
3224
  cat >>confdefs.h <<_ACEOF
3225
#define HAVE_LIBNSL 1
3226
_ACEOF
3227
3228
  LIBS="-lnsl $LIBS"
3229
3230
fi
3231
3232
3233
# Checks for header files.
3234
ac_ext=c
3235
ac_cpp='$CPP $CPPFLAGS'
3236
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3240
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3241
# On Suns, sometimes $CPP names a directory.
3242
if test -n "$CPP" && test -d "$CPP"; then
3243
  CPP=
3244
fi
3245
if test -z "$CPP"; then
3246
  if ${ac_cv_prog_CPP+:} false; then :
3247
  $as_echo_n "(cached) " >&6
3248
else
3249
      # Double quotes because CPP needs to be expanded
3250
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251
    do
3252
      ac_preproc_ok=false
3253
for ac_c_preproc_warn_flag in '' yes
3254
do
3255
  # Use a header file that comes with gcc, so configuring glibc
3256
  # with a fresh cross-compiler works.
3257
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258
  # <limits.h> exists even on freestanding compilers.
3259
  # On the NeXT, cc -E runs the code through the compiler's parser,
3260
  # not just through cpp. "Syntax error" is here to catch this case.
3261
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262
/* end confdefs.h.  */
3263
#ifdef __STDC__
3264
# include <limits.h>
3265
#else
3266
# include <assert.h>
3267
#endif
3268
		     Syntax error
3269
_ACEOF
3270
if ac_fn_c_try_cpp "$LINENO"; then :
3271
3272
else
3273
  # Broken: fails on valid input.
3274
continue
3275
fi
3276
rm -f conftest.err conftest.i conftest.$ac_ext
3277
3278
  # OK, works on sane cases.  Now check whether nonexistent headers
3279
  # can be detected and how.
3280
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281
/* end confdefs.h.  */
3282
#include <ac_nonexistent.h>
3283
_ACEOF
3284
if ac_fn_c_try_cpp "$LINENO"; then :
3285
  # Broken: success on invalid input.
3286
continue
3287
else
3288
  # Passes both tests.
3289
ac_preproc_ok=:
3290
break
3291
fi
3292
rm -f conftest.err conftest.i conftest.$ac_ext
3293
3294
done
3295
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3296
rm -f conftest.i conftest.err conftest.$ac_ext
3297
if $ac_preproc_ok; then :
3298
  break
3299
fi
3300
3301
    done
3302
    ac_cv_prog_CPP=$CPP
3303
3304
fi
3305
  CPP=$ac_cv_prog_CPP
3306
else
3307
  ac_cv_prog_CPP=$CPP
3308
fi
3309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3310
$as_echo "$CPP" >&6; }
3311
ac_preproc_ok=false
3312
for ac_c_preproc_warn_flag in '' yes
3313
do
3314
  # Use a header file that comes with gcc, so configuring glibc
3315
  # with a fresh cross-compiler works.
3316
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317
  # <limits.h> exists even on freestanding compilers.
3318
  # On the NeXT, cc -E runs the code through the compiler's parser,
3319
  # not just through cpp. "Syntax error" is here to catch this case.
3320
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321
/* end confdefs.h.  */
3322
#ifdef __STDC__
3323
# include <limits.h>
3324
#else
3325
# include <assert.h>
3326
#endif
3327
		     Syntax error
3328
_ACEOF
3329
if ac_fn_c_try_cpp "$LINENO"; then :
3330
3331
else
3332
  # Broken: fails on valid input.
3333
continue
3334
fi
3335
rm -f conftest.err conftest.i conftest.$ac_ext
3336
3337
  # OK, works on sane cases.  Now check whether nonexistent headers
3338
  # can be detected and how.
3339
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340
/* end confdefs.h.  */
3341
#include <ac_nonexistent.h>
3342
_ACEOF
3343
if ac_fn_c_try_cpp "$LINENO"; then :
3344
  # Broken: success on invalid input.
3345
continue
3346
else
3347
  # Passes both tests.
3348
ac_preproc_ok=:
3349
break
3350
fi
3351
rm -f conftest.err conftest.i conftest.$ac_ext
3352
3353
done
3354
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355
rm -f conftest.i conftest.err conftest.$ac_ext
3356
if $ac_preproc_ok; then :
3357
3358
else
3359
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3362
See \`config.log' for more details" "$LINENO" 5; }
3363
fi
3364
3365
ac_ext=c
3366
ac_cpp='$CPP $CPPFLAGS'
3367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3373
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3374
if ${ac_cv_path_GREP+:} false; then :
3375
  $as_echo_n "(cached) " >&6
3376
else
3377
  if test -z "$GREP"; then
3378
  ac_path_GREP_found=false
3379
  # Loop through the user's path and test for each of PROGNAME-LIST
3380
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3382
do
3383
  IFS=$as_save_IFS
3384
  test -z "$as_dir" && as_dir=.
3385
    for ac_prog in grep ggrep; do
3386
    for ac_exec_ext in '' $ac_executable_extensions; do
3387
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3388
      as_fn_executable_p "$ac_path_GREP" || continue
3389
# Check for GNU ac_path_GREP and select it if it is found.
3390
  # Check for GNU $ac_path_GREP
3391
case `"$ac_path_GREP" --version 2>&1` in
3392
*GNU*)
3393
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3394
*)
3395
  ac_count=0
3396
  $as_echo_n 0123456789 >"conftest.in"
3397
  while :
3398
  do
3399
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3400
    mv "conftest.tmp" "conftest.in"
3401
    cp "conftest.in" "conftest.nl"
3402
    $as_echo 'GREP' >> "conftest.nl"
3403
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3404
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3405
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3406
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3407
      # Best one so far, save it but keep looking for a better one
3408
      ac_cv_path_GREP="$ac_path_GREP"
3409
      ac_path_GREP_max=$ac_count
3410
    fi
3411
    # 10*(2^10) chars as input seems more than enough
3412
    test $ac_count -gt 10 && break
3413
  done
3414
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415
esac
3416
3417
      $ac_path_GREP_found && break 3
3418
    done
3419
  done
3420
  done
3421
IFS=$as_save_IFS
3422
  if test -z "$ac_cv_path_GREP"; then
3423
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3424
  fi
3425
else
3426
  ac_cv_path_GREP=$GREP
3427
fi
3428
3429
fi
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3431
$as_echo "$ac_cv_path_GREP" >&6; }
3432
 GREP="$ac_cv_path_GREP"
3433
3434
3435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3436
$as_echo_n "checking for egrep... " >&6; }
3437
if ${ac_cv_path_EGREP+:} false; then :
3438
  $as_echo_n "(cached) " >&6
3439
else
3440
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3441
   then ac_cv_path_EGREP="$GREP -E"
3442
   else
3443
     if test -z "$EGREP"; then
3444
  ac_path_EGREP_found=false
3445
  # Loop through the user's path and test for each of PROGNAME-LIST
3446
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448
do
3449
  IFS=$as_save_IFS
3450
  test -z "$as_dir" && as_dir=.
3451
    for ac_prog in egrep; do
3452
    for ac_exec_ext in '' $ac_executable_extensions; do
3453
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3454
      as_fn_executable_p "$ac_path_EGREP" || continue
3455
# Check for GNU ac_path_EGREP and select it if it is found.
3456
  # Check for GNU $ac_path_EGREP
3457
case `"$ac_path_EGREP" --version 2>&1` in
3458
*GNU*)
3459
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3460
*)
3461
  ac_count=0
3462
  $as_echo_n 0123456789 >"conftest.in"
3463
  while :
3464
  do
3465
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3466
    mv "conftest.tmp" "conftest.in"
3467
    cp "conftest.in" "conftest.nl"
3468
    $as_echo 'EGREP' >> "conftest.nl"
3469
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3472
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3473
      # Best one so far, save it but keep looking for a better one
3474
      ac_cv_path_EGREP="$ac_path_EGREP"
3475
      ac_path_EGREP_max=$ac_count
3476
    fi
3477
    # 10*(2^10) chars as input seems more than enough
3478
    test $ac_count -gt 10 && break
3479
  done
3480
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481
esac
3482
3483
      $ac_path_EGREP_found && break 3
3484
    done
3485
  done
3486
  done
3487
IFS=$as_save_IFS
3488
  if test -z "$ac_cv_path_EGREP"; then
3489
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3490
  fi
3491
else
3492
  ac_cv_path_EGREP=$EGREP
3493
fi
3494
3495
   fi
3496
fi
3497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3498
$as_echo "$ac_cv_path_EGREP" >&6; }
3499
 EGREP="$ac_cv_path_EGREP"
3500
3501
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3503
$as_echo_n "checking for ANSI C header files... " >&6; }
3504
if ${ac_cv_header_stdc+:} false; then :
3505
  $as_echo_n "(cached) " >&6
3506
else
3507
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508
/* end confdefs.h.  */
3509
#include <stdlib.h>
3510
#include <stdarg.h>
3511
#include <string.h>
3512
#include <float.h>
3513
3514
int
3515
main ()
3516
{
3517
3518
  ;
3519
  return 0;
3520
}
3521
_ACEOF
3522
if ac_fn_c_try_compile "$LINENO"; then :
3523
  ac_cv_header_stdc=yes
3524
else
3525
  ac_cv_header_stdc=no
3526
fi
3527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528
3529
if test $ac_cv_header_stdc = yes; then
3530
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532
/* end confdefs.h.  */
3533
#include <string.h>
3534
3535
_ACEOF
3536
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537
  $EGREP "memchr" >/dev/null 2>&1; then :
3538
3539
else
3540
  ac_cv_header_stdc=no
3541
fi
3542
rm -f conftest*
3543
3544
fi
3545
3546
if test $ac_cv_header_stdc = yes; then
3547
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549
/* end confdefs.h.  */
3550
#include <stdlib.h>
3551
3552
_ACEOF
3553
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554
  $EGREP "free" >/dev/null 2>&1; then :
3555
3556
else
3557
  ac_cv_header_stdc=no
3558
fi
3559
rm -f conftest*
3560
3561
fi
3562
3563
if test $ac_cv_header_stdc = yes; then
3564
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3565
  if test "$cross_compiling" = yes; then :
3566
  :
3567
else
3568
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569
/* end confdefs.h.  */
3570
#include <ctype.h>
3571
#include <stdlib.h>
3572
#if ((' ' & 0x0FF) == 0x020)
3573
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3574
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3575
#else
3576
# define ISLOWER(c) \
3577
		   (('a' <= (c) && (c) <= 'i') \
3578
		     || ('j' <= (c) && (c) <= 'r') \
3579
		     || ('s' <= (c) && (c) <= 'z'))
3580
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3581
#endif
3582
3583
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3584
int
3585
main ()
3586
{
3587
  int i;
3588
  for (i = 0; i < 256; i++)
3589
    if (XOR (islower (i), ISLOWER (i))
3590
	|| toupper (i) != TOUPPER (i))
3591
      return 2;
3592
  return 0;
3593
}
3594
_ACEOF
3595
if ac_fn_c_try_run "$LINENO"; then :
3596
3597
else
3598
  ac_cv_header_stdc=no
3599
fi
3600
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3601
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3602
fi
3603
3604
fi
3605
fi
3606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3607
$as_echo "$ac_cv_header_stdc" >&6; }
3608
if test $ac_cv_header_stdc = yes; then
3609
3610
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3611
3612
fi
3613
3614
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3615
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3616
		  inttypes.h stdint.h unistd.h
3617
do :
3618
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3619
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3620
"
3621
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3622
  cat >>confdefs.h <<_ACEOF
3623
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624
_ACEOF
3625
3626
fi
3627
3628
done
3629
3630
3631
for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h
3632
do :
3633
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3634
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3635
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3636
  cat >>confdefs.h <<_ACEOF
3637
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3638
_ACEOF
3639
3640
fi
3641
3642
done
3643
3644
3645
# Checks for typedefs, structures, and compiler characteristics.
3646
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3647
if test "x$ac_cv_type_pid_t" = xyes; then :
3648
3649
else
3650
3651
cat >>confdefs.h <<_ACEOF
3652
#define pid_t int
3653
_ACEOF
3654
3655
fi
3656
3657
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3658
if test "x$ac_cv_type_size_t" = xyes; then :
3659
3660
else
3661
3662
cat >>confdefs.h <<_ACEOF
3663
#define size_t unsigned int
3664
_ACEOF
3665
3666
fi
3667
3668
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
3669
if test "x$ac_cv_type_ssize_t" = xyes; then :
3670
3671
else
3672
3673
cat >>confdefs.h <<_ACEOF
3674
#define ssize_t int
3675
_ACEOF
3676
3677
fi
3678
3679
3680
# Checks for library functions.
3681
for ac_header in vfork.h
3682
do :
3683
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
3684
if test "x$ac_cv_header_vfork_h" = xyes; then :
3685
  cat >>confdefs.h <<_ACEOF
3686
#define HAVE_VFORK_H 1
3687
_ACEOF
3688
3689
fi
3690
3691
done
3692
3693
for ac_func in fork vfork
3694
do :
3695
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3696
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3697
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3698
  cat >>confdefs.h <<_ACEOF
3699
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3700
_ACEOF
3701
3702
fi
3703
done
3704
3705
if test "x$ac_cv_func_fork" = xyes; then
3706
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
3707
$as_echo_n "checking for working fork... " >&6; }
3708
if ${ac_cv_func_fork_works+:} false; then :
3709
  $as_echo_n "(cached) " >&6
3710
else
3711
  if test "$cross_compiling" = yes; then :
3712
  ac_cv_func_fork_works=cross
3713
else
3714
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715
/* end confdefs.h.  */
3716
$ac_includes_default
3717
int
3718
main ()
3719
{
3720
3721
	  /* By Ruediger Kuhlmann. */
3722
	  return fork () < 0;
3723
3724
  ;
3725
  return 0;
3726
}
3727
_ACEOF
3728
if ac_fn_c_try_run "$LINENO"; then :
3729
  ac_cv_func_fork_works=yes
3730
else
3731
  ac_cv_func_fork_works=no
3732
fi
3733
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3734
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3735
fi
3736
3737
fi
3738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
3739
$as_echo "$ac_cv_func_fork_works" >&6; }
3740
3741
else
3742
  ac_cv_func_fork_works=$ac_cv_func_fork
3743
fi
3744
if test "x$ac_cv_func_fork_works" = xcross; then
3745
  case $host in
3746
    *-*-amigaos* | *-*-msdosdjgpp*)
3747
      # Override, as these systems have only a dummy fork() stub
3748
      ac_cv_func_fork_works=no
3749
      ;;
3750
    *)
3751
      ac_cv_func_fork_works=yes
3752
      ;;
3753
  esac
3754
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
3755
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
3756
fi
3757
ac_cv_func_vfork_works=$ac_cv_func_vfork
3758
if test "x$ac_cv_func_vfork" = xyes; then
3759
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
3760
$as_echo_n "checking for working vfork... " >&6; }
3761
if ${ac_cv_func_vfork_works+:} false; then :
3762
  $as_echo_n "(cached) " >&6
3763
else
3764
  if test "$cross_compiling" = yes; then :
3765
  ac_cv_func_vfork_works=cross
3766
else
3767
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768
/* end confdefs.h.  */
3769
/* Thanks to Paul Eggert for this test.  */
3770
$ac_includes_default
3771
#include <sys/wait.h>
3772
#ifdef HAVE_VFORK_H
3773
# include <vfork.h>
3774
#endif
3775
/* On some sparc systems, changes by the child to local and incoming
3776
   argument registers are propagated back to the parent.  The compiler
3777
   is told about this with #include <vfork.h>, but some compilers
3778
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
3779
   static variable whose address is put into a register that is
3780
   clobbered by the vfork.  */
3781
static void
3782
#ifdef __cplusplus
3783
sparc_address_test (int arg)
3784
# else
3785
sparc_address_test (arg) int arg;
3786
#endif
3787
{
3788
  static pid_t child;
3789
  if (!child) {
3790
    child = vfork ();
3791
    if (child < 0) {
3792
      perror ("vfork");
3793
      _exit(2);
3794
    }
3795
    if (!child) {
3796
      arg = getpid();
3797
      write(-1, "", 0);
3798
      _exit (arg);
3799
    }
3800
  }
3801
}
3802
3803
int
3804
main ()
3805
{
3806
  pid_t parent = getpid ();
3807
  pid_t child;
3808
3809
  sparc_address_test (0);
3810
3811
  child = vfork ();
3812
3813
  if (child == 0) {
3814
    /* Here is another test for sparc vfork register problems.  This
3815
       test uses lots of local variables, at least as many local
3816
       variables as main has allocated so far including compiler
3817
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
3818
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
3819
       reuse the register of parent for one of the local variables,
3820
       since it will think that parent can't possibly be used any more
3821
       in this routine.  Assigning to the local variable will thus
3822
       munge parent in the parent process.  */
3823
    pid_t
3824
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3825
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3826
    /* Convince the compiler that p..p7 are live; otherwise, it might
3827
       use the same hardware register for all 8 local variables.  */
3828
    if (p != p1 || p != p2 || p != p3 || p != p4
3829
	|| p != p5 || p != p6 || p != p7)
3830
      _exit(1);
3831
3832
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
3833
       from child file descriptors.  If the child closes a descriptor
3834
       before it execs or exits, this munges the parent's descriptor
3835
       as well.  Test for this by closing stdout in the child.  */
3836
    _exit(close(fileno(stdout)) != 0);
3837
  } else {
3838
    int status;
3839
    struct stat st;
3840
3841
    while (wait(&status) != child)
3842
      ;
3843
    return (
3844
	 /* Was there some problem with vforking?  */
3845
	 child < 0
3846
3847
	 /* Did the child fail?  (This shouldn't happen.)  */
3848
	 || status
3849
3850
	 /* Did the vfork/compiler bug occur?  */
3851
	 || parent != getpid()
3852
3853
	 /* Did the file descriptor bug occur?  */
3854
	 || fstat(fileno(stdout), &st) != 0
3855
	 );
3856
  }
3857
}
3858
_ACEOF
3859
if ac_fn_c_try_run "$LINENO"; then :
3860
  ac_cv_func_vfork_works=yes
3861
else
3862
  ac_cv_func_vfork_works=no
3863
fi
3864
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3865
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3866
fi
3867
3868
fi
3869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
3870
$as_echo "$ac_cv_func_vfork_works" >&6; }
3871
3872
fi;
3873
if test "x$ac_cv_func_fork_works" = xcross; then
3874
  ac_cv_func_vfork_works=$ac_cv_func_vfork
3875
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
3876
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
3877
fi
3878
3879
if test "x$ac_cv_func_vfork_works" = xyes; then
3880
3881
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
3882
3883
else
3884
3885
$as_echo "#define vfork fork" >>confdefs.h
3886
3887
fi
3888
if test "x$ac_cv_func_fork_works" = xyes; then
3889
3890
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
3891
3892
fi
3893
3894
for ac_header in stdlib.h
3895
do :
3896
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3897
if test "x$ac_cv_header_stdlib_h" = xyes; then :
3898
  cat >>confdefs.h <<_ACEOF
3899
#define HAVE_STDLIB_H 1
3900
_ACEOF
3901
3902
fi
3903
3904
done
3905
3906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
3907
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
3908
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
3909
  $as_echo_n "(cached) " >&6
3910
else
3911
  if test "$cross_compiling" = yes; then :
3912
  ac_cv_func_malloc_0_nonnull=no
3913
else
3914
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915
/* end confdefs.h.  */
3916
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
3917
# include <stdlib.h>
3918
#else
3919
char *malloc ();
3920
#endif
3921
3922
int
3923
main ()
3924
{
3925
return ! malloc (0);
3926
  ;
3927
  return 0;
3928
}
3929
_ACEOF
3930
if ac_fn_c_try_run "$LINENO"; then :
3931
  ac_cv_func_malloc_0_nonnull=yes
3932
else
3933
  ac_cv_func_malloc_0_nonnull=no
3934
fi
3935
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3936
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3937
fi
3938
3939
fi
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
3941
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
3942
if test $ac_cv_func_malloc_0_nonnull = yes; then :
3943
3944
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
3945
3946
else
3947
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
3948
3949
   case " $LIBOBJS " in
3950
  *" malloc.$ac_objext "* ) ;;
3951
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3952
 ;;
3953
esac
3954
3955
3956
$as_echo "#define malloc rpl_malloc" >>confdefs.h
3957
3958
fi
3959
3960
3961
for ac_header in stdlib.h
3962
do :
3963
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3964
if test "x$ac_cv_header_stdlib_h" = xyes; then :
3965
  cat >>confdefs.h <<_ACEOF
3966
#define HAVE_STDLIB_H 1
3967
_ACEOF
3968
3969
fi
3970
3971
done
3972
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
3974
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
3975
if ${ac_cv_func_realloc_0_nonnull+:} false; then :
3976
  $as_echo_n "(cached) " >&6
3977
else
3978
  if test "$cross_compiling" = yes; then :
3979
  ac_cv_func_realloc_0_nonnull=no
3980
else
3981
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982
/* end confdefs.h.  */
3983
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
3984
# include <stdlib.h>
3985
#else
3986
char *realloc ();
3987
#endif
3988
3989
int
3990
main ()
3991
{
3992
return ! realloc (0, 0);
3993
  ;
3994
  return 0;
3995
}
3996
_ACEOF
3997
if ac_fn_c_try_run "$LINENO"; then :
3998
  ac_cv_func_realloc_0_nonnull=yes
3999
else
4000
  ac_cv_func_realloc_0_nonnull=no
4001
fi
4002
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4003
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4004
fi
4005
4006
fi
4007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4008
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4009
if test $ac_cv_func_realloc_0_nonnull = yes; then :
4010
4011
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4012
4013
else
4014
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4015
4016
   case " $LIBOBJS " in
4017
  *" realloc.$ac_objext "* ) ;;
4018
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4019
 ;;
4020
esac
4021
4022
4023
$as_echo "#define realloc rpl_realloc" >>confdefs.h
4024
4025
fi
4026
4027
4028
for ac_func in dup2 memset socket strchr strdup strerror
4029
do :
4030
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4031
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4032
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4033
  cat >>confdefs.h <<_ACEOF
4034
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4035
_ACEOF
4036
4037
fi
4038
done
4039
4040
4041
ac_config_files="$ac_config_files Makefile pwol.1 pwol.conf.5 pkgs/Makefile.port"
4042
4043
cat >confcache <<\_ACEOF
4044
# This file is a shell script that caches the results of configure
4045
# tests run on this system so they can be shared between configure
4046
# scripts and configure runs, see configure's option --config-cache.
4047
# It is not useful on other systems.  If it contains results you don't
4048
# want to keep, you may remove or edit it.
4049
#
4050
# config.status only pays attention to the cache file if you give it
4051
# the --recheck option to rerun configure.
4052
#
4053
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4054
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4055
# following values.
4056
4057
_ACEOF
4058
4059
# The following way of writing the cache mishandles newlines in values,
4060
# but we know of no workaround that is simple, portable, and efficient.
4061
# So, we kill variables containing newlines.
4062
# Ultrix sh set writes to stderr and can't be redirected directly,
4063
# and sets the high bit in the cache file unless we assign to the vars.
4064
(
4065
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4066
    eval ac_val=\$$ac_var
4067
    case $ac_val in #(
4068
    *${as_nl}*)
4069
      case $ac_var in #(
4070
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4071
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4072
      esac
4073
      case $ac_var in #(
4074
      _ | IFS | as_nl) ;; #(
4075
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4076
      *) { eval $ac_var=; unset $ac_var;} ;;
4077
      esac ;;
4078
    esac
4079
  done
4080
4081
  (set) 2>&1 |
4082
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4083
    *${as_nl}ac_space=\ *)
4084
      # `set' does not quote correctly, so add quotes: double-quote
4085
      # substitution turns \\\\ into \\, and sed turns \\ into \.
4086
      sed -n \
4087
	"s/'/'\\\\''/g;
4088
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4089
      ;; #(
4090
    *)
4091
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4092
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4093
      ;;
4094
    esac |
4095
    sort
4096
) |
4097
  sed '
4098
     /^ac_cv_env_/b end
4099
     t clear
4100
     :clear
4101
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4102
     t end
4103
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4104
     :end' >>confcache
4105
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4106
  if test -w "$cache_file"; then
4107
    if test "x$cache_file" != "x/dev/null"; then
4108
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4109
$as_echo "$as_me: updating cache $cache_file" >&6;}
4110
      if test ! -f "$cache_file" || test -h "$cache_file"; then
4111
	cat confcache >"$cache_file"
4112
      else
4113
        case $cache_file in #(
4114
        */* | ?:*)
4115
	  mv -f confcache "$cache_file"$$ &&
4116
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4117
        *)
4118
	  mv -f confcache "$cache_file" ;;
4119
	esac
4120
      fi
4121
    fi
4122
  else
4123
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4124
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4125
  fi
4126
fi
4127
rm -f confcache
4128
4129
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4130
# Let make expand exec_prefix.
4131
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4132
4133
DEFS=-DHAVE_CONFIG_H
4134
4135
ac_libobjs=
4136
ac_ltlibobjs=
4137
U=
4138
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4139
  # 1. Remove the extension, and $U if already installed.
4140
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4141
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4142
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4143
  #    will be set to the directory where LIBOBJS objects are built.
4144
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4145
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4146
done
4147
LIBOBJS=$ac_libobjs
4148
4149
LTLIBOBJS=$ac_ltlibobjs
4150
4151
4152
4153
: "${CONFIG_STATUS=./config.status}"
4154
ac_write_fail=0
4155
ac_clean_files_save=$ac_clean_files
4156
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4158
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4159
as_write_fail=0
4160
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4161
#! $SHELL
4162
# Generated by $as_me.
4163
# Run this file to recreate the current configuration.
4164
# Compiler output produced by configure, useful for debugging
4165
# configure, is in config.log if it exists.
4166
4167
debug=false
4168
ac_cs_recheck=false
4169
ac_cs_silent=false
4170
4171
SHELL=\${CONFIG_SHELL-$SHELL}
4172
export SHELL
4173
_ASEOF
4174
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4175
## -------------------- ##
4176
## M4sh Initialization. ##
4177
## -------------------- ##
4178
4179
# Be more Bourne compatible
4180
DUALCASE=1; export DUALCASE # for MKS sh
4181
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4182
  emulate sh
4183
  NULLCMD=:
4184
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4185
  # is contrary to our usage.  Disable this feature.
4186
  alias -g '${1+"$@"}'='"$@"'
4187
  setopt NO_GLOB_SUBST
4188
else
4189
  case `(set -o) 2>/dev/null` in #(
4190
  *posix*) :
4191
    set -o posix ;; #(
4192
  *) :
4193
     ;;
4194
esac
4195
fi
4196
4197
4198
as_nl='
4199
'
4200
export as_nl
4201
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4202
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4203
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4204
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4205
# Prefer a ksh shell builtin over an external printf program on Solaris,
4206
# but without wasting forks for bash or zsh.
4207
if test -z "$BASH_VERSION$ZSH_VERSION" \
4208
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4209
  as_echo='print -r --'
4210
  as_echo_n='print -rn --'
4211
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4212
  as_echo='printf %s\n'
4213
  as_echo_n='printf %s'
4214
else
4215
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4216
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4217
    as_echo_n='/usr/ucb/echo -n'
4218
  else
4219
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4220
    as_echo_n_body='eval
4221
      arg=$1;
4222
      case $arg in #(
4223
      *"$as_nl"*)
4224
	expr "X$arg" : "X\\(.*\\)$as_nl";
4225
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4226
      esac;
4227
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4228
    '
4229
    export as_echo_n_body
4230
    as_echo_n='sh -c $as_echo_n_body as_echo'
4231
  fi
4232
  export as_echo_body
4233
  as_echo='sh -c $as_echo_body as_echo'
4234
fi
4235
4236
# The user is always right.
4237
if test "${PATH_SEPARATOR+set}" != set; then
4238
  PATH_SEPARATOR=:
4239
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4240
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4241
      PATH_SEPARATOR=';'
4242
  }
4243
fi
4244
4245
4246
# IFS
4247
# We need space, tab and new line, in precisely that order.  Quoting is
4248
# there to prevent editors from complaining about space-tab.
4249
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4250
# splitting by setting IFS to empty value.)
4251
IFS=" ""	$as_nl"
4252
4253
# Find who we are.  Look in the path if we contain no directory separator.
4254
as_myself=
4255
case $0 in #((
4256
  *[\\/]* ) as_myself=$0 ;;
4257
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258
for as_dir in $PATH
4259
do
4260
  IFS=$as_save_IFS
4261
  test -z "$as_dir" && as_dir=.
4262
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4263
  done
4264
IFS=$as_save_IFS
4265
4266
     ;;
4267
esac
4268
# We did not find ourselves, most probably we were run as `sh COMMAND'
4269
# in which case we are not to be found in the path.
4270
if test "x$as_myself" = x; then
4271
  as_myself=$0
4272
fi
4273
if test ! -f "$as_myself"; then
4274
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4275
  exit 1
4276
fi
4277
4278
# Unset variables that we do not need and which cause bugs (e.g. in
4279
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4280
# suppresses any "Segmentation fault" message there.  '((' could
4281
# trigger a bug in pdksh 5.2.14.
4282
for as_var in BASH_ENV ENV MAIL MAILPATH
4283
do eval test x\${$as_var+set} = xset \
4284
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4285
done
4286
PS1='$ '
4287
PS2='> '
4288
PS4='+ '
4289
4290
# NLS nuisances.
4291
LC_ALL=C
4292
export LC_ALL
4293
LANGUAGE=C
4294
export LANGUAGE
4295
4296
# CDPATH.
4297
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4298
4299
4300
# as_fn_error STATUS ERROR [LINENO LOG_FD]
4301
# ----------------------------------------
4302
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4303
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4304
# script with STATUS, using 1 if that was 0.
4305
as_fn_error ()
4306
{
4307
  as_status=$1; test $as_status -eq 0 && as_status=1
4308
  if test "$4"; then
4309
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4310
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4311
  fi
4312
  $as_echo "$as_me: error: $2" >&2
4313
  as_fn_exit $as_status
4314
} # as_fn_error
4315
4316
4317
# as_fn_set_status STATUS
4318
# -----------------------
4319
# Set $? to STATUS, without forking.
4320
as_fn_set_status ()
4321
{
4322
  return $1
4323
} # as_fn_set_status
4324
4325
# as_fn_exit STATUS
4326
# -----------------
4327
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4328
as_fn_exit ()
4329
{
4330
  set +e
4331
  as_fn_set_status $1
4332
  exit $1
4333
} # as_fn_exit
4334
4335
# as_fn_unset VAR
4336
# ---------------
4337
# Portably unset VAR.
4338
as_fn_unset ()
4339
{
4340
  { eval $1=; unset $1;}
4341
}
4342
as_unset=as_fn_unset
4343
# as_fn_append VAR VALUE
4344
# ----------------------
4345
# Append the text in VALUE to the end of the definition contained in VAR. Take
4346
# advantage of any shell optimizations that allow amortized linear growth over
4347
# repeated appends, instead of the typical quadratic growth present in naive
4348
# implementations.
4349
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4350
  eval 'as_fn_append ()
4351
  {
4352
    eval $1+=\$2
4353
  }'
4354
else
4355
  as_fn_append ()
4356
  {
4357
    eval $1=\$$1\$2
4358
  }
4359
fi # as_fn_append
4360
4361
# as_fn_arith ARG...
4362
# ------------------
4363
# Perform arithmetic evaluation on the ARGs, and store the result in the
4364
# global $as_val. Take advantage of shells that can avoid forks. The arguments
4365
# must be portable across $(()) and expr.
4366
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4367
  eval 'as_fn_arith ()
4368
  {
4369
    as_val=$(( $* ))
4370
  }'
4371
else
4372
  as_fn_arith ()
4373
  {
4374
    as_val=`expr "$@" || test $? -eq 1`
4375
  }
4376
fi # as_fn_arith
4377
4378
4379
if expr a : '\(a\)' >/dev/null 2>&1 &&
4380
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4381
  as_expr=expr
4382
else
4383
  as_expr=false
4384
fi
4385
4386
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4387
  as_basename=basename
4388
else
4389
  as_basename=false
4390
fi
4391
4392
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4393
  as_dirname=dirname
4394
else
4395
  as_dirname=false
4396
fi
4397
4398
as_me=`$as_basename -- "$0" ||
4399
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4400
	 X"$0" : 'X\(//\)$' \| \
4401
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4402
$as_echo X/"$0" |
4403
    sed '/^.*\/\([^/][^/]*\)\/*$/{
4404
	    s//\1/
4405
	    q
4406
	  }
4407
	  /^X\/\(\/\/\)$/{
4408
	    s//\1/
4409
	    q
4410
	  }
4411
	  /^X\/\(\/\).*/{
4412
	    s//\1/
4413
	    q
4414
	  }
4415
	  s/.*/./; q'`
4416
4417
# Avoid depending upon Character Ranges.
4418
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4419
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4420
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4421
as_cr_digits='0123456789'
4422
as_cr_alnum=$as_cr_Letters$as_cr_digits
4423
4424
ECHO_C= ECHO_N= ECHO_T=
4425
case `echo -n x` in #(((((
4426
-n*)
4427
  case `echo 'xy\c'` in
4428
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4429
  xy)  ECHO_C='\c';;
4430
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4431
       ECHO_T='	';;
4432
  esac;;
4433
*)
4434
  ECHO_N='-n';;
4435
esac
4436
4437
rm -f conf$$ conf$$.exe conf$$.file
4438
if test -d conf$$.dir; then
4439
  rm -f conf$$.dir/conf$$.file
4440
else
4441
  rm -f conf$$.dir
4442
  mkdir conf$$.dir 2>/dev/null
4443
fi
4444
if (echo >conf$$.file) 2>/dev/null; then
4445
  if ln -s conf$$.file conf$$ 2>/dev/null; then
4446
    as_ln_s='ln -s'
4447
    # ... but there are two gotchas:
4448
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4449
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4450
    # In both cases, we have to default to `cp -pR'.
4451
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4452
      as_ln_s='cp -pR'
4453
  elif ln conf$$.file conf$$ 2>/dev/null; then
4454
    as_ln_s=ln
4455
  else
4456
    as_ln_s='cp -pR'
4457
  fi
4458
else
4459
  as_ln_s='cp -pR'
4460
fi
4461
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4462
rmdir conf$$.dir 2>/dev/null
4463
4464
4465
# as_fn_mkdir_p
4466
# -------------
4467
# Create "$as_dir" as a directory, including parents if necessary.
4468
as_fn_mkdir_p ()
4469
{
4470
4471
  case $as_dir in #(
4472
  -*) as_dir=./$as_dir;;
4473
  esac
4474
  test -d "$as_dir" || eval $as_mkdir_p || {
4475
    as_dirs=
4476
    while :; do
4477
      case $as_dir in #(
4478
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4479
      *) as_qdir=$as_dir;;
4480
      esac
4481
      as_dirs="'$as_qdir' $as_dirs"
4482
      as_dir=`$as_dirname -- "$as_dir" ||
4483
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4484
	 X"$as_dir" : 'X\(//\)[^/]' \| \
4485
	 X"$as_dir" : 'X\(//\)$' \| \
4486
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4487
$as_echo X"$as_dir" |
4488
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4489
	    s//\1/
4490
	    q
4491
	  }
4492
	  /^X\(\/\/\)[^/].*/{
4493
	    s//\1/
4494
	    q
4495
	  }
4496
	  /^X\(\/\/\)$/{
4497
	    s//\1/
4498
	    q
4499
	  }
4500
	  /^X\(\/\).*/{
4501
	    s//\1/
4502
	    q
4503
	  }
4504
	  s/.*/./; q'`
4505
      test -d "$as_dir" && break
4506
    done
4507
    test -z "$as_dirs" || eval "mkdir $as_dirs"
4508
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4509
4510
4511
} # as_fn_mkdir_p
4512
if mkdir -p . 2>/dev/null; then
4513
  as_mkdir_p='mkdir -p "$as_dir"'
4514
else
4515
  test -d ./-p && rmdir ./-p
4516
  as_mkdir_p=false
4517
fi
4518
4519
4520
# as_fn_executable_p FILE
4521
# -----------------------
4522
# Test if FILE is an executable regular file.
4523
as_fn_executable_p ()
4524
{
4525
  test -f "$1" && test -x "$1"
4526
} # as_fn_executable_p
4527
as_test_x='test -x'
4528
as_executable_p=as_fn_executable_p
4529
4530
# Sed expression to map a string onto a valid CPP name.
4531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4532
4533
# Sed expression to map a string onto a valid variable name.
4534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4535
4536
4537
exec 6>&1
4538
## ----------------------------------- ##
4539
## Main body of $CONFIG_STATUS script. ##
4540
## ----------------------------------- ##
4541
_ASEOF
4542
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4543
4544
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4545
# Save the log message, to keep $0 and so on meaningful, and to
4546
# report actual input values of CONFIG_FILES etc. instead of their
4547
# values after options handling.
4548
ac_log="
4549
This file was extended by pwol $as_me 1.5, which was
4550
generated by GNU Autoconf 2.69.  Invocation command line was
4551
4552
  CONFIG_FILES    = $CONFIG_FILES
4553
  CONFIG_HEADERS  = $CONFIG_HEADERS
4554
  CONFIG_LINKS    = $CONFIG_LINKS
4555
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4556
  $ $0 $@
4557
4558
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4559
"
4560
4561
_ACEOF
4562
4563
case $ac_config_files in *"
4564
"*) set x $ac_config_files; shift; ac_config_files=$*;;
4565
esac
4566
4567
case $ac_config_headers in *"
4568
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4569
esac
4570
4571
4572
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4573
# Files that config.status was made for.
4574
config_files="$ac_config_files"
4575
config_headers="$ac_config_headers"
4576
4577
_ACEOF
4578
4579
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4580
ac_cs_usage="\
4581
\`$as_me' instantiates files and other configuration actions
4582
from templates according to the current configuration.  Unless the files
4583
and actions are specified as TAGs, all are instantiated by default.
4584
4585
Usage: $0 [OPTION]... [TAG]...
4586
4587
  -h, --help       print this help, then exit
4588
  -V, --version    print version number and configuration settings, then exit
4589
      --config     print configuration, then exit
4590
  -q, --quiet, --silent
4591
                   do not print progress messages
4592
  -d, --debug      don't remove temporary files
4593
      --recheck    update $as_me by reconfiguring in the same conditions
4594
      --file=FILE[:TEMPLATE]
4595
                   instantiate the configuration file FILE
4596
      --header=FILE[:TEMPLATE]
4597
                   instantiate the configuration header FILE
4598
4599
Configuration files:
4600
$config_files
4601
4602
Configuration headers:
4603
$config_headers
4604
4605
Report bugs to <pen@lysator.liu.se>.
4606
pwol home page: <https://github.com/ptrrkssn/pwol>."
4607
4608
_ACEOF
4609
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4610
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4611
ac_cs_version="\\
4612
pwol config.status 1.5
4613
configured by $0, generated by GNU Autoconf 2.69,
4614
  with options \\"\$ac_cs_config\\"
4615
4616
Copyright (C) 2012 Free Software Foundation, Inc.
4617
This config.status script is free software; the Free Software Foundation
4618
gives unlimited permission to copy, distribute and modify it."
4619
4620
ac_pwd='$ac_pwd'
4621
srcdir='$srcdir'
4622
INSTALL='$INSTALL'
4623
test -n "\$AWK" || AWK=awk
4624
_ACEOF
4625
4626
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4627
# The default lists apply if the user does not specify any file.
4628
ac_need_defaults=:
4629
while test $# != 0
4630
do
4631
  case $1 in
4632
  --*=?*)
4633
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4634
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4635
    ac_shift=:
4636
    ;;
4637
  --*=)
4638
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4639
    ac_optarg=
4640
    ac_shift=:
4641
    ;;
4642
  *)
4643
    ac_option=$1
4644
    ac_optarg=$2
4645
    ac_shift=shift
4646
    ;;
4647
  esac
4648
4649
  case $ac_option in
4650
  # Handling of the options.
4651
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4652
    ac_cs_recheck=: ;;
4653
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4654
    $as_echo "$ac_cs_version"; exit ;;
4655
  --config | --confi | --conf | --con | --co | --c )
4656
    $as_echo "$ac_cs_config"; exit ;;
4657
  --debug | --debu | --deb | --de | --d | -d )
4658
    debug=: ;;
4659
  --file | --fil | --fi | --f )
4660
    $ac_shift
4661
    case $ac_optarg in
4662
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4663
    '') as_fn_error $? "missing file argument" ;;
4664
    esac
4665
    as_fn_append CONFIG_FILES " '$ac_optarg'"
4666
    ac_need_defaults=false;;
4667
  --header | --heade | --head | --hea )
4668
    $ac_shift
4669
    case $ac_optarg in
4670
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4671
    esac
4672
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4673
    ac_need_defaults=false;;
4674
  --he | --h)
4675
    # Conflict between --help and --header
4676
    as_fn_error $? "ambiguous option: \`$1'
4677
Try \`$0 --help' for more information.";;
4678
  --help | --hel | -h )
4679
    $as_echo "$ac_cs_usage"; exit ;;
4680
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4681
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4682
    ac_cs_silent=: ;;
4683
4684
  # This is an error.
4685
  -*) as_fn_error $? "unrecognized option: \`$1'
4686
Try \`$0 --help' for more information." ;;
4687
4688
  *) as_fn_append ac_config_targets " $1"
4689
     ac_need_defaults=false ;;
4690
4691
  esac
4692
  shift
4693
done
4694
4695
ac_configure_extra_args=
4696
4697
if $ac_cs_silent; then
4698
  exec 6>/dev/null
4699
  ac_configure_extra_args="$ac_configure_extra_args --silent"
4700
fi
4701
4702
_ACEOF
4703
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4704
if \$ac_cs_recheck; then
4705
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4706
  shift
4707
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4708
  CONFIG_SHELL='$SHELL'
4709
  export CONFIG_SHELL
4710
  exec "\$@"
4711
fi
4712
4713
_ACEOF
4714
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4715
exec 5>>config.log
4716
{
4717
  echo
4718
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4719
## Running $as_me. ##
4720
_ASBOX
4721
  $as_echo "$ac_log"
4722
} >&5
4723
4724
_ACEOF
4725
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4726
_ACEOF
4727
4728
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4729
4730
# Handling of arguments.
4731
for ac_config_target in $ac_config_targets
4732
do
4733
  case $ac_config_target in
4734
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4735
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4736
    "pwol.1") CONFIG_FILES="$CONFIG_FILES pwol.1" ;;
4737
    "pwol.conf.5") CONFIG_FILES="$CONFIG_FILES pwol.conf.5" ;;
4738
    "pkgs/Makefile.port") CONFIG_FILES="$CONFIG_FILES pkgs/Makefile.port" ;;
4739
4740
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4741
  esac
4742
done
4743
4744
4745
# If the user did not use the arguments to specify the items to instantiate,
4746
# then the envvar interface is used.  Set only those that are not.
4747
# We use the long form for the default assignment because of an extremely
4748
# bizarre bug on SunOS 4.1.3.
4749
if $ac_need_defaults; then
4750
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4751
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4752
fi
4753
4754
# Have a temporary directory for convenience.  Make it in the build tree
4755
# simply because there is no reason against having it here, and in addition,
4756
# creating and moving files from /tmp can sometimes cause problems.
4757
# Hook for its removal unless debugging.
4758
# Note that there is a small window in which the directory will not be cleaned:
4759
# after its creation but before its name has been assigned to `$tmp'.
4760
$debug ||
4761
{
4762
  tmp= ac_tmp=
4763
  trap 'exit_status=$?
4764
  : "${ac_tmp:=$tmp}"
4765
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4766
' 0
4767
  trap 'as_fn_exit 1' 1 2 13 15
4768
}
4769
# Create a (secure) tmp directory for tmp files.
4770
4771
{
4772
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4773
  test -d "$tmp"
4774
}  ||
4775
{
4776
  tmp=./conf$$-$RANDOM
4777
  (umask 077 && mkdir "$tmp")
4778
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4779
ac_tmp=$tmp
4780
4781
# Set up the scripts for CONFIG_FILES section.
4782
# No need to generate them if there are no CONFIG_FILES.
4783
# This happens for instance with `./config.status config.h'.
4784
if test -n "$CONFIG_FILES"; then
4785
4786
4787
ac_cr=`echo X | tr X '\015'`
4788
# On cygwin, bash can eat \r inside `` if the user requested igncr.
4789
# But we know of no other shell where ac_cr would be empty at this
4790
# point, so we can use a bashism as a fallback.
4791
if test "x$ac_cr" = x; then
4792
  eval ac_cr=\$\'\\r\'
4793
fi
4794
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4795
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4796
  ac_cs_awk_cr='\\r'
4797
else
4798
  ac_cs_awk_cr=$ac_cr
4799
fi
4800
4801
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4802
_ACEOF
4803
4804
4805
{
4806
  echo "cat >conf$$subs.awk <<_ACEOF" &&
4807
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4808
  echo "_ACEOF"
4809
} >conf$$subs.sh ||
4810
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4811
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4812
ac_delim='%!_!# '
4813
for ac_last_try in false false false false false :; do
4814
  . ./conf$$subs.sh ||
4815
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4816
4817
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4818
  if test $ac_delim_n = $ac_delim_num; then
4819
    break
4820
  elif $ac_last_try; then
4821
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4822
  else
4823
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4824
  fi
4825
done
4826
rm -f conf$$subs.sh
4827
4828
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4829
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4830
_ACEOF
4831
sed -n '
4832
h
4833
s/^/S["/; s/!.*/"]=/
4834
p
4835
g
4836
s/^[^!]*!//
4837
:repl
4838
t repl
4839
s/'"$ac_delim"'$//
4840
t delim
4841
:nl
4842
h
4843
s/\(.\{148\}\)..*/\1/
4844
t more1
4845
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4846
p
4847
n
4848
b repl
4849
:more1
4850
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4851
p
4852
g
4853
s/.\{148\}//
4854
t nl
4855
:delim
4856
h
4857
s/\(.\{148\}\)..*/\1/
4858
t more2
4859
s/["\\]/\\&/g; s/^/"/; s/$/"/
4860
p
4861
b
4862
:more2
4863
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4864
p
4865
g
4866
s/.\{148\}//
4867
t delim
4868
' <conf$$subs.awk | sed '
4869
/^[^""]/{
4870
  N
4871
  s/\n//
4872
}
4873
' >>$CONFIG_STATUS || ac_write_fail=1
4874
rm -f conf$$subs.awk
4875
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4876
_ACAWK
4877
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4878
  for (key in S) S_is_set[key] = 1
4879
  FS = ""
4880
4881
}
4882
{
4883
  line = $ 0
4884
  nfields = split(line, field, "@")
4885
  substed = 0
4886
  len = length(field[1])
4887
  for (i = 2; i < nfields; i++) {
4888
    key = field[i]
4889
    keylen = length(key)
4890
    if (S_is_set[key]) {
4891
      value = S[key]
4892
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4893
      len += length(value) + length(field[++i])
4894
      substed = 1
4895
    } else
4896
      len += 1 + keylen
4897
  }
4898
4899
  print line
4900
}
4901
4902
_ACAWK
4903
_ACEOF
4904
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4905
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4906
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4907
else
4908
  cat
4909
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4910
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4911
_ACEOF
4912
4913
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4914
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4915
# trailing colons and then remove the whole line if VPATH becomes empty
4916
# (actually we leave an empty line to preserve line numbers).
4917
if test "x$srcdir" = x.; then
4918
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4919
h
4920
s///
4921
s/^/:/
4922
s/[	 ]*$/:/
4923
s/:\$(srcdir):/:/g
4924
s/:\${srcdir}:/:/g
4925
s/:@srcdir@:/:/g
4926
s/^:*//
4927
s/:*$//
4928
x
4929
s/\(=[	 ]*\).*/\1/
4930
G
4931
s/\n//
4932
s/^[^=]*=[	 ]*$//
4933
}'
4934
fi
4935
4936
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4937
fi # test -n "$CONFIG_FILES"
4938
4939
# Set up the scripts for CONFIG_HEADERS section.
4940
# No need to generate them if there are no CONFIG_HEADERS.
4941
# This happens for instance with `./config.status Makefile'.
4942
if test -n "$CONFIG_HEADERS"; then
4943
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4944
BEGIN {
4945
_ACEOF
4946
4947
# Transform confdefs.h into an awk script `defines.awk', embedded as
4948
# here-document in config.status, that substitutes the proper values into
4949
# config.h.in to produce config.h.
4950
4951
# Create a delimiter string that does not exist in confdefs.h, to ease
4952
# handling of long lines.
4953
ac_delim='%!_!# '
4954
for ac_last_try in false false :; do
4955
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4956
  if test -z "$ac_tt"; then
4957
    break
4958
  elif $ac_last_try; then
4959
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4960
  else
4961
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4962
  fi
4963
done
4964
4965
# For the awk script, D is an array of macro values keyed by name,
4966
# likewise P contains macro parameters if any.  Preserve backslash
4967
# newline sequences.
4968
4969
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4970
sed -n '
4971
s/.\{148\}/&'"$ac_delim"'/g
4972
t rset
4973
:rset
4974
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
4975
t def
4976
d
4977
:def
4978
s/\\$//
4979
t bsnl
4980
s/["\\]/\\&/g
4981
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4982
D["\1"]=" \3"/p
4983
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
4984
d
4985
:bsnl
4986
s/["\\]/\\&/g
4987
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4988
D["\1"]=" \3\\\\\\n"\\/p
4989
t cont
4990
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4991
t cont
4992
d
4993
:cont
4994
n
4995
s/.\{148\}/&'"$ac_delim"'/g
4996
t clear
4997
:clear
4998
s/\\$//
4999
t bsnlc
5000
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5001
d
5002
:bsnlc
5003
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5004
b cont
5005
' <confdefs.h | sed '
5006
s/'"$ac_delim"'/"\\\
5007
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5008
5009
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5010
  for (key in D) D_is_set[key] = 1
5011
  FS = ""
5012
}
5013
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5014
  line = \$ 0
5015
  split(line, arg, " ")
5016
  if (arg[1] == "#") {
5017
    defundef = arg[2]
5018
    mac1 = arg[3]
5019
  } else {
5020
    defundef = substr(arg[1], 2)
5021
    mac1 = arg[2]
5022
  }
5023
  split(mac1, mac2, "(") #)
5024
  macro = mac2[1]
5025
  prefix = substr(line, 1, index(line, defundef) - 1)
5026
  if (D_is_set[macro]) {
5027
    # Preserve the white space surrounding the "#".
5028
    print prefix "define", macro P[macro] D[macro]
5029
    next
5030
  } else {
5031
    # Replace #undef with comments.  This is necessary, for example,
5032
    # in the case of _POSIX_SOURCE, which is predefined and required
5033
    # on some systems where configure will not decide to define it.
5034
    if (defundef == "undef") {
5035
      print "/*", prefix defundef, macro, "*/"
5036
      next
5037
    }
5038
  }
5039
}
5040
{ print }
5041
_ACAWK
5042
_ACEOF
5043
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5044
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5045
fi # test -n "$CONFIG_HEADERS"
5046
5047
5048
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5049
shift
5050
for ac_tag
5051
do
5052
  case $ac_tag in
5053
  :[FHLC]) ac_mode=$ac_tag; continue;;
5054
  esac
5055
  case $ac_mode$ac_tag in
5056
  :[FHL]*:*);;
5057
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5058
  :[FH]-) ac_tag=-:-;;
5059
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5060
  esac
5061
  ac_save_IFS=$IFS
5062
  IFS=:
5063
  set x $ac_tag
5064
  IFS=$ac_save_IFS
5065
  shift
5066
  ac_file=$1
5067
  shift
5068
5069
  case $ac_mode in
5070
  :L) ac_source=$1;;
5071
  :[FH])
5072
    ac_file_inputs=
5073
    for ac_f
5074
    do
5075
      case $ac_f in
5076
      -) ac_f="$ac_tmp/stdin";;
5077
      *) # Look for the file first in the build tree, then in the source tree
5078
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5079
	 # because $ac_f cannot contain `:'.
5080
	 test -f "$ac_f" ||
5081
	   case $ac_f in
5082
	   [\\/$]*) false;;
5083
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5084
	   esac ||
5085
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5086
      esac
5087
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5088
      as_fn_append ac_file_inputs " '$ac_f'"
5089
    done
5090
5091
    # Let's still pretend it is `configure' which instantiates (i.e., don't
5092
    # use $as_me), people would be surprised to read:
5093
    #    /* config.h.  Generated by config.status.  */
5094
    configure_input='Generated from '`
5095
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5096
	`' by configure.'
5097
    if test x"$ac_file" != x-; then
5098
      configure_input="$ac_file.  $configure_input"
5099
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5100
$as_echo "$as_me: creating $ac_file" >&6;}
5101
    fi
5102
    # Neutralize special characters interpreted by sed in replacement strings.
5103
    case $configure_input in #(
5104
    *\&* | *\|* | *\\* )
5105
       ac_sed_conf_input=`$as_echo "$configure_input" |
5106
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5107
    *) ac_sed_conf_input=$configure_input;;
5108
    esac
5109
5110
    case $ac_tag in
5111
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5112
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5113
    esac
5114
    ;;
5115
  esac
5116
5117
  ac_dir=`$as_dirname -- "$ac_file" ||
5118
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5119
	 X"$ac_file" : 'X\(//\)[^/]' \| \
5120
	 X"$ac_file" : 'X\(//\)$' \| \
5121
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5122
$as_echo X"$ac_file" |
5123
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5124
	    s//\1/
5125
	    q
5126
	  }
5127
	  /^X\(\/\/\)[^/].*/{
5128
	    s//\1/
5129
	    q
5130
	  }
5131
	  /^X\(\/\/\)$/{
5132
	    s//\1/
5133
	    q
5134
	  }
5135
	  /^X\(\/\).*/{
5136
	    s//\1/
5137
	    q
5138
	  }
5139
	  s/.*/./; q'`
5140
  as_dir="$ac_dir"; as_fn_mkdir_p
5141
  ac_builddir=.
5142
5143
case "$ac_dir" in
5144
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5145
*)
5146
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5147
  # A ".." for each directory in $ac_dir_suffix.
5148
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5149
  case $ac_top_builddir_sub in
5150
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5151
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5152
  esac ;;
5153
esac
5154
ac_abs_top_builddir=$ac_pwd
5155
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5156
# for backward compatibility:
5157
ac_top_builddir=$ac_top_build_prefix
5158
5159
case $srcdir in
5160
  .)  # We are building in place.
5161
    ac_srcdir=.
5162
    ac_top_srcdir=$ac_top_builddir_sub
5163
    ac_abs_top_srcdir=$ac_pwd ;;
5164
  [\\/]* | ?:[\\/]* )  # Absolute name.
5165
    ac_srcdir=$srcdir$ac_dir_suffix;
5166
    ac_top_srcdir=$srcdir
5167
    ac_abs_top_srcdir=$srcdir ;;
5168
  *) # Relative name.
5169
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5170
    ac_top_srcdir=$ac_top_build_prefix$srcdir
5171
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5172
esac
5173
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5174
5175
5176
  case $ac_mode in
5177
  :F)
5178
  #
5179
  # CONFIG_FILE
5180
  #
5181
5182
  case $INSTALL in
5183
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5184
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5185
  esac
5186
_ACEOF
5187
5188
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5189
# If the template does not know about datarootdir, expand it.
5190
# FIXME: This hack should be removed a few years after 2.60.
5191
ac_datarootdir_hack=; ac_datarootdir_seen=
5192
ac_sed_dataroot='
5193
/datarootdir/ {
5194
  p
5195
  q
5196
}
5197
/@datadir@/p
5198
/@docdir@/p
5199
/@infodir@/p
5200
/@localedir@/p
5201
/@mandir@/p'
5202
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5203
*datarootdir*) ac_datarootdir_seen=yes;;
5204
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5205
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5206
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5207
_ACEOF
5208
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5209
  ac_datarootdir_hack='
5210
  s&@datadir@&$datadir&g
5211
  s&@docdir@&$docdir&g
5212
  s&@infodir@&$infodir&g
5213
  s&@localedir@&$localedir&g
5214
  s&@mandir@&$mandir&g
5215
  s&\\\${datarootdir}&$datarootdir&g' ;;
5216
esac
5217
_ACEOF
5218
5219
# Neutralize VPATH when `$srcdir' = `.'.
5220
# Shell code in configure.ac might set extrasub.
5221
# FIXME: do we really want to maintain this feature?
5222
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5223
ac_sed_extra="$ac_vpsub
5224
$extrasub
5225
_ACEOF
5226
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5227
:t
5228
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5229
s|@configure_input@|$ac_sed_conf_input|;t t
5230
s&@top_builddir@&$ac_top_builddir_sub&;t t
5231
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5232
s&@srcdir@&$ac_srcdir&;t t
5233
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5234
s&@top_srcdir@&$ac_top_srcdir&;t t
5235
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5236
s&@builddir@&$ac_builddir&;t t
5237
s&@abs_builddir@&$ac_abs_builddir&;t t
5238
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5239
s&@INSTALL@&$ac_INSTALL&;t t
5240
$ac_datarootdir_hack
5241
"
5242
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5243
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5244
5245
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5246
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5247
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5248
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5249
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5250
which seems to be undefined.  Please make sure it is defined" >&5
5251
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5252
which seems to be undefined.  Please make sure it is defined" >&2;}
5253
5254
  rm -f "$ac_tmp/stdin"
5255
  case $ac_file in
5256
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5257
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5258
  esac \
5259
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5260
 ;;
5261
  :H)
5262
  #
5263
  # CONFIG_HEADER
5264
  #
5265
  if test x"$ac_file" != x-; then
5266
    {
5267
      $as_echo "/* $configure_input  */" \
5268
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5269
    } >"$ac_tmp/config.h" \
5270
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5271
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5272
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5273
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5274
    else
5275
      rm -f "$ac_file"
5276
      mv "$ac_tmp/config.h" "$ac_file" \
5277
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5278
    fi
5279
  else
5280
    $as_echo "/* $configure_input  */" \
5281
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5282
      || as_fn_error $? "could not create -" "$LINENO" 5
5283
  fi
5284
 ;;
5285
5286
5287
  esac
5288
5289
done # for ac_tag
5290
5291
5292
as_fn_exit 0
5293
_ACEOF
5294
ac_clean_files=$ac_clean_files_save
5295
5296
test $ac_write_fail = 0 ||
5297
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5298
5299
5300
# configure is writing to config.log, and then calls config.status.
5301
# config.status does its own redirection, appending to config.log.
5302
# Unfortunately, on DOS this fails, as config.log is still kept open
5303
# by configure, so config.status won't be able to write to it; its
5304
# output is simply discarded.  So we exec the FD to /dev/null,
5305
# effectively closing config.log, so it can be properly (re)opened and
5306
# appended to by config.status.  When coming back to configure, we
5307
# need to make the FD available again.
5308
if test "$no_create" != yes; then
5309
  ac_cs_success=:
5310
  ac_config_status_args=
5311
  test "$silent" = yes &&
5312
    ac_config_status_args="$ac_config_status_args --quiet"
5313
  exec 5>/dev/null
5314
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5315
  exec 5>>config.log
5316
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5317
  # would make configure fail if this is the last instruction.
5318
  $ac_cs_success || as_fn_exit 1
5319
fi
5320
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5321
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5322
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5323
fi
5324
(-)sysutils/pwol/work/pwol-1.5/configure.ac (+37 lines)
Line 0 Link Here
1
#                                               -*- Autoconf -*-
2
# Process this file with autoconf to produce a configure script.
3
4
AC_PREREQ([2.69])
5
AC_INIT([pwol], [1.5], [pen@lysator.liu.se], [pwol], [https://github.com/ptrrkssn/pwol])
6
7
AC_CONFIG_SRCDIR([pwol.c])
8
AC_CONFIG_HEADERS([config.h])
9
10
AC_CONFIG_AUX_DIR([aux])
11
12
# Checks for programs.
13
AC_PROG_CC
14
AC_PROG_INSTALL
15
AC_PROG_MAKE_SET
16
17
# Checks for libraries.
18
AC_CHECK_LIB([pthread], [pthread_create])
19
AC_CHECK_LIB([socket], [connect])
20
AC_CHECK_LIB([nsl], [gethostbyname])
21
22
# Checks for header files.
23
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h])
24
25
# Checks for typedefs, structures, and compiler characteristics.
26
AC_TYPE_PID_T
27
AC_TYPE_SIZE_T
28
AC_TYPE_SSIZE_T
29
30
# Checks for library functions.
31
AC_FUNC_FORK
32
AC_FUNC_MALLOC
33
AC_FUNC_REALLOC
34
AC_CHECK_FUNCS([dup2 memset socket strchr strdup strerror])
35
36
AC_CONFIG_FILES([Makefile pwol.1 pwol.conf.5 pkgs/Makefile.port])
37
AC_OUTPUT
(-)sysutils/pwol/work/pwol-1.5/LICENSE (+29 lines)
Line 0 Link Here
1
BSD 3-Clause License
2
3
Copyright (c) 2017, Peter Eriksson <pen@lysator.liu.se>
4
All rights reserved.
5
6
Redistribution and use in source and binary forms, with or without
7
modification, are permitted provided that the following conditions are met:
8
9
* Redistributions of source code must retain the above copyright notice, this
10
  list of conditions and the following disclaimer.
11
12
* Redistributions in binary form must reproduce the above copyright notice,
13
  this list of conditions and the following disclaimer in the documentation
14
  and/or other materials provided with the distribution.
15
16
* Neither the name of the copyright holder nor the names of its
17
  contributors may be used to endorse or promote products derived from
18
  this software without specific prior written permission.
19
20
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
(-)sysutils/pwol/work/pwol-1.5/Makefile (+140 lines)
Line 0 Link Here
1
# Makefile.in for pwol
2
#
3
# Makefile.  Generated from Makefile.in by configure.
4
5
6
# Some 'make' variants does not include CPPFLAGS when compiling, some do
7
.c.o:
8
	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
9
10
11
12
srcdir =	.
13
14
15
DESTDIR =
16
17
prefix =	/usr/local
18
exec_prefix =	${prefix}
19
datarootdir =	${prefix}/share
20
sysconfdir =    ${prefix}/etc
21
22
bindir =	${exec_prefix}/bin
23
mandir =	/usr/local/man
24
man1dir =	${mandir}/man1
25
man5dir =	${mandir}/man5
26
man8dir =	${mandir}/man8
27
28
CC =		cc
29
INSTALL =	/usr/bin/install -c
30
TAR = 		tar
31
32
PACKAGE =	pwol
33
VERSION =	1.5
34
35
CPPFLAGS =	 -I. -I${srcdir} -DPATH_CONFIG="\"$(sysconfdir)/pwol.conf\""
36
CFLAGS =	-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -Wall
37
LDFLAGS =	 -fstack-protector-strong 
38
LIBS =		-lpthread 
39
40
VALGRIND =	valgrind
41
VALGRINDFLAGS =	--leak-check=full --track-origins=yes --error-exitcode=1 # --show-leak-kinds=all 
42
43
BINS =		pwol
44
OBJS =		pwol.o
45
46
all: $(BINS) Makefile
47
48
Makefile: Makefile.in config.status
49
	./config.status
50
51
config.h: config.h.in config.status
52
	./config.status
53
54
pwol.o: 	pwol.c
55
56
pwol: $(OBJS)
57
	$(CC) $(LDFLAGS) -o pwol $(OBJS) $(LIBS)
58
59
# Clean targets
60
maintainer-clean:	distclean
61
	rm -f configure config.h.in
62
63
distclean:		clean
64
	rm -fr config.status config.log stamp-h1 .deps autom4te.cache Makefile config.h *.tar.gz
65
66
clean mostlyclean:
67
	-rm -f *~ \#* *.o $(BINS) core *.core vgcore.*
68
69
70
# Git targets
71
push: 	distclean
72
	git add -A && git commit -a && git push
73
74
pull:
75
	git pull
76
77
78
# Install targets
79
install-all install:  install-bin install-man install-conf
80
81
install-bin: $(BINS)
82
	$(INSTALL) -d $(DESTDIR)$(bindir)
83
	$(INSTALL) -c $(BINS) $(DESTDIR)$(bindir)
84
85
install-man:  pwol.1 pwol.conf.5
86
	$(INSTALL) -d "$(DESTDIR)$(man1dir)"
87
	$(INSTALL) -c -m 644 pwol.1 "$(DESTDIR)$(man1dir)" && \
88
	  gzip -f "$(DESTDIR)$(man1dir)/pwol.1"
89
	$(INSTALL) -d "$(DESTDIR)$(man5dir)"
90
	$(INSTALL) -c -m 644 pwol.conf.5 "$(DESTDIR)$(man5dir)" && \
91
	  gzip -f "$(DESTDIR)$(man5dir)/pwol.conf.5"
92
93
install-conf: pwol.conf
94
	$(INSTALL) -c -m 644 pwol.conf "$(DESTDIR)$(sysconfdir)/pwol.conf.sample"
95
96
97
uninstall-all uninstall: uninstall-bin uninstall-man
98
99
uninstall-bin:
100
	rm -f "$(DESTDIR)$(bindir)/pwol"
101
102
uninstall-man:
103
	rm -f "$(DESTDIR)$(man1dir)/pwol.1.gz" "$(DESTDIR)$(man1dir)/pwol.1"
104
	rm -f "$(DESTDIR)$(man5dir)/pwol.conf.5.gz" "$(DESTDIR)$(man5dir)/pwol.conf.5"
105
	rm -f "$(DESTDIR)$(sysconfdir)/pwol.conf.sample"
106
107
108
# Check targets
109
check:
110
	@echo "Nothing to check for now."
111
112
113
DISTCHECKDIR=/tmp/distcheck-$(PACKAGE)-$(VERSION)
114
115
distcheck: $(PACKAGE)-$(VERSION).tar.gz
116
	@if test -d "$(DISTCHECKDIR)"; then \
117
	  chmod -R +w "$(DISTCHECKDIR)" && rm -fr "$(DISTCHECKDIR)"; \
118
	fi;
119
	mkdir -p "$(DISTCHECKDIR)" && \
120
	  gunzip <"$(PACKAGE)-$(VERSION).tar.gz" | \
121
	    (cd "$(DISTCHECKDIR)" && $(TAR) xf - && \
122
	     chmod -R -w "$(PACKAGE)-$(VERSION)" && \
123
	     mkdir b && cd b && ../$(PACKAGE)-$(VERSION)/configure && \
124
	     $(MAKE) && $(MAKE) -s check) && echo "*** distcheck: OK"
125
	@chmod -R +w "$(DISTCHECKDIR)" && rm -fr "$(DISTCHECKDIR)";
126
127
128
DISTDIR=/tmp/build-$(PACKAGE)-$(VERSION)
129
130
dist:	$(PACKAGE)-$(VERSION).tar.gz
131
132
$(PACKAGE)-$(VERSION).tar.gz: Makefile
133
	rm -fr "$(DISTDIR)" && mkdir -p "$(DISTDIR)/$(PACKAGE)-$(VERSION)" && \
134
	  cp -r * "$(DISTDIR)/$(PACKAGE)-$(VERSION)" && \
135
	  (cd "$(DISTDIR)/$(PACKAGE)-$(VERSION)" && $(MAKE) distclean)
136
	(cd "$(DISTDIR)" && $(TAR) cvf - "$(PACKAGE)-$(VERSION)") | gzip >"$(PACKAGE)-$(VERSION)".tar.gz
137
	echo rm -fr "$(DISTDIR)"
138
	@echo ""
139
	@echo "*** $(PACKAGE)-$(VERSION).tar.gz created"
140
(-)sysutils/pwol/work/pwol-1.5/Makefile.in (+140 lines)
Line 0 Link Here
1
# Makefile.in for pwol
2
#
3
# @configure_input@
4
5
6
# Some 'make' variants does not include CPPFLAGS when compiling, some do
7
.c.o:
8
	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
9
10
@SET_MAKE@
11
12
srcdir =	@srcdir@
13
VPATH =		@srcdir@
14
15
DESTDIR =
16
17
prefix =	@prefix@
18
exec_prefix =	@exec_prefix@
19
datarootdir =	@datarootdir@
20
sysconfdir =    @sysconfdir@
21
22
bindir =	@bindir@
23
mandir =	@mandir@
24
man1dir =	${mandir}/man1
25
man5dir =	${mandir}/man5
26
man8dir =	${mandir}/man8
27
28
CC =		@CC@
29
INSTALL =	@INSTALL@
30
TAR = 		tar
31
32
PACKAGE =	@PACKAGE_TARNAME@
33
VERSION =	@PACKAGE_VERSION@
34
35
CPPFLAGS =	@CPPFLAGS@ -I. -I${srcdir} -DPATH_CONFIG="\"$(sysconfdir)/pwol.conf\""
36
CFLAGS =	@CFLAGS@ -Wall
37
LDFLAGS =	@LDFLAGS@
38
LIBS =		@LIBS@
39
40
VALGRIND =	valgrind
41
VALGRINDFLAGS =	--leak-check=full --track-origins=yes --error-exitcode=1 # --show-leak-kinds=all 
42
43
BINS =		pwol
44
OBJS =		pwol.o
45
46
all: $(BINS) Makefile
47
48
Makefile: Makefile.in config.status
49
	./config.status
50
51
config.h: config.h.in config.status
52
	./config.status
53
54
pwol.o: 	pwol.c
55
56
pwol: $(OBJS)
57
	$(CC) $(LDFLAGS) -o pwol $(OBJS) $(LIBS)
58
59
# Clean targets
60
maintainer-clean:	distclean
61
	rm -f configure config.h.in
62
63
distclean:		clean
64
	rm -fr config.status config.log stamp-h1 .deps autom4te.cache Makefile config.h *.tar.gz
65
66
clean mostlyclean:
67
	-rm -f *~ \#* *.o $(BINS) core *.core vgcore.*
68
69
70
# Git targets
71
push: 	distclean
72
	git add -A && git commit -a && git push
73
74
pull:
75
	git pull
76
77
78
# Install targets
79
install-all install:  install-bin install-man install-conf
80
81
install-bin: $(BINS)
82
	$(INSTALL) -d $(DESTDIR)$(bindir)
83
	$(INSTALL) -c $(BINS) $(DESTDIR)$(bindir)
84
85
install-man:  pwol.1 pwol.conf.5
86
	$(INSTALL) -d "$(DESTDIR)$(man1dir)"
87
	$(INSTALL) -c -m 644 pwol.1 "$(DESTDIR)$(man1dir)" && \
88
	  gzip -f "$(DESTDIR)$(man1dir)/pwol.1"
89
	$(INSTALL) -d "$(DESTDIR)$(man5dir)"
90
	$(INSTALL) -c -m 644 pwol.conf.5 "$(DESTDIR)$(man5dir)" && \
91
	  gzip -f "$(DESTDIR)$(man5dir)/pwol.conf.5"
92
93
install-conf: pwol.conf
94
	$(INSTALL) -c -m 644 pwol.conf "$(DESTDIR)$(sysconfdir)/pwol.conf.sample"
95
96
97
uninstall-all uninstall: uninstall-bin uninstall-man
98
99
uninstall-bin:
100
	rm -f "$(DESTDIR)$(bindir)/pwol"
101
102
uninstall-man:
103
	rm -f "$(DESTDIR)$(man1dir)/pwol.1.gz" "$(DESTDIR)$(man1dir)/pwol.1"
104
	rm -f "$(DESTDIR)$(man5dir)/pwol.conf.5.gz" "$(DESTDIR)$(man5dir)/pwol.conf.5"
105
	rm -f "$(DESTDIR)$(sysconfdir)/pwol.conf.sample"
106
107
108
# Check targets
109
check:
110
	@echo "Nothing to check for now."
111
112
113
DISTCHECKDIR=/tmp/distcheck-$(PACKAGE)-$(VERSION)
114
115
distcheck: $(PACKAGE)-$(VERSION).tar.gz
116
	@if test -d "$(DISTCHECKDIR)"; then \
117
	  chmod -R +w "$(DISTCHECKDIR)" && rm -fr "$(DISTCHECKDIR)"; \
118
	fi;
119
	mkdir -p "$(DISTCHECKDIR)" && \
120
	  gunzip <"$(PACKAGE)-$(VERSION).tar.gz" | \
121
	    (cd "$(DISTCHECKDIR)" && $(TAR) xf - && \
122
	     chmod -R -w "$(PACKAGE)-$(VERSION)" && \
123
	     mkdir b && cd b && ../$(PACKAGE)-$(VERSION)/configure && \
124
	     $(MAKE) && $(MAKE) -s check) && echo "*** distcheck: OK"
125
	@chmod -R +w "$(DISTCHECKDIR)" && rm -fr "$(DISTCHECKDIR)";
126
127
128
DISTDIR=/tmp/build-$(PACKAGE)-$(VERSION)
129
130
dist:	$(PACKAGE)-$(VERSION).tar.gz
131
132
$(PACKAGE)-$(VERSION).tar.gz: Makefile
133
	rm -fr "$(DISTDIR)" && mkdir -p "$(DISTDIR)/$(PACKAGE)-$(VERSION)" && \
134
	  cp -r * "$(DISTDIR)/$(PACKAGE)-$(VERSION)" && \
135
	  (cd "$(DISTDIR)/$(PACKAGE)-$(VERSION)" && $(MAKE) distclean)
136
	(cd "$(DISTDIR)" && $(TAR) cvf - "$(PACKAGE)-$(VERSION)") | gzip >"$(PACKAGE)-$(VERSION)".tar.gz
137
	echo rm -fr "$(DISTDIR)"
138
	@echo ""
139
	@echo "*** $(PACKAGE)-$(VERSION).tar.gz created"
140
(-)sysutils/pwol/work/pwol-1.5/Makefile.old (+45 lines)
Line 0 Link Here
1
# Makefile for pwol
2
3
DEST=
4
CC=gcc -Wall
5
CFLAGS=-g -DVERSION="\"$(VERSION)\""
6
7
PACKAGE=pwol
8
VERSION=1.4.2
9
10
ETCDIR=$(DEST)/etc
11
BINDIR=$(DEST)/bin
12
MANDIR=$(DEST)/share/man
13
14
BINOBJS=pwol.o
15
16
LIBS=
17
18
# Needed for Solaris:
19
#LIBS=-lnsl -lsocket -lrt
20
21
22
all: pwol
23
24
pwol: $(BINOBJS)
25
	$(CC) -g -o pwol $(BINOBJS) $(LIBS)
26
27
clean:
28
	-rm -f *~ core *.core *.o \#* pwol
29
30
distclean: clean
31
	-rm -f pwol
32
33
install: pwol
34
	$(INSTALL) -o root -g wheel -m 0444 pwol $(BINDIR)
35
	$(INSTALL) -o root -g wheel -m 0444 pwol.1 $(MANDIR)/man1
36
37
pull:	distclean
38
	git pull
39
40
push:	distclean
41
	git add -A && git commit -a && git push
42
43
dist:	distclean
44
	(mkdir -p ../dist && cd ../dist && ln -sf ../$(PACKAGE) $(PACKAGE)-$(VERSION) && tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)/* && rm $(PACKAGE)-$(VERSION))
45
(-)sysutils/pwol/work/pwol-1.5/pkgs/Makefile (+24 lines)
Line 0 Link Here
1
# Makefile for pkgs
2
3
PORTSDIR=/usr/ports
4
PORTSNAME=sysutils/pwol
5
6
all:
7
	@echo "Use 'make port'"
8
	@exit 1
9
10
port:	Makefile.port pkg-descr
11
	mkdir -p "$(PORTSDIR)/$(PORTSNAME)"
12
	cp Makefile.port "$(PORTSDIR)/$(PORTSNAME)/Makefile"
13
	cp pkg-descr "$(PORTSDIR)/$(PORTSNAME)"
14
	(cd "$(PORTSDIR)/$(PORTSNAME)" && make distclean && make makesum && portlint -AC)
15
16
17
# Clean targets
18
maintainer-clean:	distclean
19
20
distclean:		clean
21
	rm -fr Makefile.port
22
23
clean mostlyclean:
24
	-rm -f *~ \#*
(-)sysutils/pwol/work/pwol-1.5/pkgs/Makefile.port (+24 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=		pwol
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=		1.5
6
CATEGORIES=		sysutils
7
8
MAINTAINER=		pen@lysator.liu.se
9
COMMENT=		Peter's Wake-on-LAN Tool
10
11
LICENSE=		BSD3CLAUSE
12
LICENSE_FILE=		${WRKSRC}/LICENSE
13
14
USE_GITHUB=		yes
15
GH_ACCOUNT=		ptrrkssn
16
17
GNU_CONFIGURE=		yes
18
19
PLIST_FILES=		bin/pwol \
20
			man/man1/pwol.1.gz \
21
			man/man5/pwol.conf.5.gz \
22
			etc/pwol.conf.sample
23
24
.include <bsd.port.mk>
(-)sysutils/pwol/work/pwol-1.5/pkgs/Makefile.port.in (+24 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=		@PACKAGE_TARNAME@
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=		@PACKAGE_VERSION@
6
CATEGORIES=		sysutils
7
8
MAINTAINER=		@PACKAGE_BUGREPORT@
9
COMMENT=		Peter's Wake-on-LAN Tool
10
11
LICENSE=		BSD3CLAUSE
12
LICENSE_FILE=		${WRKSRC}/LICENSE
13
14
USE_GITHUB=		yes
15
GH_ACCOUNT=		ptrrkssn
16
17
GNU_CONFIGURE=		yes
18
19
PLIST_FILES=		bin/pwol \
20
			man/man1/pwol.1.gz \
21
			man/man5/pwol.conf.5.gz \
22
			etc/pwol.conf.sample
23
24
.include <bsd.port.mk>
(-)sysutils/pwol/work/pwol-1.5/pkgs/pkg-descr (+9 lines)
Line 0 Link Here
1
This is a port of pwol, Peter's Wake-on-Lan tool
2
3
This is a simple tool to send WoL packets to wake up
4
hosts. No more, no less.
5
6
WWW: https://github.com/ptrrkssn/pwol
7
8
- Peter Eriksson
9
pen@lysator.liu.se
(-)sysutils/pwol/work/pwol-1.5/pwol.1 (+94 lines)
Line 0 Link Here
1
.TH "PWOL" "1" "14 Jun 2020" "1.5" "pwol man page"
2
3
.SH "NAME"
4
pwol \- Send Wake-On-LAN (WoL) packets to wake-up hosts over the network
5
6
.SH "SYNOPSIS"
7
.B pwol
8
.RI "[" "options" "]"
9
.RI "[" "<hosts|groups>" "]"
10
11
.SH "DESCRIPTION"
12
.B pwol
13
is a tool that can be used to send WoL (Wake-On-LAN) network packets
14
in order to wake-up sleeping hosts, either directly or via routers.
15
.PP
16
It can also be used as a WoL proxy daemon listening to incoming WoL
17
packets (possibly authenticated) and then forwarding requests to one
18
or many other targets.
19
.PP
20
If no hosts or groups are specified on the command line then
21
.B pwol
22
will read them from the command line.
23
24
.SH "OPTIONS"
25
.TP
26
.B \-h
27
Show summary of options.
28
.TP
29
.B \-V
30
Print build version.
31
.TP
32
.B \-v
33
Increase verbosity level.
34
.TP
35
.B \-i
36
Ignore errors.
37
.TP
38
.B \-d
39
Increase internal debugging level.
40
.TP
41
.B \-n
42
No-send mode (dry run).
43
.TP
44
.B \-e
45
Export configuration.
46
.TP
47
.BI \-f " path"
48
Load additional configuration files.
49
.PP
50
.TP
51
.BI \-g " name"
52
Force (override) gateway.
53
.TP
54
.BI \-a " address"
55
Force (override) destination address (DNS name).
56
.TP
57
.BI \-p " service"
58
Force (override) gateway port (service name).
59
.TP
60
.BI \-t " delay"
61
Force (override) inter-packet delay.
62
.TP
63
.BI \-T " delay"
64
Force (override) inter-host delay.
65
.TP
66
.BI \-c " count"
67
Force (override) packet copies for hosts/groups.
68
.TP
69
.BI \-s " secret"
70
Force (override) WoL secret.
71
.PP
72
.TP
73
.B \-D
74
Enable proxy daemon mode
75
.TP
76
.B \-F
77
Run proxy in the foreground
78
.TP
79
.BI \-A " address"
80
Force (override) proxy address (DNS name).
81
.TP
82
.BI \-P " service"
83
Force (override) proxy port.
84
.TP
85
.BI \-S " secret"
86
Force (override) proxy secret.
87
88
.SH "SEE ALSO"
89
.BR pwol.conf (5),
90
.BR ping (8),
91
.B "https://github.com/ptrrkssn/pwol"
92
93
.SH "AUTHOR"
94
pwol was written by Peter Eriksson <pen@lysator.liu.se>.
(-)sysutils/pwol/work/pwol-1.5/pwol.1.in (+94 lines)
Line 0 Link Here
1
.TH "PWOL" "1" "14 Jun 2020" "@PACKAGE_VERSION@" "pwol man page"
2
3
.SH "NAME"
4
pwol \- Send Wake-On-LAN (WoL) packets to wake-up hosts over the network
5
6
.SH "SYNOPSIS"
7
.B pwol
8
.RI "[" "options" "]"
9
.RI "[" "<hosts|groups>" "]"
10
11
.SH "DESCRIPTION"
12
.B pwol
13
is a tool that can be used to send WoL (Wake-On-LAN) network packets
14
in order to wake-up sleeping hosts, either directly or via routers.
15
.PP
16
It can also be used as a WoL proxy daemon listening to incoming WoL
17
packets (possibly authenticated) and then forwarding requests to one
18
or many other targets.
19
.PP
20
If no hosts or groups are specified on the command line then
21
.B pwol
22
will read them from the command line.
23
24
.SH "OPTIONS"
25
.TP
26
.B \-h
27
Show summary of options.
28
.TP
29
.B \-V
30
Print build version.
31
.TP
32
.B \-v
33
Increase verbosity level.
34
.TP
35
.B \-i
36
Ignore errors.
37
.TP
38
.B \-d
39
Increase internal debugging level.
40
.TP
41
.B \-n
42
No-send mode (dry run).
43
.TP
44
.B \-e
45
Export configuration.
46
.TP
47
.BI \-f " path"
48
Load additional configuration files.
49
.PP
50
.TP
51
.BI \-g " name"
52
Force (override) gateway.
53
.TP
54
.BI \-a " address"
55
Force (override) destination address (DNS name).
56
.TP
57
.BI \-p " service"
58
Force (override) gateway port (service name).
59
.TP
60
.BI \-t " delay"
61
Force (override) inter-packet delay.
62
.TP
63
.BI \-T " delay"
64
Force (override) inter-host delay.
65
.TP
66
.BI \-c " count"
67
Force (override) packet copies for hosts/groups.
68
.TP
69
.BI \-s " secret"
70
Force (override) WoL secret.
71
.PP
72
.TP
73
.B \-D
74
Enable proxy daemon mode
75
.TP
76
.B \-F
77
Run proxy in the foreground
78
.TP
79
.BI \-A " address"
80
Force (override) proxy address (DNS name).
81
.TP
82
.BI \-P " service"
83
Force (override) proxy port.
84
.TP
85
.BI \-S " secret"
86
Force (override) proxy secret.
87
88
.SH "SEE ALSO"
89
.BR pwol.conf (5),
90
.BR ping (8),
91
.B "https://github.com/ptrrkssn/pwol"
92
93
.SH "AUTHOR"
94
pwol was written by Peter Eriksson <pen@lysator.liu.se>.
(-)sysutils/pwol/work/pwol-1.5/pwol.c (+1966 lines)
Line 0 Link Here
1
/*
2
** pwol.c - Send Wake-On-LAN packets
3
**
4
** Copyright (c) 2017-2020 Peter Eriksson <pen@lysator.liu.se>
5
** All rights reserved.
6
** 
7
** Redistribution and use in source and binary forms, with or without
8
** modification, are permitted provided that the following conditions are met:
9
** 
10
** * Redistributions of source code must retain the above copyright notice, this
11
**   list of conditions and the following disclaimer.
12
** 
13
** * Redistributions in binary form must reproduce the above copyright notice,
14
**   this list of conditions and the following disclaimer in the documentation
15
**   and/or other materials provided with the distribution.
16
** 
17
** * Neither the name of the copyright holder nor the names of its
18
**   contributors may be used to endorse or promote products derived from
19
**   this software without specific prior written permission.
20
** 
21
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
32
33
#include "config.h"
34
35
#include <stdio.h>
36
#include <errno.h>
37
#include <string.h>
38
#include <ctype.h>
39
#include <unistd.h>
40
#include <stdlib.h>
41
#include <time.h>
42
#include <stdarg.h>
43
#include <syslog.h>
44
#include <signal.h>
45
#include <fcntl.h>
46
#include <sys/types.h>
47
#include <sys/socket.h>
48
#include <sys/stat.h>
49
#include <netinet/in.h>
50
#include <arpa/inet.h>
51
#include <netdb.h>
52
#include <poll.h>
53
54
#ifdef __linux__
55
#include <netinet/ether.h>
56
#elif __FreeBSD__
57
#include <net/ethernet.h>
58
#define ether_addr_octet octet
59
#else
60
#include <sys/ethernet.h>
61
#endif
62
63
64
#ifndef PATH_CONFIG
65
#define PATH_CONFIG "/etc/pwol.conf"
66
#endif
67
68
#define DEFAULT_GLOBAL_CONFIG   PATH_CONFIG
69
#define DEFAULT_USER_CONFIG     ".pwolrc"
70
71
#define DEFAULT_HOSTGROUP_HOSTS 64
72
73
#define DEFAULT_ADDRESS         "255.255.255.255"
74
#define DEFAULT_PORT            "7"
75
#define DEFAULT_COPIES          "1"
76
#define DEFAULT_SECRET          NULL
77
#define DEFAULT_DELAY           NULL
78
79
#define DEFAULT_PROXY_ADDRESS   "0.0.0.0"
80
#define DEFAULT_PROXY_PORT      "10007"
81
82
#define HEADER_SIZE             6
83
#define MAC_SIZE                6
84
#define MAC_COPIES              16
85
#define WOL_BODY_SIZE           (HEADER_SIZE+MAC_COPIES*MAC_SIZE)
86
87
#define SECRET_MAX_SIZE         64
88
89
90
#ifndef PACKAGE_VERSION
91
#define PACKAGE_VERSION __DATE__ __TIME__
92
#endif
93
94
char *argv0 = "pwol";
95
char *version = PACKAGE_VERSION;
96
97
98
99
100
101
typedef struct secret {
102
  unsigned char buf[SECRET_MAX_SIZE];
103
  size_t size;
104
} SECRET;
105
106
107
108
typedef struct target {
109
  struct addrinfo *aip;
110
  int fd;
111
112
  struct target *next;
113
} TARGET;
114
115
116
typedef struct gateway {
117
  char *name;
118
119
  char *address;
120
  char *port;
121
  TARGET *targets;
122
123
  unsigned int copies;
124
  struct timespec delay;
125
  SECRET secret;
126
127
  int fd;
128
129
  struct gateway *next;
130
} GATEWAY;
131
132
GATEWAY *gateways = NULL;
133
GATEWAY *default_gw = NULL;
134
135
136
typedef struct host {
137
  char *name;
138
139
  struct ether_addr mac;
140
  GATEWAY *via;
141
  
142
  unsigned int copies;
143
  struct timespec delay;
144
  SECRET secret;
145
  
146
  struct host *next;
147
} HOST;
148
149
HOST *hosts = NULL;
150
151
152
typedef struct hostgroup {
153
  char *name;
154
155
  struct timespec delay;
156
157
  HOST **hv;
158
  size_t hs;
159
  size_t hc;
160
  
161
  struct hostgroup *next;
162
} HOSTGROUP;
163
164
HOSTGROUP *hostgroups = NULL;
165
HOSTGROUP *all_group = NULL;
166
167
int f_verbose = 0;
168
int f_ignore = 0;
169
int f_debug = 0;
170
int f_no = 0;
171
int f_export = 0;
172
int f_daemon = 0;
173
int f_foreground = 0;
174
175
176
char *f_copies  = NULL;
177
char *f_delay   = NULL;
178
char *f_secret  = NULL;
179
180
char *f_address = NULL;
181
char *f_port    = NULL;
182
char *f_gateway = NULL;
183
184
char *f_host_delay    = NULL;
185
186
char *f_proxy_address = NULL;
187
char *f_proxy_port    = NULL;
188
char *f_proxy_secret  = NULL;
189
190
char *
191
strdupcat(const char *str,
192
	  ...) {
193
  va_list ap;
194
  char *res, *cp;
195
  int len;
196
197
198
  if (!str)
199
    return NULL;
200
201
  len = strlen(str);
202
  
203
  va_start(ap, str);
204
  while ((cp = va_arg(ap, char *)) != NULL)
205
    len += strlen(cp);
206
  va_end(ap);
207
  
208
  res = malloc(len+1);
209
  if (!res)
210
    return NULL;
211
212
  strcpy(res, str);
213
  
214
  va_start(ap, str);
215
  while ((cp = va_arg(ap, char *)) != NULL)
216
    strcat(res, cp);
217
  va_end(ap);
218
219
  return res;
220
}
221
222
223
TARGET *
224
target_add(TARGET **targets, 
225
	   struct addrinfo *aip) {
226
  TARGET *tp = malloc(sizeof(*tp));
227
  
228
  if (!tp)
229
    return NULL;
230
231
  tp->aip = aip;
232
  tp->fd = -1;
233
234
  tp->next = *targets;
235
  *targets = tp;
236
237
  return tp;
238
}
239
240
void
241
target_free(TARGET *tp) {
242
  if (!tp)
243
    return;
244
245
  if (tp->next) {
246
    target_free(tp->next);
247
    tp->next = NULL;
248
  }
249
250
  if (tp->aip) {
251
    freeaddrinfo(tp->aip);
252
    tp->aip = NULL;
253
  }
254
255
  free(tp);
256
}
257
258
259
char *
260
sockaddr2str(struct sockaddr *sp,
261
	     size_t len) {
262
  char addr[2048];
263
  char port[256];
264
265
266
  if (!sp)
267
    return NULL;
268
269
  if (getnameinfo(sp, len, addr, sizeof(addr), port, sizeof(port), NI_DGRAM|NI_NUMERICHOST|NI_NUMERICSERV) != 0)
270
    return NULL;
271
272
  if (sp->sa_family == AF_INET6)
273
    return strdupcat("[", addr, "]:", port, NULL);
274
275
  return strdupcat(addr, ":", port, NULL);
276
}
277
278
279
char *
280
addrinfo2str(struct addrinfo *aip) {
281
  char addr[2048];
282
  char port[256];
283
284
285
  if (!aip)
286
    return NULL;
287
288
  if (getnameinfo(aip->ai_addr, aip->ai_addrlen, addr, sizeof(addr), port, sizeof(port), NI_DGRAM|NI_NUMERICHOST|NI_NUMERICSERV) != 0)
289
    return NULL;
290
291
  if (aip->ai_family == AF_INET6)
292
    return strdupcat("[", addr, "]:", port, NULL);
293
294
  return strdupcat(addr, ":", port, NULL);
295
}
296
297
298
char *
299
target2str(TARGET *tp) {
300
  return addrinfo2str(tp->aip);
301
}
302
303
304
int
305
str2secret(const char *secret,
306
	   SECRET *sp) {
307
  unsigned int v1, v2, v3, v4, val, i;
308
  char *ptr, *cp, *tbuf;
309
310
311
  if (sscanf(secret, "%u.%u.%u.%u", &v1, &v2, &v3, &v4) == 4) {
312
    /* IPv4 address */
313
    sp->buf[0] = v1;
314
    sp->buf[1] = v2;
315
    sp->buf[2] = v3;
316
    sp->buf[3] = v4;
317
    sp->size  = 4;
318
    return sp->size;
319
  }
320
321
322
  /* List of hexadecimal bytes separated by : or - */
323
  ptr = strdup(secret);
324
  if (!ptr)
325
    return -1;
326
327
  tbuf = ptr;
328
  for (i = 0; i < SECRET_MAX_SIZE && (cp = strtok_r(tbuf, ":-", &ptr)) != NULL; i++) {
329
    tbuf = NULL;
330
    
331
    if (strlen(cp) > 2 || sscanf(cp, "%x", &val) != 1) {
332
      i = 0;
333
      break;
334
    }
335
    sp->buf[i] = val;
336
  }
337
338
  if (i > 1) {
339
    sp->size = i;
340
    return sp->size;
341
  }
342
343
  i = strlen(secret);
344
  if (i > SECRET_MAX_SIZE) {
345
    errno = EINVAL;
346
    return -1;
347
  }
348
349
  if (i > 0)
350
    memcpy(sp->buf, secret, i);
351
352
  sp->size = i;
353
  return sp->size;
354
}
355
356
357
int
358
secret_compare(SECRET *s1, 
359
	       SECRET *s2) {
360
  int rc;
361
362
363
  if (!s1 && s2)
364
    return 1;
365
  if (s1 && !s2)
366
    return -1;
367
368
  rc = s1->size - s2->size;
369
  if (rc)
370
    return rc;
371
372
  return memcmp(&s1->buf, &s2->buf, s1->size);
373
}
374
375
char *
376
secret2str(SECRET *sp) {
377
  char *buf;
378
  int i;
379
380
381
  if (!sp || sp->size == 0)
382
    return NULL;
383
384
  /* IPv4 */
385
  if (sp->size == 4) {
386
    buf = malloc(16);
387
    if (!buf)
388
      return NULL;
389
    snprintf(buf, 16, "%u.%u.%u.%u", sp->buf[0], sp->buf[1], sp->buf[2], sp->buf[3]);
390
    goto End;
391
  }
392
  
393
  buf = malloc(sp->size*3);
394
  if (!buf)
395
    return NULL;
396
  for (i = 0; i < sp->size; i++) {
397
    snprintf(buf+i*3, 3, "%02x", sp->buf[i]);
398
    if (i+1 < sp->size) {
399
      buf[i*3+2] = ':';
400
    }
401
  }
402
403
 End:
404
  for (i = 0; i < sp->size && isprint(sp->buf[i]); i++)
405
    ;
406
  
407
  if (i >= sp->size) {
408
    buf = realloc(buf, sp->size*3+3+sp->size);
409
    if (!buf)
410
      return NULL;
411
412
    memcpy(buf+sp->size*3-1, " (", 2);
413
    memcpy(buf+sp->size*3-1+2, sp->buf, sp->size);
414
    strcpy(buf+sp->size*3-1+2+sp->size, ")");
415
  }
416
    
417
  return buf;
418
}
419
420
char *
421
timespec2str(struct timespec *tsp) {
422
  char buf[2048];
423
  unsigned int h, m, s, ms, us, ns;
424
  float fs, fms, fus;
425
426
427
  h = tsp->tv_sec / 3600;
428
  m = (tsp->tv_sec - h*3600) / 60;
429
  s = tsp->tv_sec - h*3600 - m*60;
430
431
  ms = tsp->tv_nsec / 1000000;
432
  us = (tsp->tv_nsec - ms * 1000000) / 1000;
433
  ns = tsp->tv_nsec - ms * 1000000 - us * 1000;
434
435
  fs  = (float) s +  (float) ms / 1000.0;
436
  fms = (float) ms + (float) us / 1000.0;
437
  fus = (float) us + (float) ns / 1000.0;
438
439
  if (h)
440
    sprintf(buf, "%02u:%02u:%02u", h, m, s);
441
  else if (m)
442
    sprintf(buf, "%um+%gs", m, fs);
443
  else if (s)
444
    sprintf(buf, "%gs", fs);
445
  else if (ms)
446
    sprintf(buf, "%gms", fms);
447
  else if (us)
448
    sprintf(buf, "%gµs", fus);
449
  else
450
    sprintf(buf, "%uns", ns);
451
452
  return strdup(buf);
453
}
454
455
int
456
str2timespec(const char *time,
457
	     struct timespec *tsp) {
458
  float ft;
459
  char buf[3];
460
461
462
  memset(buf, 0, 3);
463
  if (sscanf(time, "%f%c%c", &ft, buf+0, buf+1) < 1)
464
    return -1;
465
  
466
  if (strcmp(buf, "s") == 0 || !*buf) {
467
    tsp->tv_sec  = ft;
468
    tsp->tv_nsec = (ft-tsp->tv_sec)*1000000000.0;
469
  } else if (strcmp(buf, "m") == 0) {
470
    tsp->tv_sec  = ft*60;
471
    tsp->tv_nsec = (ft-tsp->tv_sec*60)/6.0*100000000.0;;
472
  } else if (strcmp(buf, "h") == 0) {
473
    tsp->tv_sec  = ft*60*60;
474
    tsp->tv_nsec = 0;
475
  } else if (strcmp(buf, "d") == 0) {
476
    tsp->tv_sec  = ft*60*60*24;
477
    tsp->tv_nsec = 0;
478
  } else if (strcmp(buf, "ms") == 0) {
479
    tsp->tv_sec  = ft/1000.0;
480
    tsp->tv_nsec = ft*1000000.0;
481
  } else if (strcmp(buf, "us") == 0 || strcmp(buf, "µs") == 0) {
482
    tsp->tv_sec  = ft/1000000.0;
483
    tsp->tv_nsec = ft*1000.0;
484
  } else if (strcmp(buf, "ns") == 0) {
485
    tsp->tv_sec  = ft/1000000000.0;
486
    tsp->tv_nsec = ft;
487
  } else 
488
    return -1;
489
490
  return tsp->tv_sec;
491
}
492
493
494
495
GATEWAY *
496
gw_lookup(const char *name) {
497
  GATEWAY *gp;
498
499
  if (!name)
500
    return NULL;
501
502
  for (gp = gateways; gp && (!gp->name || strcmp(gp->name, name) != 0); gp = gp->next)
503
    ;
504
505
  if (!gp)
506
    errno = ENXIO;
507
508
  return gp;
509
}
510
511
512
int
513
gw_add_name(GATEWAY *gp,
514
	    const char *name) {
515
  if (!name)
516
    return -1;
517
 
518
  if (gp->name)
519
    free(gp->name);
520
521
  gp->name = strdup(name);
522
  return 0;
523
}
524
525
int
526
gw_add_address(GATEWAY *gp,
527
	       const char *address) {
528
  if (!address)
529
    return -1;
530
531
  if (gp->address)
532
    free(gp->address);
533
534
  gp->address = strdup(address);
535
  return 0;
536
}
537
538
539
HOSTGROUP *
540
group_lookup(const char *name) {
541
  HOSTGROUP *hgp;
542
543
544
  if (!name)
545
    return NULL;
546
547
  for (hgp = hostgroups; hgp && strcmp(hgp->name, name) != 0; hgp = hgp->next)
548
    ;
549
550
  if (!hgp)
551
    errno = ENXIO;
552
553
  return hgp;
554
}
555
556
HOSTGROUP *
557
group_create(const char *name) {
558
  HOSTGROUP *hgp, **thgp;
559
560
561
  if (!name)
562
    return NULL;
563
564
  hgp = group_lookup(name);
565
  if (hgp)
566
    return hgp;
567
568
  hgp = malloc(sizeof(*hgp));
569
  if (!hgp)
570
    return NULL;
571
572
  memset(hgp, 0, sizeof(*hgp));
573
  hgp->name = strdup(name);
574
575
  hgp->hs = DEFAULT_HOSTGROUP_HOSTS;
576
  hgp->hc = 0;
577
  hgp->hv = malloc(hgp->hs * sizeof(HOST *));
578
  if (!hgp->hv)
579
    return NULL;
580
581
  for (thgp = &hostgroups; *thgp; thgp = &((*thgp)->next))
582
    ;
583
584
  *thgp = hgp;
585
  return hgp;
586
}
587
588
589
GATEWAY *
590
gw_create(const char *name) {
591
  GATEWAY *gp, **tgp;
592
593
594
  if (name) {
595
    gp = gw_lookup(name);
596
    if (gp)
597
      return gp;
598
  }
599
600
  gp = malloc(sizeof(*gp));
601
  if (!gp)
602
    return NULL;
603
604
  memset(gp, 0, sizeof(*gp));
605
606
607
  if (name) {
608
    gp->name = strdup(name);
609
  
610
    /* Try to use gateway name as address */
611
    (void) gw_add_address(gp, name);
612
    
613
    /* Autocreate group name */
614
    (void) group_create(name);
615
  }
616
617
  for (tgp = &gateways; *tgp; tgp = &((*tgp)->next))
618
    ;
619
  
620
  *tgp = gp;
621
  return gp;
622
}
623
624
int
625
gw_add_port(GATEWAY *gp,
626
	    const char *port) {
627
  if (!port)
628
    return -1;
629
630
  if (gp->port)
631
    free(gp->port);
632
  
633
  gp->port = strdup(port);
634
  return 0;
635
}
636
637
int
638
gw_add_delay(GATEWAY *gp,
639
	       const char *delay) {
640
  if (!delay)
641
    return -1;
642
643
  return str2timespec(delay, &gp->delay);
644
}
645
646
int
647
gw_add_copies(GATEWAY *gp,
648
	      const char *copies) {
649
  if (copies && sscanf(copies, "%u", &gp->copies) == 1)
650
    return 0;
651
652
  return -1;
653
}
654
655
int
656
gw_add_secret(GATEWAY *gp,
657
	      const char *secret) {
658
  if (!secret)
659
    return -1;
660
  
661
  return str2secret(secret, &gp->secret);
662
}
663
664
665
666
HOST *
667
host_lookup(const char *name) {
668
  HOST *hp;
669
670
  if (!name)
671
    return NULL;
672
  
673
  for (hp = hosts; hp && strcmp(hp->name, name) != 0; hp = hp->next)
674
    ;
675
676
  if (!hp)
677
    errno = ENXIO;
678
679
  return hp;
680
}
681
682
int
683
host_add_mac(HOST *hp,
684
	     const char *mac) {
685
  struct ether_addr *ep;
686
687
688
  if (!mac)
689
    return -1;
690
691
  if (ether_hostton(mac, &hp->mac) == 0)
692
    return 0;
693
694
  ep = ether_aton(mac);
695
  if (!ep) {
696
    errno = EINVAL;
697
    return -1;
698
  }
699
700
  hp->mac = *ep;
701
  return 0;
702
}
703
704
705
HOST *
706
host_create(const char *name) {
707
  HOST *hp, **thp;
708
709
710
  if (!name)
711
    return NULL;
712
713
  hp = host_lookup(name);
714
  if (hp)
715
    return hp;
716
717
  hp = malloc(sizeof(*hp));
718
  if (!hp)
719
    return NULL;
720
721
  memset(hp, 0, sizeof(*hp));
722
  hp->name = strdup(name);
723
724
  /* Try to lookup mac via name in ethers file */
725
  (void) host_add_mac(hp, name);
726
727
#if 0
728
  if (gp) {
729
    hp->via    = gp;
730
731
    hp->copies = gp->copies;
732
    hp->delay  = gp->delay;
733
    hp->secret = gp->secret;
734
  }
735
#endif
736
737
  for (thp = &hosts; *thp; thp = &((*thp)->next))
738
    ;
739
740
  *thp = hp;
741
  return hp;
742
}
743
744
745
int
746
group_add_delay(HOSTGROUP *hgp,
747
		const char *delay) {
748
  if (!delay)
749
    return -1;
750
  
751
  return str2timespec(delay, &hgp->delay);
752
}
753
754
755
756
int
757
group_add_host(HOSTGROUP *hgp, 
758
	       HOST *hp) {
759
  int i;
760
761
762
  if (!hgp)
763
    return -1;
764
765
  if (!hp)
766
    return -1;
767
768
  for (i = 0; i < hgp->hc && hp != hgp->hv[i]; i++)
769
    ;
770
771
  if (i < hgp->hc)
772
    return hgp->hc;
773
774
  if (hgp->hc >= hgp->hs) {
775
    hgp->hs += DEFAULT_HOSTGROUP_HOSTS;
776
    hgp->hv = realloc(hgp->hv, hgp->hs * sizeof(HOST *));
777
    if (!hgp->hv)
778
      return -1;
779
  }
780
781
  hgp->hv[hgp->hc++] = hp;
782
  return hgp->hc;
783
}
784
785
786
787
int
788
host_add_via(HOST *hp,
789
	     const char *via) {
790
  HOSTGROUP *hgp;
791
792
  if (!via)
793
    return -1;
794
795
  hp->via = gw_lookup(via);
796
  if (!hp->via)
797
    return -1;
798
799
  hgp = group_lookup(hp->via->name);
800
  group_add_host(hgp, hp);
801
802
  return 0;
803
}
804
805
int
806
host_add_name(HOST *hp,
807
	      const char *name) {
808
  if (!name)
809
    return -1;
810
 
811
  if (hp->name)
812
    free(hp->name);
813
814
  hp->name = strdup(name);
815
  return 0;
816
}
817
818
int
819
host_add_delay(HOST *hp,
820
	       const char *delay) {
821
  if (!delay)
822
    return -1;
823
824
  return str2timespec(delay, &hp->delay);
825
}
826
827
int
828
host_add_copies(HOST *hp,
829
		const char *copies) {
830
  if (!copies || sscanf(copies, "%u", &hp->copies) != 1)
831
    return -1;
832
833
  return 0;
834
}
835
836
int
837
host_add_secret(HOST *hp,
838
		const char *secret) {
839
  if (!secret)
840
    return -1;
841
842
  return str2secret(secret, &hp->secret);
843
}
844
845
846
847
848
void
849
gw_print(GATEWAY *gp) {
850
  TARGET *tp;
851
  unsigned int i;
852
853
854
  if (f_verbose) {
855
    printf("Gateway %s:\n", gp->name);
856
    
857
    if (gp->copies)
858
      printf("  %-10s  %u\n", "Copies", gp->copies);
859
    if (gp->delay.tv_sec || gp->delay.tv_nsec)
860
      printf("  %-10s  %s\n", "Delay",  timespec2str(&gp->delay));
861
    if (gp->secret.size > 0)
862
      printf("  %-10s  %s\n", "Secret", secret2str(&gp->secret));
863
    printf("  Targets:\n");
864
    i = 0;
865
    for (tp = gp->targets; tp; tp = tp->next) {
866
      char *dest = target2str(tp);
867
      
868
      printf("    %-2u        %s\n", i+1, dest ? dest : "???");
869
      if (dest)
870
	free(dest);
871
      ++i;
872
    }
873
874
  } else {
875
876
    printf("gateway %s", gp->name);
877
    if (gp->address && strcmp(gp->address, gp->name) != 0)
878
      printf(" address %s", gp->address);
879
    if (gp->port && strcmp(gp->port, default_gw->port) != 0)
880
      printf(" port %s", gp->port);
881
    if (gp->copies && gp->copies != default_gw->copies)
882
      printf(" copies %u", gp->copies);
883
    if ((gp->delay.tv_sec || gp->delay.tv_nsec) && 
884
	!(gp->delay.tv_sec == default_gw->delay.tv_sec && gp->delay.tv_nsec == default_gw->delay.tv_nsec))
885
      printf(" delay %s", timespec2str(&gp->delay));
886
    if (gp->secret.size > 0 && (gp->secret.size != default_gw->secret.size || memcmp(gp->secret.buf, default_gw->secret.buf, gp->secret.size) != 0))
887
      printf(" secret %s", secret2str(&gp->secret));
888
    putchar('\n');
889
  }
890
}
891
892
893
void
894
host_print(HOST *hp) {
895
  if (f_verbose) {
896
    printf("Host %s:\n", hp->name);
897
    
898
    printf("  %-10s  %s\n", "MAC", ether_ntoa(&hp->mac));
899
    if (hp->via)
900
      printf("  %-10s  %s\n", "Gateway", hp->via->name);
901
    if (hp->copies)
902
      printf("  %-10s  %u\n", "Copies", hp->copies);
903
    if (hp->delay.tv_sec || hp->delay.tv_nsec)
904
      printf("  %-10s  %s\n", "Delay",  timespec2str(&hp->delay));
905
    if (hp->secret.size > 0)
906
      printf("  %-10s  %s\n", "Secret", secret2str(&hp->secret));
907
  } else {
908
    printf("host %s", hp->name);
909
    printf(" mac %s", ether_ntoa(&hp->mac));
910
    if (hp->via && group_lookup(hp->via->name) == NULL)
911
      printf(" via %s", hp->via->name);
912
    if (hp->copies)
913
      printf(" copies %u", hp->copies);
914
    if (hp->delay.tv_sec || hp->delay.tv_nsec)
915
      printf(" delay %s", timespec2str(&hp->delay));
916
    if (hp->secret.size > 0)
917
      printf(" secret %s", secret2str(&hp->secret));
918
    putchar('\n');
919
  }
920
}
921
922
void
923
group_print(HOSTGROUP *hgp) {
924
  int i;
925
926
  if (f_verbose) {
927
    printf("Hostgroup %s:\n", hgp->name);
928
    if (hgp->delay.tv_sec || hgp->delay.tv_nsec)
929
      printf("  %-10s  %s\n", "Delay",  timespec2str(&hgp->delay));
930
    if (hgp->hc > 0)
931
      printf("  Hosts:\n");
932
    for (i = 0; i < hgp->hc; i++)
933
      printf("    %2d        %s\n", i+1, hgp->hv[i]->name);
934
  } else {
935
    printf("[%s]\n", hgp->name);
936
    if (hgp->delay.tv_sec || hgp->delay.tv_nsec)
937
      printf("delay %s\n", timespec2str(&hgp->delay));
938
    for (i = 0; i < hgp->hc; i++) {
939
      HOST *hp = hgp->hv[i];
940
941
      printf("host %s", hp->name);
942
943
#if 0
944
      if (!hp->via || (hp->via && strcmp(hp->via->name, hgp->name) == 0)) {
945
	if (hp->copies)
946
	  printf(" copies %u", hp->copies);
947
	if (hp->delay.tv_sec || hp->delay.tv_nsec)
948
	  printf(" delay %s", timespec2str(&hp->delay));
949
	if (hp->secret.size > 0)
950
	  printf(" secret %s", secret2str(&hp->secret));
951
      }
952
#endif
953
      
954
      putchar('\n');
955
    }
956
  }
957
}
958
 
959
 void
960
   buf_print(FILE *fp,
961
	  void *buf, 
962
	  size_t size) {
963
  unsigned char *bp = (unsigned char *) buf;
964
  int i;
965
966
  putc('\t', fp);
967
  for (i = 0; i < size; i++) {
968
    if (i > 0) {
969
      if ((i & 15) == 0) {
970
	putc('\n', fp);
971
	putc('\t', fp);
972
      } else
973
	putc(':', fp);
974
    }
975
    fprintf(fp, "%02X", (unsigned int) bp[i]);
976
  }
977
  putc('\n', fp);
978
}
979
980
981
int
982
mac_invalid(struct ether_addr *mac) {
983
  int i;
984
985
986
  for (i = 0; i < 6 && mac->ether_addr_octet[i] == 0; i++)
987
    ;
988
989
  /* All 0x00 bytes - no MAC set */
990
  if (i == 6) {
991
    errno = EFAULT;
992
    return -1;
993
  }
994
995
  return 0;
996
}
997
998
999
int
1000
send_wol_host(HOST *hp) {
1001
  int i, j;
1002
  int rc;
1003
  char *msg;
1004
  size_t msg_size;
1005
  GATEWAY *gp = NULL;
1006
  SECRET *sp = NULL;
1007
  TARGET *tp = NULL;
1008
  struct timespec delay;
1009
  int copies;
1010
1011
1012
  if (!hp)
1013
    return -1;
1014
1015
  if (mac_invalid(&hp->mac)) {
1016
    errno = EINVAL;
1017
    return -1;
1018
  }
1019
1020
  if (f_gateway) {
1021
    gp = gw_lookup(f_gateway);
1022
    if (!gp) {
1023
      errno = EINVAL;
1024
      return -1;
1025
    }
1026
  } else {
1027
      gp = hp->via;
1028
  }
1029
  if (!gp)
1030
    gp = default_gw;
1031
  hp->via = gp;
1032
1033
1034
  if (f_copies) {
1035
    if (host_add_copies(hp, f_copies) < 0) {
1036
      errno = EINVAL;
1037
      return -1;
1038
    }
1039
  }
1040
  copies = hp->copies;
1041
  if (!copies && hp->via)
1042
    copies = hp->via->copies;
1043
  if (!copies)
1044
    copies = 1;
1045
1046
  if (f_delay) {
1047
    if (host_add_delay(hp, f_delay) < 0) {
1048
      errno = EINVAL;
1049
      return -1;
1050
    }
1051
  }
1052
  delay = hp->delay;
1053
  if (delay.tv_sec == 0 && delay.tv_nsec == 0 && hp->via)
1054
    delay = hp->via->delay;
1055
1056
  if (f_secret) {
1057
    if (host_add_secret(hp, f_secret) < 0) {
1058
      errno = EINVAL;
1059
      return -1;
1060
    }
1061
  }
1062
  sp = &hp->secret;
1063
  if (sp->size == 0 && hp->via)
1064
    sp = &hp->via->secret;
1065
  
1066
  msg_size = WOL_BODY_SIZE;
1067
  if (sp)
1068
    msg_size += sp->size;
1069
1070
  msg = malloc(msg_size);
1071
  if (!msg)
1072
    return -3;
1073
    
1074
  memset(msg, 0xFF, MAC_SIZE);
1075
1076
  for (i = 0; i < MAC_COPIES; i++)
1077
    memcpy(msg+HEADER_SIZE+i*MAC_SIZE, &hp->mac, MAC_SIZE);
1078
1079
  if (sp)
1080
    memcpy(msg+HEADER_SIZE+i*MAC_SIZE, sp->buf, sp->size);
1081
1082
  if (f_debug) {
1083
    fprintf(stderr, "[%s (%s)", hp->name, ether_ntoa(&hp->mac));
1084
    if (sp && sp->size)
1085
      fprintf(stderr, " with secret %s", secret2str(sp));
1086
    fprintf(stderr, "]\n");
1087
  }
1088
1089
  if (f_debug > 2) {
1090
    fprintf(stderr, "UDP Packet:\n");
1091
    buf_print(stderr, msg, msg_size);
1092
  }
1093
1094
  if (f_verbose && !f_debug) {
1095
    printf("%s (%s)", hp->name, ether_ntoa(&hp->mac));
1096
    fflush(stdout);
1097
  }
1098
1099
  for (tp = gp->targets; tp; tp = tp->next) {
1100
    struct addrinfo *aip = tp->aip;
1101
1102
    if (!aip)
1103
      continue;
1104
1105
    for (j = 0; j < copies; j++) {
1106
      if (j > 0 && (delay.tv_sec || delay.tv_nsec)) {
1107
	/* Inter-packet delay */
1108
	struct timespec t_delay = delay;
1109
	
1110
	if (f_debug)
1111
	  fprintf(stderr, "(Sleeping %s)\n", timespec2str(&delay));
1112
	
1113
	while ((rc = nanosleep(&t_delay, &t_delay)) < 0 && errno == EINTR) {
1114
	  if (f_debug)
1115
	    fprintf(stderr, "(Sleeping %s more)\n", timespec2str(&delay));
1116
	}
1117
1118
	if (rc < 0) {
1119
	  free(msg);
1120
	  return -1;
1121
	}
1122
      }
1123
      
1124
      if (f_debug) {
1125
	char *dest = target2str(tp);
1126
1127
	fprintf(stderr, "Sending packet %u/%u via %s\n", j+1, copies, dest ? dest : "???");
1128
	if (dest)
1129
	  free(dest);
1130
      }
1131
1132
      if (!f_no) {
1133
	while ((rc = sendto(tp->fd, msg, msg_size, 0, aip->ai_addr, aip->ai_addrlen)) < 0 && errno == EINTR)
1134
	  ;
1135
	
1136
	if (rc < 0) {
1137
	  free(msg);
1138
	  return -1;
1139
	}
1140
      }
1141
1142
      if (f_verbose && !f_debug) {
1143
	putc('.', stdout);
1144
	fflush(stdout);
1145
      }
1146
    }
1147
1148
    if (f_verbose && !f_debug)
1149
      puts(" Done");
1150
  }
1151
  
1152
  free(msg);
1153
  return 0;
1154
}
1155
1156
1157
int
1158
send_wol(const char *name) {
1159
  HOSTGROUP *hgp;
1160
  HOST *hp;
1161
  int rc, i;
1162
1163
  
1164
  if ((hgp = group_lookup(name)) != NULL) {
1165
    for (i = 0; i < hgp->hc; i++) {
1166
      if (i > 0 && (hgp->delay.tv_sec || hgp->delay.tv_nsec)) {
1167
	/* Inter-host delay */
1168
	struct timespec delay = hgp->delay;
1169
	
1170
	if (f_debug)
1171
	  fprintf(stderr, "(Sleeping %s)\n", timespec2str(&delay));
1172
	
1173
	while ((rc = nanosleep(&delay, &delay)) < 0 && errno == EINTR) {
1174
	  if (f_debug)
1175
	    fprintf(stderr, "(Sleeping %s more)\n", timespec2str(&delay));
1176
	}
1177
	
1178
	if (rc < 0)
1179
	  return -1;
1180
      }
1181
1182
      rc = send_wol_host(hgp->hv[i]);
1183
      if (rc) 
1184
	return rc;
1185
    }
1186
    return 0;
1187
  }
1188
  
1189
  hp = host_lookup(name);
1190
  if (!hp) {
1191
    hp = host_create(name);
1192
    if (!hp)
1193
      return -1;
1194
    
1195
    if (host_add_mac(hp, name) < 0)
1196
      return -1;
1197
  }
1198
1199
  return send_wol_host(hp);
1200
}
1201
1202
void
1203
header(FILE *fp) {
1204
  fprintf(fp, "[pwol %s (%s %s) - (c) Peter Eriksson <pen@lysator.liu.se>]\n",
1205
	  version, __DATE__, __TIME__);
1206
}
1207
1208
1209
void
1210
trim(char *buf) {
1211
  char *cp;
1212
1213
1214
  /* Remove comments */
1215
  cp = strchr(buf, ';');
1216
  if (cp)
1217
    *cp = '\0';
1218
  cp = strchr(buf, '#');
1219
  if (cp)
1220
    *cp = '\0';
1221
1222
  for (cp = buf; *cp && isspace(*cp); ++cp)
1223
    ;
1224
1225
  if (cp > buf)
1226
    strcpy(buf, cp);
1227
1228
  for (cp = buf+strlen(buf); cp > buf && isspace(cp[-1]); --cp)
1229
    ;
1230
  *cp = '\0';
1231
}
1232
1233
1234
int
1235
parse_config(const char *path) {
1236
  char buf[2048], *bptr, *cptr;
1237
  FILE *fp;
1238
  int line = 0;
1239
  int len, rc = -1;
1240
1241
  GATEWAY *gp = NULL;
1242
  GATEWAY *group_gp = NULL;
1243
  HOST *hp = NULL;
1244
  HOSTGROUP *hgp = NULL;
1245
1246
1247
  gp = gw_lookup("default");
1248
  gw_add_address(gp, DEFAULT_ADDRESS);
1249
  gw_add_port(gp, DEFAULT_PORT);
1250
1251
  if (f_debug > 1)
1252
    fprintf(stderr, "[Parsing config: %s]\n", path);
1253
1254
  fp = fopen(path, "r");
1255
  if (!fp)
1256
    return -1;
1257
1258
  while (fgets(buf, sizeof(buf), fp)) {
1259
    char *key, *val;
1260
1261
    ++line;
1262
1263
    trim(buf);
1264
1265
    if (!*buf)
1266
      continue;
1267
1268
    bptr = buf;
1269
    hp = NULL;
1270
1271
    while ((key = strtok_r(bptr, " \t", &cptr)) != NULL) {
1272
      bptr = NULL;
1273
      val = strtok_r(bptr, " \t", &cptr);
1274
1275
      if (f_debug > 1) 
1276
	fprintf(stderr, "Got: %s %s\n", key, val ? val : "");
1277
1278
      if (key[0] == '[' && key[len = strlen(key)-1] == ']') {
1279
	key[len] = '\0';
1280
	
1281
	if (f_debug > 2)
1282
	  fprintf(stderr, "[Switching hostgroup to %s]\n", key+1);
1283
	
1284
	hgp = group_create(key+1);
1285
	if (!hgp) {
1286
	  fprintf(stderr, "%s: %s#%u: %s: Invalid hostgroup\n", argv0, path, line, key+1);
1287
	  exit(1);
1288
	}
1289
	
1290
	/* Try to lookup gateway with same name as hostgroup */
1291
	group_gp = gw_lookup(key+1);
1292
	continue;
1293
      }
1294
1295
      rc = 0;
1296
      if (strcmp(key, "host") == 0) {
1297
	hp = host_create(val);
1298
	if (!hp) {
1299
	  fprintf(stderr, "%s: %s#%u: %s: Invalid host name\n",
1300
		  argv0, path, line, val);
1301
	  exit(1);
1302
	}
1303
1304
	if (hp->via == NULL && group_gp)
1305
	  hp->via = group_gp;
1306
1307
	if (hgp)
1308
	  group_add_host(hgp, hp);
1309
1310
	if (all_group)
1311
	  group_add_host(all_group, hp);
1312
1313
      } else if (strcmp(key, "gateway") == 0) {
1314
	if (hgp) {
1315
	  fprintf(stderr, "%s: %s#%u: Can not define gateways in groups\n",
1316
		  argv0, path, line);
1317
	  exit(1);
1318
	}
1319
	gp = gw_create(val);
1320
	if (!gp) {
1321
	  fprintf(stderr, "%s: %s#%u: %s: Invalid gateway name\n",
1322
		  argv0, path, line, val);
1323
	  exit(1);
1324
	}
1325
	hp = NULL;
1326
1327
      } else if (strcmp(key, "name") == 0) {
1328
	if (hgp && !hp)
1329
	  goto InvalidOpt;
1330
	if (hp)
1331
	  rc = host_add_name(hp, val);
1332
	else
1333
	  rc = gw_add_name(gp, val);
1334
      } else if (strcmp(key, "mac") == 0) {
1335
	if (hp)
1336
	  rc = host_add_mac(hp, val);
1337
	else
1338
	  goto InvalidOpt;
1339
      } else if (strcmp(key, "via") == 0) {
1340
	if (hp) {
1341
	  rc = host_add_via(hp, val);
1342
	}
1343
	else
1344
	  goto InvalidOpt;
1345
      }	else if (strcmp(key, "copies") == 0) {
1346
	if (hgp && !hp)
1347
	  goto InvalidOpt;
1348
	if (hp)
1349
	  rc = host_add_copies(hp, val);
1350
	else
1351
	  rc = gw_add_copies(gp, val);
1352
      } else if (strcmp(key, "secret") == 0) {
1353
	if (hgp && !hp)
1354
	  goto InvalidOpt;
1355
	if (hp)
1356
	  rc = host_add_secret(hp, val);
1357
	else
1358
	  rc = gw_add_secret(gp, val);
1359
      } else if (strcmp(key, "delay") == 0) {
1360
	if (hgp && !hp)
1361
	  rc = group_add_delay(hgp, val);
1362
	else if (hp)
1363
	  rc = host_add_delay(hp, val);
1364
	else
1365
	  rc = gw_add_delay(gp, val);
1366
      } else if (strcmp(key, "address") == 0) {
1367
	if (hp)
1368
	  goto InvalidOpt;
1369
	rc = gw_add_address(gp, val);
1370
      } else if (strcmp(key, "port") == 0) {
1371
	if (hp)
1372
	  goto InvalidOpt;
1373
	rc = gw_add_port(gp, val);
1374
      } else {
1375
      InvalidOpt:
1376
	fprintf(stderr, "%s: %s#%u: %s: Invalid option\n", argv0, path, line, key);
1377
	exit(1);
1378
      }
1379
1380
      if (rc < 0) {
1381
	fprintf(stderr, "%s: %s#%u: %s: Invalid value for %s (rc=%d)\n", argv0, path, line, val, key, rc);
1382
	exit(1);
1383
      }
1384
    }
1385
  }
1386
  
1387
  fclose(fp);
1388
  return 0;
1389
}
1390
1391
1392
void
1393
export_all(void) {
1394
  GATEWAY *gp;
1395
  HOST *hp;
1396
  HOSTGROUP *hgp;
1397
  int n;
1398
1399
1400
  if (!f_verbose) {
1401
    puts("; pwol configuration");
1402
    putchar('\n');
1403
    puts("; Gateways:");
1404
  }
1405
  for (gp = gateways; gp; gp = gp->next) {
1406
1407
    if (!gp->name)
1408
      continue; /* Skip over anonymous gateways */
1409
1410
    gw_print(gp);
1411
  }
1412
1413
  putchar('\n');
1414
  if (!f_verbose) {
1415
    puts("; Hosts:");
1416
  }
1417
  for (hp = hosts; hp; hp = hp->next) {
1418
    host_print(hp);
1419
  }
1420
1421
  putchar('\n');
1422
  if (!f_verbose) {
1423
    puts("; Groups:");
1424
  }
1425
  n = 0;
1426
  for (hgp = hostgroups; hgp; hgp = hgp->next) {
1427
    if (!f_verbose && strcmp(hgp->name, "all") == 0)
1428
      continue;
1429
    
1430
    if (hgp->hc == 0)
1431
      continue;
1432
1433
    if (n++ > 0 && !f_verbose)
1434
      putchar('\n');
1435
    group_print(hgp);
1436
  }
1437
}
1438
1439
1440
int daemon_run(GATEWAY *gp) {
1441
  TARGET *tp;
1442
  struct addrinfo *aip;
1443
  int n, i;
1444
  struct pollfd *pfdv;
1445
  struct ether_addr *ep;
1446
  HOST *hp;
1447
1448
1449
  n = 0;
1450
  for (tp = gp->targets; tp; tp = tp->next)
1451
    ++n;
1452
1453
  if (n == 0) {
1454
    errno = ENOENT;
1455
    if (f_debug)
1456
      fprintf(stderr, "*** daemon_run: No listening ports\n");
1457
    return -1;
1458
  }
1459
1460
  pfdv = malloc(n * sizeof(struct pollfd *));
1461
  if (!pfdv)
1462
    return -1;
1463
1464
  if (f_debug)
1465
    fprintf(stderr, "[Creating and binding daemon sockets]\n");
1466
1467
  i = 0;
1468
  for (tp = gp->targets; tp; tp = tp->next) {
1469
    aip = tp->aip;
1470
    tp->fd = socket((aip->ai_family == AF_INET ? PF_INET : PF_INET6), SOCK_DGRAM, IPPROTO_UDP);
1471
    if (tp->fd < 0)
1472
      return -1;
1473
1474
    if (bind(tp->fd, aip->ai_addr, aip->ai_addrlen) < 0)
1475
      return -2;
1476
1477
    pfdv[i++].fd = tp->fd;
1478
  }
1479
1480
  if (f_debug)
1481
    fprintf(stderr, "[Entering daemon main loop]\n");
1482
  
1483
  while (1) {
1484
    int i, rc;
1485
1486
1487
    for (i = 0; i < n; i++) {
1488
      pfdv[i].events = POLLIN;
1489
      pfdv[i].revents = 0;
1490
    }
1491
1492
    do {
1493
      if (f_debug)
1494
	fprintf(stderr, "(Waiting for messages on %u FDs)\n", n);
1495
      rc = poll(&pfdv[0], n, -1);
1496
    } while (rc < 0 && errno == EINTR);
1497
1498
    if (rc < 0)
1499
      return -1;
1500
1501
    for (i = 0; i < n; i++) {
1502
      ssize_t rlen;
1503
      struct sockaddr_storage peer;
1504
      socklen_t peer_len;
1505
      unsigned char buf[2048];
1506
      size_t secret_size;
1507
1508
1509
      if (pfdv[i].revents & POLLIN) {
1510
	if (f_debug)
1511
	  fprintf(stderr, "[Data available on FD #%u]\n", pfdv[i].fd);
1512
1513
	peer_len = sizeof(peer);
1514
	while ((rlen = recvfrom(pfdv[i].fd, buf, sizeof(buf), 0, (struct sockaddr *) &peer, &peer_len)) < 0 && errno == EINTR)
1515
	  ;
1516
	
1517
	if (rlen < 0)
1518
	  return -1;
1519
1520
	if (f_debug)
1521
	  fprintf(stderr, "[Message on FD #%u received from %s]\n", pfdv[i].fd, sockaddr2str((struct sockaddr *) &peer, peer_len));
1522
1523
	if (f_debug)
1524
	  buf_print(stderr, buf, rlen);
1525
1526
	if (rlen < WOL_BODY_SIZE) {
1527
	  if (f_debug)
1528
	    fprintf(stderr, "*** Invalid WoL message (too short: %d bytes)\n", (int) rlen);
1529
	  continue;
1530
	}
1531
1532
	for (i = 0; i < HEADER_SIZE && buf[i] == 0xFF; i++)
1533
	  ;
1534
	if (i < HEADER_SIZE) {
1535
	  if (f_debug)
1536
	    fprintf(stderr, "*** Invalid WoL message (invalid header)\n");
1537
	  continue;
1538
	}
1539
1540
	for (i = 1; i < MAC_COPIES && memcmp(buf+HEADER_SIZE, buf+HEADER_SIZE+i*MAC_SIZE, MAC_SIZE) == 0; i++)
1541
	  ;
1542
	if (i < MAC_COPIES) {
1543
	  if (f_debug)
1544
	    fprintf(stderr, "*** Invalid WoL message (invalid MAC content copies)\n");
1545
	  continue;
1546
	}
1547
1548
	secret_size = rlen-WOL_BODY_SIZE;
1549
	if (secret_size > 0) {
1550
	  SECRET secret;
1551
1552
	  secret.size = secret_size;
1553
	  memcpy(secret.buf, buf+WOL_BODY_SIZE, secret_size);
1554
	  
1555
	  if (f_debug)
1556
	    fprintf(stderr, "*** Received secret: %s\n", secret2str(&secret));
1557
	  
1558
	  if (secret_compare(&gp->secret, &secret) != 0) {
1559
	    if (f_debug)
1560
	      fprintf(stderr, "*** Invalid received secret: %s\n", secret2str(&secret));
1561
	    continue;
1562
	  }
1563
	}
1564
1565
	ep = (struct ether_addr *) (buf+HEADER_SIZE);
1566
	for (hp = hosts; hp && memcmp(ep, &hp->mac, MAC_SIZE) != 0; hp = hp->next)
1567
	  ;
1568
1569
	if (!hp) {
1570
	  if (f_debug)
1571
	    fprintf(stderr, "*** Unknown MAC (no such host): %s\n", ether_ntoa(ep));
1572
	  continue;
1573
	}
1574
1575
	printf("Got WoL for host: %s (%s)\n", hp->name, ether_ntoa(ep));
1576
	if (send_wol_host(hp) < 0) {
1577
	  if (f_debug)
1578
	    fprintf(stderr, "*** Error send WoL message to %s (%s)\n", hp->name, ether_ntoa(ep));
1579
	}
1580
      }
1581
    }
1582
  }
1583
}
1584
1585
1586
void
1587
become_daemon(void) {
1588
 
1589
  pid_t pid;
1590
  int i, fd;
1591
1592
1593
  pid = fork();
1594
  if (pid < 0) {
1595
    syslog(LOG_ERR, "fork() failed: %m");
1596
    exit(EXIT_FAILURE);
1597
  }
1598
  else if (pid > 0)
1599
    exit(EXIT_SUCCESS);
1600
1601
  signal(SIGTTOU, SIG_IGN);
1602
  signal(SIGTTIN, SIG_IGN);
1603
#ifdef SIGTTSP
1604
  signal(SIGTTSP, SIG_IGN);
1605
#endif
1606
1607
#ifdef HAVE_SETSID
1608
  setsid();
1609
#endif
1610
1611
  if (chdir("/") < 0)
1612
    exit(EXIT_FAILURE);
1613
  
1614
  umask(0);
1615
1616
  fd = open("/dev/null", O_RDWR);
1617
  if (fd < 0)
1618
    exit(EXIT_FAILURE);
1619
  
1620
  for (i = 0; i < 3; i++)
1621
    close(i);
1622
1623
  dup2(fd, 0);
1624
  dup2(fd, 1);
1625
  dup2(fd, 2);
1626
}
1627
1628
1629
int
1630
main(int argc,
1631
     char *argv[])
1632
{
1633
  char *home = getenv("HOME");
1634
  char *home_config = strdupcat(home, "/", DEFAULT_USER_CONFIG, NULL);
1635
  char *cp;
1636
  int i, j;
1637
  GATEWAY *gp, *proxy_gp = NULL;
1638
  TARGET *tp;
1639
  HOSTGROUP *hgp;
1640
1641
1642
  argv0 = argv[0];
1643
1644
  /* Create default */
1645
  
1646
  default_gw = gw_create("default");
1647
  if (!default_gw) {
1648
    fprintf(stderr, "%s: Internal error #1458934\n", argv0);
1649
    exit(1);
1650
  }
1651
  gw_add_address(default_gw, DEFAULT_ADDRESS);
1652
  gw_add_port(default_gw, DEFAULT_PORT);
1653
  gw_add_copies(default_gw, DEFAULT_COPIES);
1654
  gw_add_delay(default_gw, DEFAULT_DELAY);
1655
  gw_add_secret(default_gw, DEFAULT_SECRET);
1656
1657
  all_group = group_create("all");
1658
1659
  parse_config(DEFAULT_GLOBAL_CONFIG);
1660
  if (home_config) {
1661
    parse_config(home_config);
1662
    free(home_config);
1663
  }
1664
  
1665
  for (i = 1; i < argc && argv[i][0] == '-'; i++) {
1666
    for (j = 1; argv[i][j]; j++)
1667
      switch (argv[i][j]) {
1668
      case 'V':
1669
	header(stdout);
1670
	exit(0);
1671
1672
      case 'v':
1673
	++f_verbose;
1674
	break;
1675
		
1676
      case 'd':
1677
	++f_debug;
1678
	break;
1679
		
1680
      case 'n':
1681
	f_no = !f_no;
1682
	break;
1683
		
1684
      case 'e':
1685
	++f_export;
1686
	break;
1687
		
1688
      case 'i':
1689
	++f_ignore;
1690
	break;
1691
		
1692
      case 'D':
1693
	++f_daemon;
1694
	break;
1695
1696
      case 'F':
1697
	++f_foreground;
1698
	break;
1699
1700
      case 'a':
1701
	cp = argv[i]+j+1;
1702
	if (!*cp && i+1 < argc) {
1703
	  cp = argv[++i];
1704
	}
1705
	if (cp)
1706
	  f_address = strdup(cp);
1707
	goto NextArg;
1708
1709
      case 'g':
1710
	cp = argv[i]+j+1;
1711
	if (!*cp && i+1 < argc) {
1712
	  cp = argv[++i];
1713
	}
1714
	if (cp)
1715
	  f_gateway = strdup(cp);
1716
	goto NextArg;
1717
1718
      case 'p':
1719
	cp = argv[i]+j+1;
1720
	if (!*cp && i+1 < argc) {
1721
	  cp = argv[++i];
1722
	}
1723
	if (cp)
1724
	  f_port = strdup(cp);
1725
	goto NextArg;
1726
1727
      case 't':
1728
	cp = argv[i]+j+1;
1729
	if (!*cp && i+1 < argc) {
1730
	  cp = argv[++i];
1731
	}
1732
	if (cp)
1733
	  f_delay = strdup(cp);
1734
	goto NextArg;
1735
1736
      case 'T':
1737
	cp = argv[i]+j+1;
1738
	if (!*cp && i+1 < argc) {
1739
	  cp = argv[++i];
1740
	}
1741
	if (cp)
1742
	  f_host_delay = strdup(cp);
1743
	goto NextArg;
1744
1745
      case 'c':
1746
	cp = argv[i]+j+1;
1747
	if (!*cp && i+1 < argc) {
1748
	  cp = argv[++i];
1749
	}
1750
	if (cp)
1751
	  f_copies = strdup(cp);
1752
	goto NextArg;
1753
		
1754
      case 's':
1755
	cp = argv[i]+j+1;
1756
	if (!*cp && i+1 < argc) {
1757
	  cp = argv[++i];
1758
	}
1759
	if (cp)
1760
	  f_secret = strdup(cp);
1761
	goto NextArg;
1762
1763
      case 'f':
1764
	cp = argv[i]+j+1;
1765
	if (!*cp && i+1 < argc) {
1766
	  cp = argv[++i];
1767
	}
1768
	if (cp)
1769
	  parse_config(cp);
1770
	goto NextArg;
1771
1772
      case 'A':
1773
	cp = argv[i]+j+1;
1774
	if (!*cp && i+1 < argc) {
1775
	  cp = argv[++i];
1776
	}
1777
	if (cp) {
1778
	  f_proxy_address = strdup(cp);
1779
	}
1780
	goto NextArg;
1781
1782
      case 'P':
1783
	cp = argv[i]+j+1;
1784
	if (!*cp && i+1 < argc) {
1785
	  cp = argv[++i];
1786
	}
1787
	if (cp) {
1788
	  if (!proxy_gp)
1789
	    proxy_gp = gw_create(NULL);
1790
	  gw_add_port(proxy_gp, cp);
1791
	  f_proxy_port = strdup(cp);
1792
	}
1793
	goto NextArg;
1794
1795
      case 'S':
1796
	cp = argv[i]+j+1;
1797
	if (!*cp && i+1 < argc) {
1798
	  cp = argv[++i];
1799
	}
1800
	if (cp)
1801
	  f_proxy_secret = strdup(cp);
1802
	goto NextArg;
1803
1804
1805
      case 'h':
1806
	printf("Usage: %s [<options>] [<host|group> [.. <host|group>]]\n",
1807
	       argv[0]);
1808
	puts("\nOptions:");
1809
	puts("  -h           Display this information");
1810
	puts("  -v           Increase verbosity");
1811
	puts("  -d           Increase debug level");
1812
	puts("  -i           Ignore errors");
1813
	puts("  -n           Toggle \"no\" send mode");
1814
	puts("  -e           Export configuration");
1815
	puts("  -f <path>    Configuration file");
1816
	puts("");
1817
	puts("  -g <name>    Destination gateway");
1818
	puts("  -a <addr>    Destination address");
1819
	puts("  -p <port>    Destination port");
1820
	puts("  -t <time>    Inter-packet delay");
1821
	puts("  -T <time>    Inter-host delay");
1822
	puts("  -c <count>   Packet copies to send");
1823
	puts("  -s <secret>  Force WoL secret");
1824
	puts("");
1825
	puts("  -D           Run as proxy daemon");
1826
	puts("  -F           Run proxy daemon in foreground");
1827
	puts("  -A <addr>    Proxy daemon listen address");
1828
	puts("  -P <port>    Proxy daemon listen port");
1829
	puts("  -S <secret>  Proxy daemon secret");
1830
	puts("");
1831
	puts("If no hosts/groups specified on the command line pwol will read them from stdin");
1832
	exit(0);
1833
1834
      case '-':
1835
	++i;
1836
	goto EndArg;
1837
1838
      default:
1839
	fprintf(stderr, "%s: -%c: Invalid switch\n",
1840
		argv[0], argv[i][j]);
1841
	exit(1);
1842
      }
1843
  NextArg:;
1844
  }
1845
 EndArg:
1846
1847
  if (f_verbose)
1848
    header(stdout);
1849
1850
  if (f_daemon) {
1851
    proxy_gp = gw_create(NULL);
1852
    gw_add_address(proxy_gp, f_proxy_address ? f_proxy_address : DEFAULT_PROXY_ADDRESS);
1853
    gw_add_port(proxy_gp, f_proxy_port ? f_proxy_port : DEFAULT_PROXY_PORT);
1854
    if (f_proxy_secret)
1855
      gw_add_secret(proxy_gp, f_proxy_secret);
1856
  }
1857
1858
  /* Open sockets for sending packets via the gateway targets */
1859
  for (gp = gateways; gp; gp = gp->next) {
1860
    struct addrinfo hints, *aip;
1861
    int rc;
1862
    char *addr, *port;
1863
1864
    memset(&hints, 0, sizeof(hints));
1865
    hints.ai_socktype = SOCK_DGRAM;
1866
    
1867
    aip = NULL;
1868
1869
    addr = f_address;
1870
    if (!addr)
1871
      addr = gp->address;
1872
    if (!addr)
1873
      addr = DEFAULT_ADDRESS;
1874
1875
    port = f_port;
1876
    if (!port)
1877
      port = gp->port;
1878
    if (!port)
1879
      port = DEFAULT_PORT;
1880
1881
    if ((rc = getaddrinfo(addr, port, &hints, &aip)) != 0) {
1882
      fprintf(stderr, "%s: %s port %s: Invalid target\n", argv[0], addr, port);
1883
      exit(1);
1884
    }
1885
1886
    for (; aip; aip = aip->ai_next) {
1887
      int one = 1;
1888
1889
      tp = target_add(&gp->targets, aip);
1890
      if (!tp) {
1891
	fprintf(stderr, "%s: %s port %s: Internal Error #3345921\n", argv[0], gp->address, gp->port);
1892
	exit(1);
1893
      }
1894
1895
      tp->fd = socket((aip->ai_family == AF_INET ? PF_INET : PF_INET6), SOCK_DGRAM, IPPROTO_UDP);
1896
      if (tp->fd < 0) {
1897
	fprintf(stderr, "%s: %s port %s: socket: %s\n", argv[0], gp->address, gp->port, strerror(errno));
1898
	exit(1);
1899
      }
1900
#ifdef SO_BROADCAST
1901
      (void) setsockopt(tp->fd, SOL_SOCKET, SO_BROADCAST, &one, sizeof(one));
1902
#endif
1903
    }
1904
  }
1905
  
1906
  if (f_host_delay) {
1907
    for (hgp = hostgroups; hgp; hgp = hgp->next)
1908
      group_add_delay(hgp, f_host_delay);
1909
  }
1910
1911
  if (f_export) {
1912
    export_all();
1913
    exit(0);
1914
  }
1915
1916
  if (f_daemon) {
1917
    if (!f_foreground)
1918
      become_daemon();
1919
1920
    if (daemon_run(proxy_gp) < 0) {
1921
      fprintf(stderr, "%s: daemon_run: %s\n", argv[0], strerror(errno));
1922
      exit(1);
1923
    }
1924
      
1925
    exit(0);
1926
  }
1927
1928
  if (i < argc) {
1929
    for (;i < argc; i++) {
1930
      if (send_wol(argv[i]) < 0 && !f_ignore) {
1931
	fprintf(stderr, "%s: %s: Sending WoL packet failed: %s\n",
1932
		argv[0], argv[i], strerror(errno));
1933
	exit(1);
1934
      }
1935
    }
1936
  } else {
1937
    char lbuf[80], *lp, *lptr, *cp;
1938
1939
	
1940
    if (isatty(fileno(stdin))) {
1941
      fputs("[Enter hosts or groups to send WoL packet to, end with EOF]\n", stderr);
1942
      fflush(stderr);
1943
    }
1944
1945
    while (fgets(lbuf, sizeof(lbuf), stdin)) {
1946
      trim(lbuf);
1947
      if (!*lbuf)
1948
	continue;
1949
1950
      lp = lbuf;
1951
      while ((cp = strtok_r(lp, " \t", &lptr)) != NULL) {
1952
	lp = NULL;
1953
1954
	if (send_wol(cp) < 0) {
1955
	  fprintf(stderr, "%s: %s: Sending WoL packet failed: %s\n",
1956
		  argv[0], cp, strerror(errno));
1957
	  
1958
	  if (!f_ignore)
1959
	    exit(1);
1960
	}
1961
      }
1962
    }
1963
  }
1964
1965
  exit(0);
1966
}
(-)sysutils/pwol/work/pwol-1.5/pwol.conf (+38 lines)
Line 0 Link Here
1
; pwol.conf
2
3
;;; Default settings:
4
; copies 1
5
; delay 0.0s
6
; port 7
7
8
;;; Sample configuration:
9
; gateway A 
10
;  address 10.0.0.255
11
;  port 1
12
13
; gateway B address b.wol.example.com
14
; gateway c.wol.example.com secret 1.2.3.4
15
; gateway D address 2001:0:1::1
16
17
; host test-1 mac fc:3f:db:04:1e:01 via A secret 1:2:3:4:5:6
18
; host test-2 
19
;   mac fc:3f:db:04:1e:02 
20
;   secret hello7
21
22
; [B]
23
24
;:; Inter-host delay
25
; delay 1s 
26
27
; host test-3 mac b8:ac:6f:1f:68:03 delay 100ns
28
; host test-4    mac 00:1b:78:9b:c6:04 secret 1.2.3.4
29
; host 00:11:22:33:44:55
30
; host 00:11:22:33:44:ff name test-6
31
32
;;; Only works if hosts are defined in /etc/ethers
33
; host test-7   mac test-7.example.com  copies 2 delay 1s
34
; host test-8.example.com
35
36
; [MyGroup]
37
; host test-3
38
; host test-6
(-)sysutils/pwol/work/pwol-1.5/pwol.conf.5 (+134 lines)
Line 0 Link Here
1
.TH "PWOL.CONF" "5" "14 Jun 2020" "1.5" "pwol.conf man page"
2
3
.SH "NAME"
4
.TP
5
.BR pwol.conf "\- Global configuration file for pwol"
6
.TP
7
.BR ~/.pwolrc "\- Per-user configuration file for pwol"
8
9
.SH "DESCRIPTION"
10
.B pwol is a command line utility to send Wake-On-LAN (WoL) packets to one or many hosts, either 
11
locally or via routers, in order to wake them up from sleep mode. 
12
.PP
13
It can also be used as a WoL proxy daemon listening to incoming WoL packets (possibly authenticated) 
14
and then forwarding requests to one or many other targets.
15
.PP
16
The configuration file(s) for
17
.B pwol
18
define global options, gateways (that forwards WoL packets), hosts (destinations
19
for WoL packets) and host groups (preferably in that order).
20
.PP
21
For gateways and hosts can override the global options plus use a few local ones
22
defined below. The gateway and host options may be specified on the same line or
23
on following lines (until the next gateway/host or host group definitions are
24
started).
25
.PP
26
Lines starting with ";" or "#" and empty lines are ignored.
27
28
.SH "GLOBAL OPTIONS"
29
.TP
30
.BI copies " number"
31
Set the number of WoL packets to send per host
32
.TP
33
.BI delay " time"
34
Set the inter-packet delay.
35
.TP
36
.BI port " number"
37
Set the destination UDP port to send WoL packets to.
38
.TP
39
.BI secret " ipv4|mac|text"
40
Set the secret code to include in WoL packets
41
42
.TP
43
.BI gateway " name [sub-options]"
44
Start a gateway definition
45
.TP
46
.BI host " name|mac [sub-options]"
47
Start a host definition.
48
.TP
49
.BI "[" name "]"
50
Start a host group section.
51
52
.SH "GATEWAY OPTIONS"
53
.TP
54
.BI address " ipv4|ipv6|hostname"
55
Set the ip address of the gateway. If not specified will try to use the gateway name
56
as a host name to lookup up the address.
57
58
.SH "HOST OPTIONS"
59
.TP
60
.BI mac " mac-address|hostname"
61
Set the mac address of the host. If not specified will try to use the host name 
62
to look up the mac address from /etc/ethers (if the system supports such lookups).
63
.TP
64
.BI name " text"
65
Override the name of the host (if mac is specified as
66
.BR name ")."
67
.TP
68
.BI via " gateway-name"
69
Send packets to this host via the specified gateway.
70
71
.SH "HOST GROUPS"
72
Host groups are specified by a group name enclosed in "[" and "]" and then
73
followed by a list of normal host declarations. As a short cut if a host is to
74
be defined in multiple host groups then you do not need to re-specify all host
75
sub-options and can just reference it via
76
.BI host " name."
77
Another shortcut is that if a group name equals the name of a gateway then that
78
is used for each host in the group. 
79
80
.SH "EXAMPLE"
81
.nf
82
; pwol.conf
83
84
;; Global settings:
85
copies 1
86
delay 0.0s
87
port 7
88
89
90
;; Some gateways:
91
gateway A 
92
 address 10.0.0.255
93
 port 1
94
95
gateway B address b.wol.example.com
96
gateway c.wol.example.com secret 1.2.3.4
97
gateway D address 2001:0:1::1
98
99
100
;; Some hosts:
101
host test-1 mac fc:3f:db:04:1e:01 via A secret 1:2:3:4:5:6
102
host test-2 
103
  mac fc:3f:db:04:1e:02 
104
   secret hello7
105
106
107
;; Host group using gateway "B"
108
[B]
109
:; These hosts need a longer inter-host delay
110
delay 1s 
111
112
host test-3 mac b8:ac:6f:1f:68:03 delay 100ns
113
host test-4    mac 00:1b:78:9b:c6:04 secret 1.2.3.4
114
host 00:11:22:33:44:55
115
host 00:11:22:33:44:ff name test-6
116
117
;; Only works if hosts are defined in /etc/ethers
118
host test-7   mac test-7.example.com  copies 2 delay 1s
119
host test-8.example.com
120
121
122
;; Standalone host group:
123
[MyGroup]
124
host test-3
125
host test-6
126
.fi
127
128
.SH "SEE ALSO"
129
.BR pwol (1),
130
.BR ping (8),
131
.B "https://github.com/ptrrkssn/pwol"
132
133
.SH "AUTHOR"
134
pwol was written by Peter Eriksson <pen@lysator.liu.se>.
(-)sysutils/pwol/work/pwol-1.5/pwol.conf.5.in (+134 lines)
Line 0 Link Here
1
.TH "PWOL.CONF" "5" "14 Jun 2020" "@PACKAGE_VERSION@" "pwol.conf man page"
2
3
.SH "NAME"
4
.TP
5
.BR pwol.conf "\- Global configuration file for pwol"
6
.TP
7
.BR ~/.pwolrc "\- Per-user configuration file for pwol"
8
9
.SH "DESCRIPTION"
10
.B pwol is a command line utility to send Wake-On-LAN (WoL) packets to one or many hosts, either 
11
locally or via routers, in order to wake them up from sleep mode. 
12
.PP
13
It can also be used as a WoL proxy daemon listening to incoming WoL packets (possibly authenticated) 
14
and then forwarding requests to one or many other targets.
15
.PP
16
The configuration file(s) for
17
.B pwol
18
define global options, gateways (that forwards WoL packets), hosts (destinations
19
for WoL packets) and host groups (preferably in that order).
20
.PP
21
For gateways and hosts can override the global options plus use a few local ones
22
defined below. The gateway and host options may be specified on the same line or
23
on following lines (until the next gateway/host or host group definitions are
24
started).
25
.PP
26
Lines starting with ";" or "#" and empty lines are ignored.
27
28
.SH "GLOBAL OPTIONS"
29
.TP
30
.BI copies " number"
31
Set the number of WoL packets to send per host
32
.TP
33
.BI delay " time"
34
Set the inter-packet delay.
35
.TP
36
.BI port " number"
37
Set the destination UDP port to send WoL packets to.
38
.TP
39
.BI secret " ipv4|mac|text"
40
Set the secret code to include in WoL packets
41
42
.TP
43
.BI gateway " name [sub-options]"
44
Start a gateway definition
45
.TP
46
.BI host " name|mac [sub-options]"
47
Start a host definition.
48
.TP
49
.BI "[" name "]"
50
Start a host group section.
51
52
.SH "GATEWAY OPTIONS"
53
.TP
54
.BI address " ipv4|ipv6|hostname"
55
Set the ip address of the gateway. If not specified will try to use the gateway name
56
as a host name to lookup up the address.
57
58
.SH "HOST OPTIONS"
59
.TP
60
.BI mac " mac-address|hostname"
61
Set the mac address of the host. If not specified will try to use the host name 
62
to look up the mac address from /etc/ethers (if the system supports such lookups).
63
.TP
64
.BI name " text"
65
Override the name of the host (if mac is specified as
66
.BR name ")."
67
.TP
68
.BI via " gateway-name"
69
Send packets to this host via the specified gateway.
70
71
.SH "HOST GROUPS"
72
Host groups are specified by a group name enclosed in "[" and "]" and then
73
followed by a list of normal host declarations. As a short cut if a host is to
74
be defined in multiple host groups then you do not need to re-specify all host
75
sub-options and can just reference it via
76
.BI host " name."
77
Another shortcut is that if a group name equals the name of a gateway then that
78
is used for each host in the group. 
79
80
.SH "EXAMPLE"
81
.nf
82
; pwol.conf
83
84
;; Global settings:
85
copies 1
86
delay 0.0s
87
port 7
88
89
90
;; Some gateways:
91
gateway A 
92
 address 10.0.0.255
93
 port 1
94
95
gateway B address b.wol.example.com
96
gateway c.wol.example.com secret 1.2.3.4
97
gateway D address 2001:0:1::1
98
99
100
;; Some hosts:
101
host test-1 mac fc:3f:db:04:1e:01 via A secret 1:2:3:4:5:6
102
host test-2 
103
  mac fc:3f:db:04:1e:02 
104
   secret hello7
105
106
107
;; Host group using gateway "B"
108
[B]
109
:; These hosts need a longer inter-host delay
110
delay 1s 
111
112
host test-3 mac b8:ac:6f:1f:68:03 delay 100ns
113
host test-4    mac 00:1b:78:9b:c6:04 secret 1.2.3.4
114
host 00:11:22:33:44:55
115
host 00:11:22:33:44:ff name test-6
116
117
;; Only works if hosts are defined in /etc/ethers
118
host test-7   mac test-7.example.com  copies 2 delay 1s
119
host test-8.example.com
120
121
122
;; Standalone host group:
123
[MyGroup]
124
host test-3
125
host test-6
126
.fi
127
128
.SH "SEE ALSO"
129
.BR pwol (1),
130
.BR ping (8),
131
.B "https://github.com/ptrrkssn/pwol"
132
133
.SH "AUTHOR"
134
pwol was written by Peter Eriksson <pen@lysator.liu.se>.
(-)sysutils/pwol/work/pwol-1.5/README (+29 lines)
Line 0 Link Here
1
Peter's Wake-On-LAN utility
2
3
Author:   Peter Eriksson <pen@lysator.liu.se>
4
Website:  https://github.com/ptrrkssn/pwol
5
6
pwol is a command line utility to send Wake-On-LAN (WoL) packets to one or many hosts, either 
7
locally or via routers, in order to wake them up from sleep mode. 
8
9
It can also be used as a WoL proxy daemon listening to incoming WoL packets (possibly authenticated) 
10
and then forwarding requests to one or many other targets.
11
12
13
LICENSE 
14
15
BSD standard license. See the file LICENSE for details.
16
17
18
BUILD INSTRUCTIONS
19
20
Edit 'Makefile' and run 'make'. Build has been tested on Solaris 10, OmniOS, Linux (CentOS 6) and FreeBSD 11.
21
22
23
USAGE
24
25
pwol looks for a configuration file in two places by default, /etc/pwol.conf and 
26
$HOME/.pwolrc. Additional configuration files may be specified via the "-f" command 
27
line switch.
28
29
See the "pwol.conf" file for details.
(-)sysutils/pwol/work/stage/usr/local/etc/pwol.conf.sample (+38 lines)
Line 0 Link Here
1
; pwol.conf
2
3
;;; Default settings:
4
; copies 1
5
; delay 0.0s
6
; port 7
7
8
;;; Sample configuration:
9
; gateway A 
10
;  address 10.0.0.255
11
;  port 1
12
13
; gateway B address b.wol.example.com
14
; gateway c.wol.example.com secret 1.2.3.4
15
; gateway D address 2001:0:1::1
16
17
; host test-1 mac fc:3f:db:04:1e:01 via A secret 1:2:3:4:5:6
18
; host test-2 
19
;   mac fc:3f:db:04:1e:02 
20
;   secret hello7
21
22
; [B]
23
24
;:; Inter-host delay
25
; delay 1s 
26
27
; host test-3 mac b8:ac:6f:1f:68:03 delay 100ns
28
; host test-4    mac 00:1b:78:9b:c6:04 secret 1.2.3.4
29
; host 00:11:22:33:44:55
30
; host 00:11:22:33:44:ff name test-6
31
32
;;; Only works if hosts are defined in /etc/ethers
33
; host test-7   mac test-7.example.com  copies 2 delay 1s
34
; host test-8.example.com
35
36
; [MyGroup]
37
; host test-3
38
; host test-6
(-)sysutils/pwol/work/stage/usr/local/share/licenses/pwol-1.5/BSD3CLAUSE (+29 lines)
Line 0 Link Here
1
BSD 3-Clause License
2
3
Copyright (c) 2017, Peter Eriksson <pen@lysator.liu.se>
4
All rights reserved.
5
6
Redistribution and use in source and binary forms, with or without
7
modification, are permitted provided that the following conditions are met:
8
9
* Redistributions of source code must retain the above copyright notice, this
10
  list of conditions and the following disclaimer.
11
12
* Redistributions in binary form must reproduce the above copyright notice,
13
  this list of conditions and the following disclaimer in the documentation
14
  and/or other materials provided with the distribution.
15
16
* Neither the name of the copyright holder nor the names of its
17
  contributors may be used to endorse or promote products derived from
18
  this software without specific prior written permission.
19
20
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
(-)sysutils/pwol/work/stage/usr/local/share/licenses/pwol-1.5/catalog.mk (+5 lines)
Line 0 Link Here
1
_LICENSE=BSD3CLAUSE
2
_LICENSE_NAME=BSD 3-clause New or Revised License
3
_LICENSE_PERMS=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
4
_LICENSE_GROUPS=FSF OSI COPYFREE
5
_LICENSE_DISTFILES=ptrrkssn-pwol-v1.5_GH0.tar.gz
(-)sysutils/pwol/work/stage/usr/local/share/licenses/pwol-1.5/LICENSE (+1 lines)
Line 0 Link Here
1
This package has a single license: BSD3CLAUSE (BSD 3-clause New or Revised License).

Return to bug 247251