blob: 29224d0d74d8f6ba947c8b2516427749e825ec09 [file] [log] [blame]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for open_pdks 1.0.
4#
5# Report bugs to <github.com/RTimothyEdwards/open_pdks>.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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'\" &&
Tim Edwards665c3fd2021-05-02 20:20:27 -0400200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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
270$0: github.com/RTimothyEdwards/open_pdks about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='open_pdks'
582PACKAGE_TARNAME='open_pdks'
583PACKAGE_VERSION='1.0'
584PACKAGE_STRING='open_pdks 1.0'
585PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
586PACKAGE_URL=''
587
588ac_subst_vars='LTLIBOBJS
589LIBOBJS
Tim Edwards062fbb12021-11-26 15:44:59 -0500590OPENPDKS_TOP
Tim Edwards3c02c082021-11-26 13:48:33 -0500591ENABLED_TECHS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400592EF_STYLE
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400593SKY130_OSU_T18_PATH
594SKY130_OSU_T15_PATH
595SKY130_OSU_T12_PATH
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400596SKY130_SRAM_MACROS_PATH
Tim Edwards1168a8b2021-02-10 22:06:54 -0500597XSCHEM_SKY130_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500598SKY130_ML_XX_HD_PATH
Ahmed Ghazy32385482021-01-19 20:38:14 +0200599PATCH
Tim Edwards8292c902020-12-24 16:25:25 -0500600MAGIC
Tim Edwards1168a8b2021-02-10 22:06:54 -0500601XSCHEM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500602QFLOW_DISABLED
603OPENLANE_DISABLED
Tim Edwards367711e2021-01-27 10:35:12 -0500604IRSIM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500605NETGEN_DISABLED
606MAGIC_DISABLED
607KLAYOUT_DISABLED
Tim Edwards3c02c082021-11-26 13:48:33 -0500608ALL_TECHS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400609SKY130_SOURCE_PATH
Tim Edwards7fa92fd2022-01-19 11:13:51 -0500610SKY130_ENABLED_VARIANTS
Tim Edwards8292c902020-12-24 16:25:25 -0500611SKY130_LINK_TARGETS
Tim Edwards665c3fd2021-05-02 20:20:27 -0400612SED
Tim Edwards66e53e52021-01-24 21:21:36 -0500613pkgpyexecdir
614pyexecdir
615pkgpythondir
616pythondir
617PYTHON_PLATFORM
618PYTHON_EXEC_PREFIX
619PYTHON_PREFIX
620PYTHON_VERSION
621PYTHON
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200622target_alias
623host_alias
624build_alias
625LIBS
626ECHO_T
627ECHO_N
628ECHO_C
629DEFS
630mandir
631localedir
632libdir
633psdir
634pdfdir
635dvidir
636htmldir
637infodir
638docdir
639oldincludedir
640includedir
641localstatedir
642sharedstatedir
643sysconfdir
644datadir
645datarootdir
646libexecdir
647sbindir
648bindir
649program_transform_name
650prefix
651exec_prefix
652PACKAGE_URL
653PACKAGE_BUGREPORT
654PACKAGE_STRING
655PACKAGE_VERSION
656PACKAGE_TARNAME
657PACKAGE_NAME
658PATH_SEPARATOR
659SHELL'
660ac_subst_files=''
661ac_user_opts='
662enable_option_checking
Tim Edwards8292c902020-12-24 16:25:25 -0500663enable_sky130_pdk
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400664with_sky130_link_targets
Tim Edwards7fa92fd2022-01-19 11:13:51 -0500665with_sky130_variants
Tim Edwardsccaea722020-12-24 10:59:42 -0500666enable_klayout
667enable_magic
668enable_netgen
Tim Edwards367711e2021-01-27 10:35:12 -0500669enable_irsim
Tim Edwardsccaea722020-12-24 10:59:42 -0500670enable_openlane
671enable_qflow
Tim Edwards8292c902020-12-24 16:25:25 -0500672enable_xschem
Tim Edwards1168a8b2021-02-10 22:06:54 -0500673enable_alpha_sky130
674enable_xschem_sky130
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400675enable_sram_sky130
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400676enable_osu_t12_sky130
677enable_osu_t15_sky130
678enable_osu_t18_sky130
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400679with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200680'
681 ac_precious_vars='build_alias
682host_alias
683target_alias
684PYTHON'
685
686
687# Initialize some variables set by options.
688ac_init_help=
689ac_init_version=false
690ac_unrecognized_opts=
691ac_unrecognized_sep=
692# The variables have the same names as the options, with
693# dashes changed to underlines.
694cache_file=/dev/null
695exec_prefix=NONE
696no_create=
697no_recursion=
698prefix=NONE
699program_prefix=NONE
700program_suffix=NONE
701program_transform_name=s,x,x,
702silent=
703site=
704srcdir=
705verbose=
706x_includes=NONE
707x_libraries=NONE
708
709# Installation directory options.
710# These are left unexpanded so users can "make install exec_prefix=/foo"
711# and all the variables that are supposed to be based on exec_prefix
712# by default will actually change.
713# Use braces instead of parens because sh, perl, etc. also accept them.
714# (The list follows the same order as the GNU Coding Standards.)
715bindir='${exec_prefix}/bin'
716sbindir='${exec_prefix}/sbin'
717libexecdir='${exec_prefix}/libexec'
718datarootdir='${prefix}/share'
719datadir='${datarootdir}'
720sysconfdir='${prefix}/etc'
721sharedstatedir='${prefix}/com'
722localstatedir='${prefix}/var'
723includedir='${prefix}/include'
724oldincludedir='/usr/include'
725docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
726infodir='${datarootdir}/info'
727htmldir='${docdir}'
728dvidir='${docdir}'
729pdfdir='${docdir}'
730psdir='${docdir}'
731libdir='${exec_prefix}/lib'
732localedir='${datarootdir}/locale'
733mandir='${datarootdir}/man'
734
735ac_prev=
736ac_dashdash=
737for ac_option
738do
739 # If the previous option needs an argument, assign it.
740 if test -n "$ac_prev"; then
741 eval $ac_prev=\$ac_option
742 ac_prev=
743 continue
744 fi
745
746 case $ac_option in
747 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
748 *=) ac_optarg= ;;
749 *) ac_optarg=yes ;;
750 esac
751
752 # Accept the important Cygnus configure options, so we can diagnose typos.
753
754 case $ac_dashdash$ac_option in
755 --)
756 ac_dashdash=yes ;;
757
758 -bindir | --bindir | --bindi | --bind | --bin | --bi)
759 ac_prev=bindir ;;
760 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761 bindir=$ac_optarg ;;
762
763 -build | --build | --buil | --bui | --bu)
764 ac_prev=build_alias ;;
765 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766 build_alias=$ac_optarg ;;
767
768 -cache-file | --cache-file | --cache-fil | --cache-fi \
769 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770 ac_prev=cache_file ;;
771 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773 cache_file=$ac_optarg ;;
774
775 --config-cache | -C)
776 cache_file=config.cache ;;
777
778 -datadir | --datadir | --datadi | --datad)
779 ac_prev=datadir ;;
780 -datadir=* | --datadir=* | --datadi=* | --datad=*)
781 datadir=$ac_optarg ;;
782
783 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784 | --dataroo | --dataro | --datar)
785 ac_prev=datarootdir ;;
786 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788 datarootdir=$ac_optarg ;;
789
790 -disable-* | --disable-*)
791 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794 as_fn_error $? "invalid feature name: $ac_useropt"
795 ac_useropt_orig=$ac_useropt
796 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797 case $ac_user_opts in
798 *"
799"enable_$ac_useropt"
800"*) ;;
801 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
802 ac_unrecognized_sep=', ';;
803 esac
804 eval enable_$ac_useropt=no ;;
805
806 -docdir | --docdir | --docdi | --doc | --do)
807 ac_prev=docdir ;;
808 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809 docdir=$ac_optarg ;;
810
811 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 ac_prev=dvidir ;;
813 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814 dvidir=$ac_optarg ;;
815
816 -enable-* | --enable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error $? "invalid feature name: $ac_useropt"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
824 *"
825"enable_$ac_useropt"
826"*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=\$ac_optarg ;;
831
832 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834 | --exec | --exe | --ex)
835 ac_prev=exec_prefix ;;
836 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838 | --exec=* | --exe=* | --ex=*)
839 exec_prefix=$ac_optarg ;;
840
841 -gas | --gas | --ga | --g)
842 # Obsolete; use --with-gas.
843 with_gas=yes ;;
844
845 -help | --help | --hel | --he | -h)
846 ac_init_help=long ;;
847 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848 ac_init_help=recursive ;;
849 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850 ac_init_help=short ;;
851
852 -host | --host | --hos | --ho)
853 ac_prev=host_alias ;;
854 -host=* | --host=* | --hos=* | --ho=*)
855 host_alias=$ac_optarg ;;
856
857 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
858 ac_prev=htmldir ;;
859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860 | --ht=*)
861 htmldir=$ac_optarg ;;
862
863 -includedir | --includedir | --includedi | --included | --include \
864 | --includ | --inclu | --incl | --inc)
865 ac_prev=includedir ;;
866 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867 | --includ=* | --inclu=* | --incl=* | --inc=*)
868 includedir=$ac_optarg ;;
869
870 -infodir | --infodir | --infodi | --infod | --info | --inf)
871 ac_prev=infodir ;;
872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873 infodir=$ac_optarg ;;
874
875 -libdir | --libdir | --libdi | --libd)
876 ac_prev=libdir ;;
877 -libdir=* | --libdir=* | --libdi=* | --libd=*)
878 libdir=$ac_optarg ;;
879
880 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881 | --libexe | --libex | --libe)
882 ac_prev=libexecdir ;;
883 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884 | --libexe=* | --libex=* | --libe=*)
885 libexecdir=$ac_optarg ;;
886
887 -localedir | --localedir | --localedi | --localed | --locale)
888 ac_prev=localedir ;;
889 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890 localedir=$ac_optarg ;;
891
892 -localstatedir | --localstatedir | --localstatedi | --localstated \
893 | --localstate | --localstat | --localsta | --localst | --locals)
894 ac_prev=localstatedir ;;
895 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897 localstatedir=$ac_optarg ;;
898
899 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
900 ac_prev=mandir ;;
901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902 mandir=$ac_optarg ;;
903
904 -nfp | --nfp | --nf)
905 # Obsolete; use --without-fp.
906 with_fp=no ;;
907
908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909 | --no-cr | --no-c | -n)
910 no_create=yes ;;
911
912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914 no_recursion=yes ;;
915
916 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918 | --oldin | --oldi | --old | --ol | --o)
919 ac_prev=oldincludedir ;;
920 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923 oldincludedir=$ac_optarg ;;
924
925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
926 ac_prev=prefix ;;
927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928 prefix=$ac_optarg ;;
929
930 -program-prefix | --program-prefix | --program-prefi | --program-pref \
931 | --program-pre | --program-pr | --program-p)
932 ac_prev=program_prefix ;;
933 -program-prefix=* | --program-prefix=* | --program-prefi=* \
934 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935 program_prefix=$ac_optarg ;;
936
937 -program-suffix | --program-suffix | --program-suffi | --program-suff \
938 | --program-suf | --program-su | --program-s)
939 ac_prev=program_suffix ;;
940 -program-suffix=* | --program-suffix=* | --program-suffi=* \
941 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942 program_suffix=$ac_optarg ;;
943
944 -program-transform-name | --program-transform-name \
945 | --program-transform-nam | --program-transform-na \
946 | --program-transform-n | --program-transform- \
947 | --program-transform | --program-transfor \
948 | --program-transfo | --program-transf \
949 | --program-trans | --program-tran \
950 | --progr-tra | --program-tr | --program-t)
951 ac_prev=program_transform_name ;;
952 -program-transform-name=* | --program-transform-name=* \
953 | --program-transform-nam=* | --program-transform-na=* \
954 | --program-transform-n=* | --program-transform-=* \
955 | --program-transform=* | --program-transfor=* \
956 | --program-transfo=* | --program-transf=* \
957 | --program-trans=* | --program-tran=* \
958 | --progr-tra=* | --program-tr=* | --program-t=*)
959 program_transform_name=$ac_optarg ;;
960
961 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
962 ac_prev=pdfdir ;;
963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964 pdfdir=$ac_optarg ;;
965
966 -psdir | --psdir | --psdi | --psd | --ps)
967 ac_prev=psdir ;;
968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969 psdir=$ac_optarg ;;
970
971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972 | -silent | --silent | --silen | --sile | --sil)
973 silent=yes ;;
974
975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976 ac_prev=sbindir ;;
977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978 | --sbi=* | --sb=*)
979 sbindir=$ac_optarg ;;
980
981 -sharedstatedir | --sharedstatedir | --sharedstatedi \
982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983 | --sharedst | --shareds | --shared | --share | --shar \
984 | --sha | --sh)
985 ac_prev=sharedstatedir ;;
986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989 | --sha=* | --sh=*)
990 sharedstatedir=$ac_optarg ;;
991
992 -site | --site | --sit)
993 ac_prev=site ;;
994 -site=* | --site=* | --sit=*)
995 site=$ac_optarg ;;
996
997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998 ac_prev=srcdir ;;
999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000 srcdir=$ac_optarg ;;
1001
1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003 | --syscon | --sysco | --sysc | --sys | --sy)
1004 ac_prev=sysconfdir ;;
1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007 sysconfdir=$ac_optarg ;;
1008
1009 -target | --target | --targe | --targ | --tar | --ta | --t)
1010 ac_prev=target_alias ;;
1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012 target_alias=$ac_optarg ;;
1013
1014 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015 verbose=yes ;;
1016
1017 -version | --version | --versio | --versi | --vers | -V)
1018 ac_init_version=: ;;
1019
1020 -with-* | --with-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid package name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029"with_$ac_useropt"
1030"*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval with_$ac_useropt=\$ac_optarg ;;
1035
1036 -without-* | --without-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid package name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"with_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval with_$ac_useropt=no ;;
1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1071Try \`$0 --help' for more information"
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 case $ac_envvar in #(
1078 '' | [0-9]* | *[!_$as_cr_alnum]* )
1079 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1080 esac
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1090 ;;
1091
1092 esac
1093done
1094
1095if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 as_fn_error $? "missing argument to $ac_option"
1098fi
1099
1100if test -n "$ac_unrecognized_opts"; then
1101 case $enable_option_checking in
1102 no) ;;
1103 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1104 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105 esac
1106fi
1107
1108# Check all directory arguments for consistency.
1109for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Tim Edwardsbf1da952021-12-21 15:41:31 -05001112 libdir localedir mandir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001113do
1114 eval ac_val=\$$ac_var
1115 # Remove trailing slashes.
1116 case $ac_val in
1117 */ )
1118 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119 eval $ac_var=\$ac_val;;
1120 esac
1121 # Be sure to have absolute directory names.
1122 case $ac_val in
1123 [\\/$]* | ?:[\\/]* ) continue;;
1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 esac
1126 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1127done
1128
1129# There might be people who depend on the old broken behavior: `$host'
1130# used to hold the argument of --host etc.
1131# FIXME: To remove some day.
1132build=$build_alias
1133host=$host_alias
1134target=$target_alias
1135
1136# FIXME: To remove some day.
1137if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 elif test "x$build_alias" != "x$host_alias"; then
1141 cross_compiling=yes
1142 fi
1143fi
1144
1145ac_tool_prefix=
1146test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147
1148test "$silent" = yes && exec 6>/dev/null
1149
1150
1151ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152ac_ls_di=`ls -di .` &&
1153ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 as_fn_error $? "working directory cannot be determined"
1155test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156 as_fn_error $? "pwd does not report name of working directory"
1157
1158
1159# Find the source files, if location was not specified.
1160if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$as_myself" ||
1164$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1166 X"$as_myself" : 'X\(//\)$' \| \
1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168$as_echo X"$as_myself" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)[^/].*/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\/\)$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\).*/{
1182 s//\1/
1183 q
1184 }
1185 s/.*/./; q'`
1186 srcdir=$ac_confdir
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1188 srcdir=..
1189 fi
1190else
1191 ac_srcdir_defaulted=no
1192fi
1193if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1196fi
1197ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1200 pwd)`
1201# When building in place, set srcdir=.
1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204fi
1205# Remove unnecessary trailing slashes from srcdir.
1206# Double slashes in file names in object file debugging info
1207# mess up M-x gdb in Emacs.
1208case $srcdir in
1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210esac
1211for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216done
1217
1218#
1219# Report the --help message.
1220#
1221if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1226
1227Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232Defaults for the options are specified in brackets.
1233
1234Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking ...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
1245Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249 [PREFIX]
1250
1251By default, \`make install' will install all the files in
1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254for instance \`--prefix=\$HOME'.
1255
1256For better control, use the options below.
1257
1258Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1278_ACEOF
1279
1280 cat <<\_ACEOF
1281_ACEOF
1282fi
1283
1284if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1287 esac
1288 cat <<\_ACEOF
1289
Tim Edwardsccaea722020-12-24 10:59:42 -05001290Optional Features:
1291 --disable-option-checking ignore unrecognized --enable/--with options
1292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tim Edwards8292c902020-12-24 16:25:25 -05001294 --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk
1295 "location of the source files for the sky130 (pdks
Ahmed Ghazy32385482021-01-19 20:38:14 +02001296 with a pdk_url file can automatically download them
Tim Edwards8292c902020-12-24 16:25:25 -05001297 if the path is omitted)"
1298 --enable-klayout
Tim Edwards1168a8b2021-02-10 22:06:54 -05001299 Enable or disable klayout setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001300
1301
1302 --enable-magic
Tim Edwards1168a8b2021-02-10 22:06:54 -05001303 Enable or disable magic setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001304
1305
1306 --enable-netgen
Tim Edwards1168a8b2021-02-10 22:06:54 -05001307 Enable or disable netgen setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001308
1309
Tim Edwards367711e2021-01-27 10:35:12 -05001310 --enable-irsim
Tim Edwards1168a8b2021-02-10 22:06:54 -05001311 Enable or disable irsim setup [default=enabled]
Tim Edwards367711e2021-01-27 10:35:12 -05001312
1313
Tim Edwards8292c902020-12-24 16:25:25 -05001314 --enable-openlane
Tim Edwards1168a8b2021-02-10 22:06:54 -05001315 Enable or disable openlane setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001316
1317
1318 --enable-qflow
Tim Edwards1168a8b2021-02-10 22:06:54 -05001319 Enable or disable qflow setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001320
1321
Tim Edwards1168a8b2021-02-10 22:06:54 -05001322 --enable-xschem
1323 Enable or disable xschem setup [default=enabled]
1324
1325
1326 --enable-alpha-sky130[=path]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001327 Install sky130_ml_xx_hd. If path is omitted, the repository
1328 will be downloaded. [default=enabled]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001329 --enable-xschem-sky130[=path]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001330 Install xschem_sky130. If path is omitted, the repository
1331 will be downloaded. [default=enabled]
1332 --enable-sram-sky130[=path]
1333 Install sky130_sram_macros. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001334 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001335 --enable-osu-t12-sky130[=path]
1336 Install sky130_osu_t12. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001337 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001338 --enable-osu-t15-sky130[=path]
1339 Install sky130_osu_t15. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001340 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001341 --enable-osu-t18-sky130[=path]
1342 Install sky130_osu_t18. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001343 will be downloaded. [default=disabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001344
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001345Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001348 --with-sky130-link-targets=none|source
1349 "make symbolic links to existing files
1350 [default=none]"
Tim Edwards7fa92fd2022-01-19 11:13:51 -05001351 --with-sky130-variants=all|A|B|...
1352 "compile/install specified PDK variants only
1353 [default=all]"
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001354 --with-ef-style Use efabless style file system structure
1355 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001356
1357Some influential environment variables:
1358 PYTHON the Python interpreter
1359
1360Use these variables to override the choices made by `configure' or to help
1361it to find libraries and programs with nonstandard names/locations.
1362
1363Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1364_ACEOF
1365ac_status=$?
1366fi
1367
1368if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1373 continue
1374 ac_builddir=.
1375
1376case "$ac_dir" in
1377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378*)
1379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386esac
1387ac_abs_top_builddir=$ac_pwd
1388ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389# for backward compatibility:
1390ac_top_builddir=$ac_top_build_prefix
1391
1392case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405esac
1406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1421fi
1422
1423test -n "$ac_init_help" && exit $ac_status
1424if $ac_init_version; then
1425 cat <<\_ACEOF
1426open_pdks configure 1.0
1427generated by GNU Autoconf 2.69
1428
1429Copyright (C) 2012 Free Software Foundation, Inc.
1430This configure script is free software; the Free Software Foundation
1431gives unlimited permission to copy, distribute and modify it.
1432_ACEOF
1433 exit
1434fi
1435
1436## ------------------------ ##
1437## Autoconf initialization. ##
1438## ------------------------ ##
1439cat >config.log <<_ACEOF
1440This file contains any messages produced by compilers while
1441running configure, to aid debugging if configure makes a mistake.
1442
1443It was created by open_pdks $as_me 1.0, which was
1444generated by GNU Autoconf 2.69. Invocation command line was
1445
1446 $ $0 $@
1447
1448_ACEOF
1449exec 5>>config.log
1450{
1451cat <<_ASUNAME
1452## --------- ##
1453## Platform. ##
1454## --------- ##
1455
1456hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1457uname -m = `(uname -m) 2>/dev/null || echo unknown`
1458uname -r = `(uname -r) 2>/dev/null || echo unknown`
1459uname -s = `(uname -s) 2>/dev/null || echo unknown`
1460uname -v = `(uname -v) 2>/dev/null || echo unknown`
1461
1462/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1463/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1464
1465/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1466/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1467/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1468/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1469/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1470/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1471/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1472
1473_ASUNAME
1474
1475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 $as_echo "PATH: $as_dir"
1481 done
1482IFS=$as_save_IFS
1483
1484} >&5
1485
1486cat >&5 <<_ACEOF
1487
1488
1489## ----------- ##
1490## Core tests. ##
1491## ----------- ##
1492
1493_ACEOF
1494
1495
1496# Keep a trace of the command line.
1497# Strip out --no-create and --no-recursion so they do not pile up.
1498# Strip out --silent because we don't want to record it for future runs.
1499# Also quote any args containing shell meta-characters.
1500# Make two passes to allow for proper duplicate-argument suppression.
1501ac_configure_args=
1502ac_configure_args0=
1503ac_configure_args1=
1504ac_must_keep_next=false
1505for ac_pass in 1 2
1506do
1507 for ac_arg
1508 do
1509 case $ac_arg in
1510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1513 continue ;;
1514 *\'*)
1515 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1516 esac
1517 case $ac_pass in
1518 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1519 2)
1520 as_fn_append ac_configure_args1 " '$ac_arg'"
1521 if test $ac_must_keep_next = true; then
1522 ac_must_keep_next=false # Got value, back to normal.
1523 else
1524 case $ac_arg in
1525 *=* | --config-cache | -C | -disable-* | --disable-* \
1526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528 | -with-* | --with-* | -without-* | --without-* | --x)
1529 case "$ac_configure_args0 " in
1530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531 esac
1532 ;;
1533 -* ) ac_must_keep_next=true ;;
1534 esac
1535 fi
1536 as_fn_append ac_configure_args " '$ac_arg'"
1537 ;;
1538 esac
1539 done
1540done
1541{ ac_configure_args0=; unset ac_configure_args0;}
1542{ ac_configure_args1=; unset ac_configure_args1;}
1543
1544# When interrupted or exit'd, cleanup temporary files, and complete
1545# config.log. We remove comments because anyway the quotes in there
1546# would cause problems or look ugly.
1547# WARNING: Use '\'' to represent an apostrophe within the trap.
1548# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549trap 'exit_status=$?
1550 # Save into config.log some information that might help in debugging.
1551 {
1552 echo
1553
1554 $as_echo "## ---------------- ##
1555## Cache variables. ##
1556## ---------------- ##"
1557 echo
1558 # The following way of writing the cache mishandles newlines in values,
1559(
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in #(
1563 *${as_nl}*)
1564 case $ac_var in #(
1565 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1566$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1567 esac
1568 case $ac_var in #(
1569 _ | IFS | as_nl) ;; #(
1570 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1571 *) { eval $ac_var=; unset $ac_var;} ;;
1572 esac ;;
1573 esac
1574 done
1575 (set) 2>&1 |
1576 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1577 *${as_nl}ac_space=\ *)
1578 sed -n \
1579 "s/'\''/'\''\\\\'\'''\''/g;
1580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 ;; #(
1582 *)
1583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 ;;
1585 esac |
1586 sort
1587)
1588 echo
1589
1590 $as_echo "## ----------------- ##
1591## Output variables. ##
1592## ----------------- ##"
1593 echo
1594 for ac_var in $ac_subst_vars
1595 do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 $as_echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1603
1604 if test -n "$ac_subst_files"; then
1605 $as_echo "## ------------------- ##
1606## File substitutions. ##
1607## ------------------- ##"
1608 echo
1609 for ac_var in $ac_subst_files
1610 do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 $as_echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1618 fi
1619
1620 if test -s confdefs.h; then
1621 $as_echo "## ----------- ##
1622## confdefs.h. ##
1623## ----------- ##"
1624 echo
1625 cat confdefs.h
1626 echo
1627 fi
1628 test "$ac_signal" != 0 &&
1629 $as_echo "$as_me: caught signal $ac_signal"
1630 $as_echo "$as_me: exit $exit_status"
1631 } >&5
1632 rm -f core *.core core.conftest.* &&
1633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1634 exit $exit_status
1635' 0
1636for ac_signal in 1 2 13 15; do
1637 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1638done
1639ac_signal=0
1640
1641# confdefs.h avoids OS command line length limits that DEFS can exceed.
1642rm -f -r conftest* confdefs.h
1643
1644$as_echo "/* confdefs.h */" > confdefs.h
1645
1646# Predefined preprocessor variables.
1647
1648cat >>confdefs.h <<_ACEOF
1649#define PACKAGE_NAME "$PACKAGE_NAME"
1650_ACEOF
1651
1652cat >>confdefs.h <<_ACEOF
1653#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1654_ACEOF
1655
1656cat >>confdefs.h <<_ACEOF
1657#define PACKAGE_VERSION "$PACKAGE_VERSION"
1658_ACEOF
1659
1660cat >>confdefs.h <<_ACEOF
1661#define PACKAGE_STRING "$PACKAGE_STRING"
1662_ACEOF
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1666_ACEOF
1667
1668cat >>confdefs.h <<_ACEOF
1669#define PACKAGE_URL "$PACKAGE_URL"
1670_ACEOF
1671
1672
1673# Let the site file select an alternate cache file if it wants to.
1674# Prefer an explicitly selected file to automatically selected ones.
1675ac_site_file1=NONE
1676ac_site_file2=NONE
1677if test -n "$CONFIG_SITE"; then
1678 # We do not want a PATH search for config.site.
1679 case $CONFIG_SITE in #((
1680 -*) ac_site_file1=./$CONFIG_SITE;;
1681 */*) ac_site_file1=$CONFIG_SITE;;
1682 *) ac_site_file1=./$CONFIG_SITE;;
1683 esac
1684elif test "x$prefix" != xNONE; then
1685 ac_site_file1=$prefix/share/config.site
1686 ac_site_file2=$prefix/etc/config.site
1687else
1688 ac_site_file1=$ac_default_prefix/share/config.site
1689 ac_site_file2=$ac_default_prefix/etc/config.site
1690fi
1691for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1692do
1693 test "x$ac_site_file" = xNONE && continue
1694 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1696$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1697 sed 's/^/| /' "$ac_site_file" >&5
1698 . "$ac_site_file" \
1699 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1701as_fn_error $? "failed to load site script $ac_site_file
1702See \`config.log' for more details" "$LINENO" 5; }
1703 fi
1704done
1705
1706if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special files
1708 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1709 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1711$as_echo "$as_me: loading cache $cache_file" >&6;}
1712 case $cache_file in
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1715 esac
1716 fi
1717else
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1719$as_echo "$as_me: creating cache $cache_file" >&6;}
1720 >$cache_file
1721fi
1722
1723# Check that the precious variables saved in the cache have kept the same
1724# value.
1725ac_cache_corrupted=false
1726for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1738$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1741 *)
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 # differences in whitespace do not lead to failure.
1744 ac_old_val_w=`echo x $ac_old_val`
1745 ac_new_val_w=`echo x $ac_new_val`
1746 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1748$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 ac_cache_corrupted=:
1750 else
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1752$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1753 eval $ac_var=\$ac_old_val
1754 fi
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1756$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1758$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1759 fi;;
1760 esac
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
1764 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1770 esac
1771 fi
1772done
1773if $ac_cache_corrupted; then
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1777$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1779fi
1780## -------------------- ##
1781## Main body of script. ##
1782## -------------------- ##
1783
1784ac_ext=c
1785ac_cpp='$CPP $CPPFLAGS'
1786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789
1790
1791
Tim Edwardsd09355e2021-08-23 16:25:31 -04001792# AC_PREFIX_DEFAULT(/usr)
Tim Edwards053cff32021-03-13 17:17:36 -05001793
Tim Edwards8a4b1602021-08-20 14:05:53 -04001794
Tim Edwardsccaea722020-12-24 10:59:42 -05001795## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001796
1797
1798
1799
1800
1801
1802 if test -n "$PYTHON"; then
1803 # If the user set $PYTHON, use it and don't search something else.
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1805$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1806 prog="import sys
1807# split strings by '.' and convert to numeric. Append some zeros
1808# because we need at least 4 digits for the hex conversion.
1809# map returns an iterator in Python 3.0 and a list in 2.x
1810minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1811minverhex = 0
1812# xrange is not present in Python 3.0 and range returns an iterator
1813for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1814sys.exit(sys.hexversion < minverhex)"
1815 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1816 ($PYTHON -c "$prog") >&5 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then :
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1821$as_echo "yes" >&6; }
1822else
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1824$as_echo "no" >&6; }
1825 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1826fi
1827 am_display_PYTHON=$PYTHON
1828 else
1829 # Otherwise, try each interpreter until we find one that satisfies
1830 # VERSION.
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1832$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1833if ${am_cv_pathless_PYTHON+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835else
1836
Tim Edwardsbf1da952021-12-21 15:41:31 -05001837 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001838 test "$am_cv_pathless_PYTHON" = none && break
1839 prog="import sys
1840# split strings by '.' and convert to numeric. Append some zeros
1841# because we need at least 4 digits for the hex conversion.
1842# map returns an iterator in Python 3.0 and a list in 2.x
1843minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1844minverhex = 0
1845# xrange is not present in Python 3.0 and range returns an iterator
1846for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1847sys.exit(sys.hexversion < minverhex)"
1848 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1849 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; then :
1853 break
1854fi
1855 done
1856fi
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1858$as_echo "$am_cv_pathless_PYTHON" >&6; }
1859 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1860 if test "$am_cv_pathless_PYTHON" = none; then
1861 PYTHON=:
1862 else
1863 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1864set dummy $am_cv_pathless_PYTHON; ac_word=$2
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1866$as_echo_n "checking for $ac_word... " >&6; }
1867if ${ac_cv_path_PYTHON+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 case $PYTHON in
1871 [\\/]* | ?:[\\/]*)
1872 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1873 ;;
1874 *)
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886done
1887 done
1888IFS=$as_save_IFS
1889
1890 ;;
1891esac
1892fi
1893PYTHON=$ac_cv_path_PYTHON
1894if test -n "$PYTHON"; then
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1896$as_echo "$PYTHON" >&6; }
1897else
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1899$as_echo "no" >&6; }
1900fi
1901
1902
1903 fi
1904 am_display_PYTHON=$am_cv_pathless_PYTHON
1905 fi
1906
1907
1908 if test "$PYTHON" = :; then
1909 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1910 else
1911
1912
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1914$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1915if ${am_cv_python_version+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917else
Tim Edwards8a4b1602021-08-20 14:05:53 -04001918 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001919fi
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1921$as_echo "$am_cv_python_version" >&6; }
1922 PYTHON_VERSION=$am_cv_python_version
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001923
Tim Edwards0b8fd2f2021-09-14 10:19:16 -04001924
1925
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001926 PYTHON_PREFIX='${prefix}'
1927
1928 PYTHON_EXEC_PREFIX='${exec_prefix}'
1929
1930
1931
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1933$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1934if ${am_cv_python_platform+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936else
1937 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1938fi
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1940$as_echo "$am_cv_python_platform" >&6; }
1941 PYTHON_PLATFORM=$am_cv_python_platform
1942
1943
1944 # Just factor out some code duplication.
1945 am_python_setup_sysconfig="\
1946import sys
1947# Prefer sysconfig over distutils.sysconfig, for better compatibility
1948# with python 3.x. See automake bug#10227.
1949try:
1950 import sysconfig
1951except ImportError:
1952 can_use_sysconfig = 0
1953else:
1954 can_use_sysconfig = 1
1955# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1956# <https://github.com/pypa/virtualenv/issues/118>
1957try:
1958 from platform import python_implementation
1959 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1960 can_use_sysconfig = 0
1961except ImportError:
1962 pass"
1963
1964
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
1966$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
1967if ${am_cv_python_pythondir+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969else
1970 if test "x$prefix" = xNONE
1971 then
1972 am_py_prefix=$ac_default_prefix
1973 else
1974 am_py_prefix=$prefix
1975 fi
1976 am_cv_python_pythondir=`$PYTHON -c "
1977$am_python_setup_sysconfig
1978if can_use_sysconfig:
1979 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1980else:
1981 from distutils import sysconfig
1982 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1983sys.stdout.write(sitedir)"`
1984 case $am_cv_python_pythondir in
1985 $am_py_prefix*)
1986 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1987 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1988 ;;
1989 *)
1990 case $am_py_prefix in
1991 /usr|/System*) ;;
1992 *)
1993 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1994 ;;
1995 esac
1996 ;;
1997 esac
1998
1999fi
2000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
2001$as_echo "$am_cv_python_pythondir" >&6; }
2002 pythondir=$am_cv_python_pythondir
2003
2004
2005
2006 pkgpythondir=\${pythondir}/$PACKAGE
2007
2008
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
2010$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
2011if ${am_cv_python_pyexecdir+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 if test "x$exec_prefix" = xNONE
2015 then
2016 am_py_exec_prefix=$am_py_prefix
2017 else
2018 am_py_exec_prefix=$exec_prefix
2019 fi
2020 am_cv_python_pyexecdir=`$PYTHON -c "
2021$am_python_setup_sysconfig
2022if can_use_sysconfig:
2023 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2024else:
2025 from distutils import sysconfig
2026 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2027sys.stdout.write(sitedir)"`
2028 case $am_cv_python_pyexecdir in
2029 $am_py_exec_prefix*)
2030 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2031 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2032 ;;
2033 *)
2034 case $am_py_exec_prefix in
2035 /usr|/System*) ;;
2036 *)
2037 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2038 ;;
2039 esac
2040 ;;
2041 esac
2042
2043fi
2044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2045$as_echo "$am_cv_python_pyexecdir" >&6; }
2046 pyexecdir=$am_cv_python_pyexecdir
2047
2048
2049
2050 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2051
2052
2053
2054 fi
2055
2056
2057
2058 if test -z $PYTHON;
2059 then
Tim Edwards238499f2021-05-17 16:34:13 -04002060 if test -z "";
2061 then
2062 PYTHON="python3"
2063 else
2064 PYTHON=""
2065 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002066 fi
2067 PYTHON_NAME=`basename $PYTHON`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2069$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002070 $PYTHON -c "import distutils" 2>/dev/null
2071 if test $? -eq 0;
2072 then
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002074$as_echo "yes" >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002075 eval HAVE_PYMOD_DISTUTILS=yes
2076 else
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002078$as_echo "no" >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002079 eval HAVE_PYMOD_DISTUTILS=no
2080 #
2081 if test -n ""
2082 then
2083 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2084 exit 1
2085 fi
2086 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002087
2088
Tim Edwards665c3fd2021-05-02 20:20:27 -04002089# Check for Mac OS X gsed vs. sed
2090
2091
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2093$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2094if ${ac_cv_path_SED+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2098 for ac_i in 1 2 3 4 5 6 7; do
2099 ac_script="$ac_script$as_nl$ac_script"
2100 done
2101 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2102 { ac_script=; unset ac_script;}
2103 if test -z "$SED"; then
2104 ac_path_SED_found=false
2105 # Loop through the user's path and test for each of PROGNAME-LIST
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_prog in sed gsed; do
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2114 as_fn_executable_p "$ac_path_SED" || continue
2115# Check for GNU ac_path_SED and select it if it is found.
2116 # Check for GNU $ac_path_SED
2117case `"$ac_path_SED" --version 2>&1` in
2118*GNU*)
2119 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2120*)
2121 ac_count=0
2122 $as_echo_n 0123456789 >"conftest.in"
2123 while :
2124 do
2125 cat "conftest.in" "conftest.in" >"conftest.tmp"
2126 mv "conftest.tmp" "conftest.in"
2127 cp "conftest.in" "conftest.nl"
2128 $as_echo '' >> "conftest.nl"
2129 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2131 as_fn_arith $ac_count + 1 && ac_count=$as_val
2132 if test $ac_count -gt ${ac_path_SED_max-0}; then
2133 # Best one so far, save it but keep looking for a better one
2134 ac_cv_path_SED="$ac_path_SED"
2135 ac_path_SED_max=$ac_count
2136 fi
2137 # 10*(2^10) chars as input seems more than enough
2138 test $ac_count -gt 10 && break
2139 done
2140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2141esac
2142
2143 $ac_path_SED_found && break 3
2144 done
2145 done
2146 done
2147IFS=$as_save_IFS
2148 if test -z "$ac_cv_path_SED"; then
2149 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2150 fi
2151else
2152 ac_cv_path_SED=$SED
2153fi
2154
2155fi
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2157$as_echo "$ac_cv_path_SED" >&6; }
2158 SED="$ac_cv_path_SED"
2159 rm -f conftest.sed
2160
2161
2162
Tim Edwards66e53e52021-01-24 21:21:36 -05002163realpath() {
2164 # Cross-platform, handles ~
2165 python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1
2166}
2167
Tim Edwards3c02c082021-11-26 13:48:33 -05002168ENABLED_TECHS=
2169
Tim Edwards062fbb12021-11-26 15:44:59 -05002170# Export the open_pdks top level directory
2171OPENPDKS_TOP=`cd .. && pwd`
2172
Tim Edwards66e53e52021-01-24 21:21:36 -05002173# detect PDKs based on directories that include Makefile.in files
2174
2175
2176# define tools
2177# define tools to install setup files for. This does not imply that the tools are
2178# available on the system; just that open_pdks will install the setup files for them.
Tim Edwards66e53e52021-01-24 21:21:36 -05002179
2180
Tim Edwards66e53e52021-01-24 21:21:36 -05002181# check for the source and install paths for each PDK.
2182
2183
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
2185$as_echo "$as_me: Found technology directories: sky130" >&6;}
2186
2187
2188
2189 # --enable-pdk-[pdk]=/path/to/pdk
2190
Tim Edwards1168a8b2021-02-10 22:06:54 -05002191 echo "Checking technology sky130..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002192
2193
Tim Edwards7fa92fd2022-01-19 11:13:51 -05002194 SKY130_ENABLED_VARIANTS="all"
Tim Edwards66e53e52021-01-24 21:21:36 -05002195 SKY130_SOURCE_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002196 SKY130_LINK_TARGETS="none"
Tim Edwards7e0a6442021-02-11 15:37:42 -05002197 SKY130_AUTO="0"
Tim Edwards66e53e52021-01-24 21:21:36 -05002198
2199 # Check whether --enable-sky130-sky130 was given.
2200if test "${enable_sky130_pdk+set}" = set; then :
2201 enableval=$enable_sky130_pdk;
2202 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002203 export SKY130_SOURCE_PATH=../sources/sky130-pdk
2204 SKY130_AUTO="1"
Tim Edwards3c02c082021-11-26 13:48:33 -05002205 ENABLED_TECHS="$ENABLED_TECHS sky130"
Tim Edwards66e53e52021-01-24 21:21:36 -05002206 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2207 echo "Disabling sky130..."
2208 else
2209 SKY130_SOURCE_PATH=$enableval
Tim Edwards3c02c082021-11-26 13:48:33 -05002210 ENABLED_TECHS="$ENABLED_TECHS sky130"
Tim Edwards66e53e52021-01-24 21:21:36 -05002211 fi
2212
Tim Edwards66e53e52021-01-24 21:21:36 -05002213fi
2214
Tim Edwards66e53e52021-01-24 21:21:36 -05002215
2216 if [ "$SKY130_SOURCE_PATH" != "" ]; then
2217 SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH`
2218 SKY130_BASENAME=`basename $SKY130_SOURCE_PATH`
2219 if [ "$SKY130_BASENAME" = "libraries" ]; then
2220 SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH`
2221 fi
Tim Edwards6ee11532021-02-11 12:29:33 -05002222 # Basic check that the PDK path exists, unless depending on Makefile
2223 # to download it automatically.
Tim Edwards7e0a6442021-02-11 15:37:42 -05002224 if [ "$SKY130_AUTO" = "0" ]; then
Tim Edwards6ee11532021-02-11 12:29:33 -05002225 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002226$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002227 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
Tim Edwards66e53e52021-01-24 21:21:36 -05002228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
2229$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
2230if eval \${$as_ac_File+:} false; then :
2231 $as_echo_n "(cached) " >&6
2232else
2233 test "$cross_compiling" = yes &&
2234 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2235if test -r "$SKY130_SOURCE_PATH"; then
2236 eval "$as_ac_File=yes"
2237else
2238 eval "$as_ac_File=no"
2239fi
2240fi
2241eval ac_res=\$$as_ac_File
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
2245
Tim Edwards6ee11532021-02-11 12:29:33 -05002246 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002247$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
2248
2249else
2250
Tim Edwards6ee11532021-02-11 12:29:33 -05002251 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
Tim Edwards66e53e52021-01-24 21:21:36 -05002252
2253fi
2254
Tim Edwards6ee11532021-02-11 12:29:33 -05002255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: PDK 'sky130' will be downloaded automatically during make." >&5
2257$as_echo "$as_me: PDK 'sky130' will be downloaded automatically during make." >&6;}
2258 fi
Tim Edwards66e53e52021-01-24 21:21:36 -05002259
Tim Edwards66e53e52021-01-24 21:21:36 -05002260 # --with-pdk-link-targets=PDK_LINK_TARGETS
2261
2262# Check whether --with-sky130-link-targets was given.
2263if test "${with_sky130_link_targets+set}" = set; then :
2264 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
2265
2266fi
2267
2268
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
2270$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
Tim Edwards7fa92fd2022-01-19 11:13:51 -05002271
2272 # --with-pdk-variants=PDK_ENABLED_VARIANTS
2273
2274# Check whether --with-sky130-variants was given.
2275if test "${with_sky130_variants+set}" = set; then :
2276 withval=$with_sky130_variants; SKY130_ENABLED_VARIANTS=$with_sky130_variants
2277
2278fi
2279
2280
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabled variants set to $SKY130_ENABLED_VARIANTS" >&5
2282$as_echo "$as_me: Enabled variants set to $SKY130_ENABLED_VARIANTS" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002283 fi
2284
2285
2286
2287
2288
2289
Tim Edwards7fa92fd2022-01-19 11:13:51 -05002290
Tim Edwards3c02c082021-11-26 13:48:33 -05002291# Export the list of known technologies to the Makefile
2292ALL_TECHS="sky130"
2293
2294
Tim Edwards66e53e52021-01-24 21:21:36 -05002295# Set variables for tool setups
2296
2297
Tim Edwards1168a8b2021-02-10 22:06:54 -05002298{ $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5
2299$as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002300
2301
2302
2303
2304
2305 KLAYOUT_DISABLED=0
2306 # Check whether --enable-klayout was given.
2307if test "${enable_klayout+set}" = set; then :
2308 enableval=$enable_klayout;
2309 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2310 KLAYOUT_DISABLED=1
2311 fi
2312
2313
2314fi
2315
2316
2317
2318
2319
2320 MAGIC_DISABLED=0
2321 # Check whether --enable-magic was given.
2322if test "${enable_magic+set}" = set; then :
2323 enableval=$enable_magic;
2324 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2325 MAGIC_DISABLED=1
2326 fi
2327
2328
2329fi
2330
2331
2332
2333
2334
2335 NETGEN_DISABLED=0
2336 # Check whether --enable-netgen was given.
2337if test "${enable_netgen+set}" = set; then :
2338 enableval=$enable_netgen;
2339 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2340 NETGEN_DISABLED=1
2341 fi
2342
2343
2344fi
2345
2346
2347
2348
2349
Tim Edwards367711e2021-01-27 10:35:12 -05002350 IRSIM_DISABLED=0
2351 # Check whether --enable-irsim was given.
2352if test "${enable_irsim+set}" = set; then :
2353 enableval=$enable_irsim;
2354 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2355 IRSIM_DISABLED=1
2356 fi
2357
2358
2359fi
2360
2361
2362
2363
2364
Tim Edwards66e53e52021-01-24 21:21:36 -05002365 OPENLANE_DISABLED=0
2366 # Check whether --enable-openlane was given.
2367if test "${enable_openlane+set}" = set; then :
2368 enableval=$enable_openlane;
2369 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2370 OPENLANE_DISABLED=1
2371 fi
2372
2373
2374fi
2375
2376
2377
2378
2379
2380 QFLOW_DISABLED=0
2381 # Check whether --enable-qflow was given.
2382if test "${enable_qflow+set}" = set; then :
2383 enableval=$enable_qflow;
2384 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2385 QFLOW_DISABLED=1
2386 fi
2387
2388
2389fi
2390
2391
2392
2393
2394
Tim Edwards1168a8b2021-02-10 22:06:54 -05002395 XSCHEM_DISABLED=0
2396 # Check whether --enable-xschem was given.
2397if test "${enable_xschem+set}" = set; then :
2398 enableval=$enable_xschem;
2399 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2400 XSCHEM_DISABLED=1
2401 fi
2402
2403
2404fi
2405
2406
2407
2408
2409
Tim Edwards66e53e52021-01-24 21:21:36 -05002410# Magic
2411# Extract the first word of "magic", so it can be a program name with args.
2412set dummy magic; ac_word=$2
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
2415if ${ac_cv_path_MAGIC+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417else
2418 case $MAGIC in
2419 [\\/]* | ?:[\\/]*)
2420 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2421 ;;
2422 *)
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434done
2435 done
2436IFS=$as_save_IFS
2437
2438 ;;
2439esac
2440fi
2441MAGIC=$ac_cv_path_MAGIC
2442if test -n "$MAGIC"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2444$as_echo "$MAGIC" >&6; }
2445else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447$as_echo "no" >&6; }
2448fi
2449
2450
2451if test -z "$MAGIC"; then
2452 as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5
2453fi
2454# Extract the first word of "patch", so it can be a program name with args.
2455set dummy patch; ac_word=$2
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if ${ac_cv_path_PATCH+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460else
2461 case $PATCH in
2462 [\\/]* | ?:[\\/]*)
2463 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
2464 ;;
2465 *)
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477done
2478 done
2479IFS=$as_save_IFS
2480
2481 ;;
2482esac
2483fi
2484PATCH=$ac_cv_path_PATCH
2485if test -n "$PATCH"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2487$as_echo "$PATCH" >&6; }
2488else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494if test -z "$PATCH"; then
2495 as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5
2496fi
2497
2498# Other installations (libraries or tools if applicable)
Tim Edwards66e53e52021-01-24 21:21:36 -05002499
2500
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002501# Optional installations (like the above, but disabled by default)
Tim Edwardscfe970c2021-02-26 14:35:51 -05002502
2503
2504
2505
2506
2507
2508
2509
2510 # echo target targetvar flag location
2511
Tim Edwards66e53e52021-01-24 21:21:36 -05002512 SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002513
Tim Edwards1168a8b2021-02-10 22:06:54 -05002514 # Check whether --enable-alpha-sky130 was given.
2515if test "${enable_alpha_sky130+set}" = set; then :
2516 enableval=$enable_alpha_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002517 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002518 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2519$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002520 export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
Tim Edwards66e53e52021-01-24 21:21:36 -05002521 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002522 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_ml_xx_hd'" >&5
2523$as_echo "$as_me: Disabling package 'sky130_ml_xx_hd'" >&6;}
2524 export SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002525 else
2526 SKY130_ML_XX_HD_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002527 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&5
2528$as_echo "$as_me: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002529 fi
2530 SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH`
2531
Tim Edwards7e0a6442021-02-11 15:37:42 -05002532else
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2535$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
2536 SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
2537
2538
Tim Edwards66e53e52021-01-24 21:21:36 -05002539fi
2540
2541
2542
2543
2544
2545
2546
Tim Edwards66e53e52021-01-24 21:21:36 -05002547
2548
2549
2550
2551
Tim Edwards6ee11532021-02-11 12:29:33 -05002552 # echo target targetvar flag location
Tim Edwards66e53e52021-01-24 21:21:36 -05002553
Tim Edwards1168a8b2021-02-10 22:06:54 -05002554 XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002555
Tim Edwards1168a8b2021-02-10 22:06:54 -05002556 # Check whether --enable-xschem-sky130 was given.
2557if test "${enable_xschem_sky130+set}" = set; then :
2558 enableval=$enable_xschem_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002559 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002560 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2561$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002562 export XSCHEM_SKY130_PATH=../sources/xschem_sky130
Tim Edwards66e53e52021-01-24 21:21:36 -05002563 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002564 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'xschem_sky130'" >&5
2565$as_echo "$as_me: Disabling package 'xschem_sky130'" >&6;}
2566 export XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002567 else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002568 XSCHEM_SKY130_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002569 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&5
2570$as_echo "$as_me: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002571 fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002572 XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH`
Tim Edwards66e53e52021-01-24 21:21:36 -05002573
Tim Edwards7e0a6442021-02-11 15:37:42 -05002574else
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2577$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
2578 XSCHEM_SKY130_PATH=../sources/xschem_sky130
2579
2580
Tim Edwards66e53e52021-01-24 21:21:36 -05002581fi
2582
2583
2584
2585
2586
Tim Edwards66e53e52021-01-24 21:21:36 -05002587
2588
2589
2590
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002591
2592
2593
2594
2595 # echo target targetvar flag location
2596
2597 SKY130_SRAM_MACROS_PATH=""
2598
2599 # Check whether --enable-sram-sky130 was given.
2600if test "${enable_sram_sky130+set}" = set; then :
2601 enableval=$enable_sram_sky130;
2602 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will be installed automatically during make." >&5
2604$as_echo "$as_me: Package 'sky130_sram_macros' will be installed automatically during make." >&6;}
2605 export SKY130_SRAM_MACROS_PATH=../sources/sky130_sram_macros
2606 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_sram_macros'" >&5
2608$as_echo "$as_me: Disabling package 'sky130_sram_macros'" >&6;}
2609 export SKY130_SRAM_MACROS_PATH=""
2610 else
2611 SKY130_SRAM_MACROS_PATH=$enableval
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&5
2613$as_echo "$as_me: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&6;}
2614 fi
2615 SKY130_SRAM_MACROS_PATH=`realpath $SKY130_SRAM_MACROS_PATH`
2616
2617else
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will not be installed." >&5
2620$as_echo "$as_me: Package 'sky130_sram_macros' will not be installed." >&6;}
2621
2622
2623fi
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636 # echo target targetvar flag location
2637
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002638 SKY130_OSU_T12_PATH=""
2639
2640 # Check whether --enable-osu-t12-sky130 was given.
2641if test "${enable_osu_t12_sky130+set}" = set; then :
2642 enableval=$enable_osu_t12_sky130;
2643 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will be installed automatically during make." >&5
2645$as_echo "$as_me: Package 'sky130_osu_t12' will be installed automatically during make." >&6;}
2646 export SKY130_OSU_T12_PATH=../sources/sky130_osu_t12
2647 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t12'" >&5
2649$as_echo "$as_me: Disabling package 'sky130_osu_t12'" >&6;}
2650 export SKY130_OSU_T12_PATH=""
2651 else
2652 SKY130_OSU_T12_PATH=$enableval
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&5
2654$as_echo "$as_me: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&6;}
2655 fi
2656 SKY130_OSU_T12_PATH=`realpath $SKY130_OSU_T12_PATH`
2657
2658else
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will not be installed." >&5
2661$as_echo "$as_me: Package 'sky130_osu_t12' will not be installed." >&6;}
2662
2663
2664fi
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677 # echo target targetvar flag location
2678
2679 SKY130_OSU_T15_PATH=""
2680
2681 # Check whether --enable-osu-t15-sky130 was given.
2682if test "${enable_osu_t15_sky130+set}" = set; then :
2683 enableval=$enable_osu_t15_sky130;
2684 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will be installed automatically during make." >&5
2686$as_echo "$as_me: Package 'sky130_osu_t15' will be installed automatically during make." >&6;}
2687 export SKY130_OSU_T15_PATH=../sources/sky130_osu_t15
2688 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t15'" >&5
2690$as_echo "$as_me: Disabling package 'sky130_osu_t15'" >&6;}
2691 export SKY130_OSU_T15_PATH=""
2692 else
2693 SKY130_OSU_T15_PATH=$enableval
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&5
2695$as_echo "$as_me: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&6;}
2696 fi
2697 SKY130_OSU_T15_PATH=`realpath $SKY130_OSU_T15_PATH`
2698
2699else
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will not be installed." >&5
2702$as_echo "$as_me: Package 'sky130_osu_t15' will not be installed." >&6;}
2703
2704
2705fi
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718 # echo target targetvar flag location
2719
2720 SKY130_OSU_T18_PATH=""
2721
2722 # Check whether --enable-osu-t18-sky130 was given.
2723if test "${enable_osu_t18_sky130+set}" = set; then :
2724 enableval=$enable_osu_t18_sky130;
2725 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will be installed automatically during make." >&5
2727$as_echo "$as_me: Package 'sky130_osu_t18' will be installed automatically during make." >&6;}
2728 export SKY130_OSU_T18_PATH=../sources/sky130_osu_t18
2729 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t18'" >&5
2731$as_echo "$as_me: Disabling package 'sky130_osu_t18'" >&6;}
2732 export SKY130_OSU_T18_PATH=""
2733 else
2734 SKY130_OSU_T18_PATH=$enableval
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&5
2736$as_echo "$as_me: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&6;}
2737 fi
2738 SKY130_OSU_T18_PATH=`realpath $SKY130_OSU_T18_PATH`
2739
2740else
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will not be installed." >&5
2743$as_echo "$as_me: Package 'sky130_osu_t18' will not be installed." >&6;}
2744
2745
2746fi
2747
2748
2749
2750
2751
2752
2753
2754
2755
Tim Edwards1168a8b2021-02-10 22:06:54 -05002756{ $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5
2757$as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002758
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002759# Check for "--with-ef-style"
2760EF_STYLE=0
2761
2762# Check whether --with-ef-style was given.
2763if test "${with_ef_style+set}" = set; then :
2764 withval=$with_ef_style;
Tim Edwards8292c902020-12-24 16:25:25 -05002765 pdks_ef_style=$withval
2766 if test "$withval" == "yes" -o "$withval" == "YES"; then
2767 EF_STYLE=1
2768 fi
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002769
2770fi
2771
2772
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002773
Tim Edwards3c02c082021-11-26 13:48:33 -05002774# Export the list of enabled technologies to the Makefile
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002775
Tim Edwards062fbb12021-11-26 15:44:59 -05002776# Export the top level directory of open_pdks
2777
Tim Edwards3c02c082021-11-26 13:48:33 -05002778
2779MAKEFILES=$(find -L .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002780ac_config_files="$ac_config_files $MAKEFILES"
2781
2782
2783cat >confcache <<\_ACEOF
2784# This file is a shell script that caches the results of configure
2785# tests run on this system so they can be shared between configure
2786# scripts and configure runs, see configure's option --config-cache.
2787# It is not useful on other systems. If it contains results you don't
2788# want to keep, you may remove or edit it.
2789#
2790# config.status only pays attention to the cache file if you give it
2791# the --recheck option to rerun configure.
2792#
2793# `ac_cv_env_foo' variables (set or unset) will be overridden when
2794# loading this file, other *unset* `ac_cv_foo' will be assigned the
2795# following values.
2796
2797_ACEOF
2798
2799# The following way of writing the cache mishandles newlines in values,
2800# but we know of no workaround that is simple, portable, and efficient.
2801# So, we kill variables containing newlines.
2802# Ultrix sh set writes to stderr and can't be redirected directly,
2803# and sets the high bit in the cache file unless we assign to the vars.
2804(
2805 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2806 eval ac_val=\$$ac_var
2807 case $ac_val in #(
2808 *${as_nl}*)
2809 case $ac_var in #(
2810 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2811$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2812 esac
2813 case $ac_var in #(
2814 _ | IFS | as_nl) ;; #(
2815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2816 *) { eval $ac_var=; unset $ac_var;} ;;
2817 esac ;;
2818 esac
2819 done
2820
2821 (set) 2>&1 |
2822 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2824 # `set' does not quote correctly, so add quotes: double-quote
2825 # substitution turns \\\\ into \\, and sed turns \\ into \.
2826 sed -n \
2827 "s/'/'\\\\''/g;
2828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2829 ;; #(
2830 *)
2831 # `set' quotes correctly as required by POSIX, so do not add quotes.
2832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2833 ;;
2834 esac |
2835 sort
2836) |
2837 sed '
2838 /^ac_cv_env_/b end
2839 t clear
2840 :clear
2841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2842 t end
2843 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2844 :end' >>confcache
2845if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2846 if test -w "$cache_file"; then
2847 if test "x$cache_file" != "x/dev/null"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2849$as_echo "$as_me: updating cache $cache_file" >&6;}
2850 if test ! -f "$cache_file" || test -h "$cache_file"; then
2851 cat confcache >"$cache_file"
2852 else
2853 case $cache_file in #(
2854 */* | ?:*)
2855 mv -f confcache "$cache_file"$$ &&
2856 mv -f "$cache_file"$$ "$cache_file" ;; #(
2857 *)
2858 mv -f confcache "$cache_file" ;;
2859 esac
2860 fi
2861 fi
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2864$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2865 fi
2866fi
2867rm -f confcache
2868
2869test "x$prefix" = xNONE && prefix=$ac_default_prefix
2870# Let make expand exec_prefix.
2871test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2872
2873# Transform confdefs.h into DEFS.
2874# Protect against shell expansion while executing Makefile rules.
2875# Protect against Makefile macro expansion.
2876#
2877# If the first sed substitution is executed (which looks for macros that
2878# take arguments), then branch to the quote section. Otherwise,
2879# look for a macro that doesn't take arguments.
2880ac_script='
2881:mline
2882/\\$/{
2883 N
2884 s,\\\n,,
2885 b mline
2886}
2887t clear
2888:clear
2889s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2890t quote
2891s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2892t quote
2893b any
2894:quote
2895s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2896s/\[/\\&/g
2897s/\]/\\&/g
2898s/\$/$$/g
2899H
2900:any
2901${
2902 g
2903 s/^\n//
2904 s/\n/ /g
2905 p
2906}
2907'
2908DEFS=`sed -n "$ac_script" confdefs.h`
2909
2910
2911ac_libobjs=
2912ac_ltlibobjs=
2913U=
2914for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2915 # 1. Remove the extension, and $U if already installed.
2916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2917 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2919 # will be set to the directory where LIBOBJS objects are built.
2920 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2921 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2922done
2923LIBOBJS=$ac_libobjs
2924
2925LTLIBOBJS=$ac_ltlibobjs
2926
2927
2928
2929: "${CONFIG_STATUS=./config.status}"
2930ac_write_fail=0
2931ac_clean_files_save=$ac_clean_files
2932ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2934$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2935as_write_fail=0
2936cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2937#! $SHELL
2938# Generated by $as_me.
2939# Run this file to recreate the current configuration.
2940# Compiler output produced by configure, useful for debugging
2941# configure, is in config.log if it exists.
2942
2943debug=false
2944ac_cs_recheck=false
2945ac_cs_silent=false
2946
2947SHELL=\${CONFIG_SHELL-$SHELL}
2948export SHELL
2949_ASEOF
2950cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2951## -------------------- ##
2952## M4sh Initialization. ##
2953## -------------------- ##
2954
2955# Be more Bourne compatible
2956DUALCASE=1; export DUALCASE # for MKS sh
2957if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2958 emulate sh
2959 NULLCMD=:
2960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2961 # is contrary to our usage. Disable this feature.
2962 alias -g '${1+"$@"}'='"$@"'
2963 setopt NO_GLOB_SUBST
2964else
2965 case `(set -o) 2>/dev/null` in #(
2966 *posix*) :
2967 set -o posix ;; #(
2968 *) :
2969 ;;
2970esac
2971fi
2972
2973
2974as_nl='
2975'
2976export as_nl
2977# Printing a long string crashes Solaris 7 /usr/bin/printf.
2978as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2979as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2980as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2981# Prefer a ksh shell builtin over an external printf program on Solaris,
2982# but without wasting forks for bash or zsh.
2983if test -z "$BASH_VERSION$ZSH_VERSION" \
2984 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2985 as_echo='print -r --'
2986 as_echo_n='print -rn --'
2987elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2988 as_echo='printf %s\n'
2989 as_echo_n='printf %s'
2990else
2991 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2992 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2993 as_echo_n='/usr/ucb/echo -n'
2994 else
2995 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2996 as_echo_n_body='eval
2997 arg=$1;
2998 case $arg in #(
2999 *"$as_nl"*)
3000 expr "X$arg" : "X\\(.*\\)$as_nl";
3001 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3002 esac;
3003 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3004 '
3005 export as_echo_n_body
3006 as_echo_n='sh -c $as_echo_n_body as_echo'
3007 fi
3008 export as_echo_body
3009 as_echo='sh -c $as_echo_body as_echo'
3010fi
3011
3012# The user is always right.
3013if test "${PATH_SEPARATOR+set}" != set; then
3014 PATH_SEPARATOR=:
3015 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3016 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3017 PATH_SEPARATOR=';'
3018 }
3019fi
3020
3021
3022# IFS
3023# We need space, tab and new line, in precisely that order. Quoting is
3024# there to prevent editors from complaining about space-tab.
3025# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3026# splitting by setting IFS to empty value.)
3027IFS=" "" $as_nl"
3028
3029# Find who we are. Look in the path if we contain no directory separator.
3030as_myself=
3031case $0 in #((
3032 *[\\/]* ) as_myself=$0 ;;
3033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3039 done
3040IFS=$as_save_IFS
3041
3042 ;;
3043esac
3044# We did not find ourselves, most probably we were run as `sh COMMAND'
3045# in which case we are not to be found in the path.
3046if test "x$as_myself" = x; then
3047 as_myself=$0
3048fi
3049if test ! -f "$as_myself"; then
3050 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3051 exit 1
3052fi
3053
3054# Unset variables that we do not need and which cause bugs (e.g. in
3055# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3056# suppresses any "Segmentation fault" message there. '((' could
3057# trigger a bug in pdksh 5.2.14.
3058for as_var in BASH_ENV ENV MAIL MAILPATH
3059do eval test x\${$as_var+set} = xset \
3060 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3061done
3062PS1='$ '
3063PS2='> '
3064PS4='+ '
3065
3066# NLS nuisances.
3067LC_ALL=C
3068export LC_ALL
3069LANGUAGE=C
3070export LANGUAGE
3071
3072# CDPATH.
3073(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3074
3075
3076# as_fn_error STATUS ERROR [LINENO LOG_FD]
3077# ----------------------------------------
3078# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3079# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3080# script with STATUS, using 1 if that was 0.
3081as_fn_error ()
3082{
3083 as_status=$1; test $as_status -eq 0 && as_status=1
3084 if test "$4"; then
3085 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3086 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3087 fi
3088 $as_echo "$as_me: error: $2" >&2
3089 as_fn_exit $as_status
3090} # as_fn_error
3091
3092
3093# as_fn_set_status STATUS
3094# -----------------------
3095# Set $? to STATUS, without forking.
3096as_fn_set_status ()
3097{
3098 return $1
3099} # as_fn_set_status
3100
3101# as_fn_exit STATUS
3102# -----------------
3103# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3104as_fn_exit ()
3105{
3106 set +e
3107 as_fn_set_status $1
3108 exit $1
3109} # as_fn_exit
3110
3111# as_fn_unset VAR
3112# ---------------
3113# Portably unset VAR.
3114as_fn_unset ()
3115{
3116 { eval $1=; unset $1;}
3117}
3118as_unset=as_fn_unset
3119# as_fn_append VAR VALUE
3120# ----------------------
3121# Append the text in VALUE to the end of the definition contained in VAR. Take
3122# advantage of any shell optimizations that allow amortized linear growth over
3123# repeated appends, instead of the typical quadratic growth present in naive
3124# implementations.
3125if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3126 eval 'as_fn_append ()
3127 {
3128 eval $1+=\$2
3129 }'
3130else
3131 as_fn_append ()
3132 {
3133 eval $1=\$$1\$2
3134 }
3135fi # as_fn_append
3136
3137# as_fn_arith ARG...
3138# ------------------
3139# Perform arithmetic evaluation on the ARGs, and store the result in the
3140# global $as_val. Take advantage of shells that can avoid forks. The arguments
3141# must be portable across $(()) and expr.
3142if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3143 eval 'as_fn_arith ()
3144 {
3145 as_val=$(( $* ))
3146 }'
3147else
3148 as_fn_arith ()
3149 {
3150 as_val=`expr "$@" || test $? -eq 1`
3151 }
3152fi # as_fn_arith
3153
3154
3155if expr a : '\(a\)' >/dev/null 2>&1 &&
3156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3157 as_expr=expr
3158else
3159 as_expr=false
3160fi
3161
3162if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3163 as_basename=basename
3164else
3165 as_basename=false
3166fi
3167
3168if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3169 as_dirname=dirname
3170else
3171 as_dirname=false
3172fi
3173
3174as_me=`$as_basename -- "$0" ||
3175$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3176 X"$0" : 'X\(//\)$' \| \
3177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3178$as_echo X/"$0" |
3179 sed '/^.*\/\([^/][^/]*\)\/*$/{
3180 s//\1/
3181 q
3182 }
3183 /^X\/\(\/\/\)$/{
3184 s//\1/
3185 q
3186 }
3187 /^X\/\(\/\).*/{
3188 s//\1/
3189 q
3190 }
3191 s/.*/./; q'`
3192
3193# Avoid depending upon Character Ranges.
3194as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3195as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3196as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3197as_cr_digits='0123456789'
3198as_cr_alnum=$as_cr_Letters$as_cr_digits
3199
3200ECHO_C= ECHO_N= ECHO_T=
3201case `echo -n x` in #(((((
3202-n*)
3203 case `echo 'xy\c'` in
3204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3205 xy) ECHO_C='\c';;
3206 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3207 ECHO_T=' ';;
3208 esac;;
3209*)
3210 ECHO_N='-n';;
3211esac
3212
3213rm -f conf$$ conf$$.exe conf$$.file
3214if test -d conf$$.dir; then
3215 rm -f conf$$.dir/conf$$.file
3216else
3217 rm -f conf$$.dir
3218 mkdir conf$$.dir 2>/dev/null
3219fi
3220if (echo >conf$$.file) 2>/dev/null; then
3221 if ln -s conf$$.file conf$$ 2>/dev/null; then
3222 as_ln_s='ln -s'
3223 # ... but there are two gotchas:
3224 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3225 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3226 # In both cases, we have to default to `cp -pR'.
3227 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3228 as_ln_s='cp -pR'
3229 elif ln conf$$.file conf$$ 2>/dev/null; then
3230 as_ln_s=ln
3231 else
3232 as_ln_s='cp -pR'
3233 fi
3234else
3235 as_ln_s='cp -pR'
3236fi
3237rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3238rmdir conf$$.dir 2>/dev/null
3239
3240
3241# as_fn_mkdir_p
3242# -------------
3243# Create "$as_dir" as a directory, including parents if necessary.
3244as_fn_mkdir_p ()
3245{
3246
3247 case $as_dir in #(
3248 -*) as_dir=./$as_dir;;
3249 esac
3250 test -d "$as_dir" || eval $as_mkdir_p || {
3251 as_dirs=
3252 while :; do
3253 case $as_dir in #(
3254 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3255 *) as_qdir=$as_dir;;
3256 esac
3257 as_dirs="'$as_qdir' $as_dirs"
3258 as_dir=`$as_dirname -- "$as_dir" ||
3259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3260 X"$as_dir" : 'X\(//\)[^/]' \| \
3261 X"$as_dir" : 'X\(//\)$' \| \
3262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3263$as_echo X"$as_dir" |
3264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3265 s//\1/
3266 q
3267 }
3268 /^X\(\/\/\)[^/].*/{
3269 s//\1/
3270 q
3271 }
3272 /^X\(\/\/\)$/{
3273 s//\1/
3274 q
3275 }
3276 /^X\(\/\).*/{
3277 s//\1/
3278 q
3279 }
3280 s/.*/./; q'`
3281 test -d "$as_dir" && break
3282 done
3283 test -z "$as_dirs" || eval "mkdir $as_dirs"
3284 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3285
3286
3287} # as_fn_mkdir_p
3288if mkdir -p . 2>/dev/null; then
3289 as_mkdir_p='mkdir -p "$as_dir"'
3290else
3291 test -d ./-p && rmdir ./-p
3292 as_mkdir_p=false
3293fi
3294
3295
3296# as_fn_executable_p FILE
3297# -----------------------
3298# Test if FILE is an executable regular file.
3299as_fn_executable_p ()
3300{
3301 test -f "$1" && test -x "$1"
3302} # as_fn_executable_p
3303as_test_x='test -x'
3304as_executable_p=as_fn_executable_p
3305
3306# Sed expression to map a string onto a valid CPP name.
3307as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3308
3309# Sed expression to map a string onto a valid variable name.
3310as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3311
3312
3313exec 6>&1
3314## ----------------------------------- ##
3315## Main body of $CONFIG_STATUS script. ##
3316## ----------------------------------- ##
3317_ASEOF
3318test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3319
3320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3321# Save the log message, to keep $0 and so on meaningful, and to
3322# report actual input values of CONFIG_FILES etc. instead of their
3323# values after options handling.
3324ac_log="
3325This file was extended by open_pdks $as_me 1.0, which was
3326generated by GNU Autoconf 2.69. Invocation command line was
3327
3328 CONFIG_FILES = $CONFIG_FILES
3329 CONFIG_HEADERS = $CONFIG_HEADERS
3330 CONFIG_LINKS = $CONFIG_LINKS
3331 CONFIG_COMMANDS = $CONFIG_COMMANDS
3332 $ $0 $@
3333
3334on `(hostname || uname -n) 2>/dev/null | sed 1q`
3335"
3336
3337_ACEOF
3338
3339case $ac_config_files in *"
3340"*) set x $ac_config_files; shift; ac_config_files=$*;;
3341esac
3342
3343
3344
3345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3346# Files that config.status was made for.
3347config_files="$ac_config_files"
3348
3349_ACEOF
3350
3351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3352ac_cs_usage="\
3353\`$as_me' instantiates files and other configuration actions
3354from templates according to the current configuration. Unless the files
3355and actions are specified as TAGs, all are instantiated by default.
3356
3357Usage: $0 [OPTION]... [TAG]...
3358
3359 -h, --help print this help, then exit
3360 -V, --version print version number and configuration settings, then exit
3361 --config print configuration, then exit
3362 -q, --quiet, --silent
3363 do not print progress messages
3364 -d, --debug don't remove temporary files
3365 --recheck update $as_me by reconfiguring in the same conditions
3366 --file=FILE[:TEMPLATE]
3367 instantiate the configuration file FILE
3368
3369Configuration files:
3370$config_files
3371
3372Report bugs to <github.com/RTimothyEdwards/open_pdks>."
3373
3374_ACEOF
3375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3376ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3377ac_cs_version="\\
3378open_pdks config.status 1.0
3379configured by $0, generated by GNU Autoconf 2.69,
3380 with options \\"\$ac_cs_config\\"
3381
3382Copyright (C) 2012 Free Software Foundation, Inc.
3383This config.status script is free software; the Free Software Foundation
3384gives unlimited permission to copy, distribute and modify it."
3385
3386ac_pwd='$ac_pwd'
3387srcdir='$srcdir'
3388test -n "\$AWK" || AWK=awk
3389_ACEOF
3390
3391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3392# The default lists apply if the user does not specify any file.
3393ac_need_defaults=:
3394while test $# != 0
3395do
3396 case $1 in
3397 --*=?*)
3398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3400 ac_shift=:
3401 ;;
3402 --*=)
3403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3404 ac_optarg=
3405 ac_shift=:
3406 ;;
3407 *)
3408 ac_option=$1
3409 ac_optarg=$2
3410 ac_shift=shift
3411 ;;
3412 esac
3413
3414 case $ac_option in
3415 # Handling of the options.
3416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3417 ac_cs_recheck=: ;;
3418 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3419 $as_echo "$ac_cs_version"; exit ;;
3420 --config | --confi | --conf | --con | --co | --c )
3421 $as_echo "$ac_cs_config"; exit ;;
3422 --debug | --debu | --deb | --de | --d | -d )
3423 debug=: ;;
3424 --file | --fil | --fi | --f )
3425 $ac_shift
3426 case $ac_optarg in
3427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3428 '') as_fn_error $? "missing file argument" ;;
3429 esac
3430 as_fn_append CONFIG_FILES " '$ac_optarg'"
3431 ac_need_defaults=false;;
3432 --he | --h | --help | --hel | -h )
3433 $as_echo "$ac_cs_usage"; exit ;;
3434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3436 ac_cs_silent=: ;;
3437
3438 # This is an error.
3439 -*) as_fn_error $? "unrecognized option: \`$1'
3440Try \`$0 --help' for more information." ;;
3441
3442 *) as_fn_append ac_config_targets " $1"
3443 ac_need_defaults=false ;;
3444
3445 esac
3446 shift
3447done
3448
3449ac_configure_extra_args=
3450
3451if $ac_cs_silent; then
3452 exec 6>/dev/null
3453 ac_configure_extra_args="$ac_configure_extra_args --silent"
3454fi
3455
3456_ACEOF
3457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3458if \$ac_cs_recheck; then
3459 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3460 shift
3461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3462 CONFIG_SHELL='$SHELL'
3463 export CONFIG_SHELL
3464 exec "\$@"
3465fi
3466
3467_ACEOF
3468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3469exec 5>>config.log
3470{
3471 echo
3472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3473## Running $as_me. ##
3474_ASBOX
3475 $as_echo "$ac_log"
3476} >&5
3477
3478_ACEOF
3479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3480_ACEOF
3481
3482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3483
3484# Handling of arguments.
3485for ac_config_target in $ac_config_targets
3486do
3487 case $ac_config_target in
3488 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
3489
3490 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3491 esac
3492done
3493
3494
3495# If the user did not use the arguments to specify the items to instantiate,
3496# then the envvar interface is used. Set only those that are not.
3497# We use the long form for the default assignment because of an extremely
3498# bizarre bug on SunOS 4.1.3.
3499if $ac_need_defaults; then
3500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3501fi
3502
3503# Have a temporary directory for convenience. Make it in the build tree
3504# simply because there is no reason against having it here, and in addition,
3505# creating and moving files from /tmp can sometimes cause problems.
3506# Hook for its removal unless debugging.
3507# Note that there is a small window in which the directory will not be cleaned:
3508# after its creation but before its name has been assigned to `$tmp'.
3509$debug ||
3510{
3511 tmp= ac_tmp=
3512 trap 'exit_status=$?
3513 : "${ac_tmp:=$tmp}"
3514 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3515' 0
3516 trap 'as_fn_exit 1' 1 2 13 15
3517}
3518# Create a (secure) tmp directory for tmp files.
3519
3520{
3521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3522 test -d "$tmp"
3523} ||
3524{
3525 tmp=./conf$$-$RANDOM
3526 (umask 077 && mkdir "$tmp")
3527} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3528ac_tmp=$tmp
3529
3530# Set up the scripts for CONFIG_FILES section.
3531# No need to generate them if there are no CONFIG_FILES.
3532# This happens for instance with `./config.status config.h'.
3533if test -n "$CONFIG_FILES"; then
3534
3535
3536ac_cr=`echo X | tr X '\015'`
3537# On cygwin, bash can eat \r inside `` if the user requested igncr.
3538# But we know of no other shell where ac_cr would be empty at this
3539# point, so we can use a bashism as a fallback.
3540if test "x$ac_cr" = x; then
3541 eval ac_cr=\$\'\\r\'
3542fi
3543ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3544if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3545 ac_cs_awk_cr='\\r'
3546else
3547 ac_cs_awk_cr=$ac_cr
3548fi
3549
3550echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3551_ACEOF
3552
3553
3554{
3555 echo "cat >conf$$subs.awk <<_ACEOF" &&
3556 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3557 echo "_ACEOF"
3558} >conf$$subs.sh ||
3559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3560ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3561ac_delim='%!_!# '
3562for ac_last_try in false false false false false :; do
3563 . ./conf$$subs.sh ||
3564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3565
3566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3567 if test $ac_delim_n = $ac_delim_num; then
3568 break
3569 elif $ac_last_try; then
3570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3571 else
3572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3573 fi
3574done
3575rm -f conf$$subs.sh
3576
3577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3578cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3579_ACEOF
3580sed -n '
3581h
3582s/^/S["/; s/!.*/"]=/
3583p
3584g
3585s/^[^!]*!//
3586:repl
3587t repl
3588s/'"$ac_delim"'$//
3589t delim
3590:nl
3591h
3592s/\(.\{148\}\)..*/\1/
3593t more1
3594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3595p
3596n
3597b repl
3598:more1
3599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3600p
3601g
3602s/.\{148\}//
3603t nl
3604:delim
3605h
3606s/\(.\{148\}\)..*/\1/
3607t more2
3608s/["\\]/\\&/g; s/^/"/; s/$/"/
3609p
3610b
3611:more2
3612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3613p
3614g
3615s/.\{148\}//
3616t delim
3617' <conf$$subs.awk | sed '
3618/^[^""]/{
3619 N
3620 s/\n//
3621}
3622' >>$CONFIG_STATUS || ac_write_fail=1
3623rm -f conf$$subs.awk
3624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3625_ACAWK
3626cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3627 for (key in S) S_is_set[key] = 1
3628 FS = ""
3629
3630}
3631{
3632 line = $ 0
3633 nfields = split(line, field, "@")
3634 substed = 0
3635 len = length(field[1])
3636 for (i = 2; i < nfields; i++) {
3637 key = field[i]
3638 keylen = length(key)
3639 if (S_is_set[key]) {
3640 value = S[key]
3641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3642 len += length(value) + length(field[++i])
3643 substed = 1
3644 } else
3645 len += 1 + keylen
3646 }
3647
3648 print line
3649}
3650
3651_ACAWK
3652_ACEOF
3653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3656else
3657 cat
3658fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3659 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3660_ACEOF
3661
3662# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3663# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3664# trailing colons and then remove the whole line if VPATH becomes empty
3665# (actually we leave an empty line to preserve line numbers).
3666if test "x$srcdir" = x.; then
3667 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3668h
3669s///
3670s/^/:/
3671s/[ ]*$/:/
3672s/:\$(srcdir):/:/g
3673s/:\${srcdir}:/:/g
3674s/:@srcdir@:/:/g
3675s/^:*//
3676s/:*$//
3677x
3678s/\(=[ ]*\).*/\1/
3679G
3680s/\n//
3681s/^[^=]*=[ ]*$//
3682}'
3683fi
3684
3685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3686fi # test -n "$CONFIG_FILES"
3687
3688
3689eval set X " :F $CONFIG_FILES "
3690shift
3691for ac_tag
3692do
3693 case $ac_tag in
3694 :[FHLC]) ac_mode=$ac_tag; continue;;
3695 esac
3696 case $ac_mode$ac_tag in
3697 :[FHL]*:*);;
3698 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3699 :[FH]-) ac_tag=-:-;;
3700 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3701 esac
3702 ac_save_IFS=$IFS
3703 IFS=:
3704 set x $ac_tag
3705 IFS=$ac_save_IFS
3706 shift
3707 ac_file=$1
3708 shift
3709
3710 case $ac_mode in
3711 :L) ac_source=$1;;
3712 :[FH])
3713 ac_file_inputs=
3714 for ac_f
3715 do
3716 case $ac_f in
3717 -) ac_f="$ac_tmp/stdin";;
3718 *) # Look for the file first in the build tree, then in the source tree
3719 # (if the path is not absolute). The absolute path cannot be DOS-style,
3720 # because $ac_f cannot contain `:'.
3721 test -f "$ac_f" ||
3722 case $ac_f in
3723 [\\/$]*) false;;
3724 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3725 esac ||
3726 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3727 esac
3728 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3729 as_fn_append ac_file_inputs " '$ac_f'"
3730 done
3731
3732 # Let's still pretend it is `configure' which instantiates (i.e., don't
3733 # use $as_me), people would be surprised to read:
3734 # /* config.h. Generated by config.status. */
3735 configure_input='Generated from '`
3736 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3737 `' by configure.'
3738 if test x"$ac_file" != x-; then
3739 configure_input="$ac_file. $configure_input"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3741$as_echo "$as_me: creating $ac_file" >&6;}
3742 fi
3743 # Neutralize special characters interpreted by sed in replacement strings.
3744 case $configure_input in #(
3745 *\&* | *\|* | *\\* )
3746 ac_sed_conf_input=`$as_echo "$configure_input" |
3747 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3748 *) ac_sed_conf_input=$configure_input;;
3749 esac
3750
3751 case $ac_tag in
3752 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3754 esac
3755 ;;
3756 esac
3757
3758 ac_dir=`$as_dirname -- "$ac_file" ||
3759$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3760 X"$ac_file" : 'X\(//\)[^/]' \| \
3761 X"$ac_file" : 'X\(//\)$' \| \
3762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3763$as_echo X"$ac_file" |
3764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3765 s//\1/
3766 q
3767 }
3768 /^X\(\/\/\)[^/].*/{
3769 s//\1/
3770 q
3771 }
3772 /^X\(\/\/\)$/{
3773 s//\1/
3774 q
3775 }
3776 /^X\(\/\).*/{
3777 s//\1/
3778 q
3779 }
3780 s/.*/./; q'`
3781 as_dir="$ac_dir"; as_fn_mkdir_p
3782 ac_builddir=.
3783
3784case "$ac_dir" in
3785.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3786*)
3787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3788 # A ".." for each directory in $ac_dir_suffix.
3789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3790 case $ac_top_builddir_sub in
3791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3793 esac ;;
3794esac
3795ac_abs_top_builddir=$ac_pwd
3796ac_abs_builddir=$ac_pwd$ac_dir_suffix
3797# for backward compatibility:
3798ac_top_builddir=$ac_top_build_prefix
3799
3800case $srcdir in
3801 .) # We are building in place.
3802 ac_srcdir=.
3803 ac_top_srcdir=$ac_top_builddir_sub
3804 ac_abs_top_srcdir=$ac_pwd ;;
3805 [\\/]* | ?:[\\/]* ) # Absolute name.
3806 ac_srcdir=$srcdir$ac_dir_suffix;
3807 ac_top_srcdir=$srcdir
3808 ac_abs_top_srcdir=$srcdir ;;
3809 *) # Relative name.
3810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3811 ac_top_srcdir=$ac_top_build_prefix$srcdir
3812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3813esac
3814ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3815
3816
3817 case $ac_mode in
3818 :F)
3819 #
3820 # CONFIG_FILE
3821 #
3822
3823_ACEOF
3824
3825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3826# If the template does not know about datarootdir, expand it.
3827# FIXME: This hack should be removed a few years after 2.60.
3828ac_datarootdir_hack=; ac_datarootdir_seen=
3829ac_sed_dataroot='
3830/datarootdir/ {
3831 p
3832 q
3833}
3834/@datadir@/p
3835/@docdir@/p
3836/@infodir@/p
3837/@localedir@/p
3838/@mandir@/p'
3839case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3840*datarootdir*) ac_datarootdir_seen=yes;;
3841*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3843$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3844_ACEOF
3845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3846 ac_datarootdir_hack='
3847 s&@datadir@&$datadir&g
3848 s&@docdir@&$docdir&g
3849 s&@infodir@&$infodir&g
3850 s&@localedir@&$localedir&g
3851 s&@mandir@&$mandir&g
3852 s&\\\${datarootdir}&$datarootdir&g' ;;
3853esac
3854_ACEOF
3855
3856# Neutralize VPATH when `$srcdir' = `.'.
3857# Shell code in configure.ac might set extrasub.
3858# FIXME: do we really want to maintain this feature?
3859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3860ac_sed_extra="$ac_vpsub
3861$extrasub
3862_ACEOF
3863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3864:t
3865/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3866s|@configure_input@|$ac_sed_conf_input|;t t
3867s&@top_builddir@&$ac_top_builddir_sub&;t t
3868s&@top_build_prefix@&$ac_top_build_prefix&;t t
3869s&@srcdir@&$ac_srcdir&;t t
3870s&@abs_srcdir@&$ac_abs_srcdir&;t t
3871s&@top_srcdir@&$ac_top_srcdir&;t t
3872s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3873s&@builddir@&$ac_builddir&;t t
3874s&@abs_builddir@&$ac_abs_builddir&;t t
3875s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3876$ac_datarootdir_hack
3877"
3878eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3879 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3880
3881test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3882 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3883 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3884 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3886which seems to be undefined. Please make sure it is defined" >&5
3887$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3888which seems to be undefined. Please make sure it is defined" >&2;}
3889
3890 rm -f "$ac_tmp/stdin"
3891 case $ac_file in
3892 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3893 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3894 esac \
3895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3896 ;;
3897
3898
3899
3900 esac
3901
3902done # for ac_tag
3903
3904
3905as_fn_exit 0
3906_ACEOF
3907ac_clean_files=$ac_clean_files_save
3908
3909test $ac_write_fail = 0 ||
3910 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3911
3912
3913# configure is writing to config.log, and then calls config.status.
3914# config.status does its own redirection, appending to config.log.
3915# Unfortunately, on DOS this fails, as config.log is still kept open
3916# by configure, so config.status won't be able to write to it; its
3917# output is simply discarded. So we exec the FD to /dev/null,
3918# effectively closing config.log, so it can be properly (re)opened and
3919# appended to by config.status. When coming back to configure, we
3920# need to make the FD available again.
3921if test "$no_create" != yes; then
3922 ac_cs_success=:
3923 ac_config_status_args=
3924 test "$silent" = yes &&
3925 ac_config_status_args="$ac_config_status_args --quiet"
3926 exec 5>/dev/null
3927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3928 exec 5>>config.log
3929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3930 # would make configure fail if this is the last instruction.
3931 $ac_cs_success || as_fn_exit 1
3932fi
3933if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3935$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3936fi
3937
3938
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3940$as_echo "Build configured successfully" >&6; }