blob: 9af84fd0936cb7e380d691089a212f8a552c48c1 [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'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269$0: github.com/RTimothyEdwards/open_pdks about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
273 fi
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424else
425 as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430else
431 as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536else
537 as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='open_pdks'
581PACKAGE_TARNAME='open_pdks'
582PACKAGE_VERSION='1.0'
583PACKAGE_STRING='open_pdks 1.0'
584PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400589EF_STYLE
Tim Edwards1168a8b2021-02-10 22:06:54 -0500590XSCHEM_SKY130_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500591SKY130_ML_XX_HD_PATH
Ahmed Ghazy32385482021-01-19 20:38:14 +0200592PATCH
Tim Edwards8292c902020-12-24 16:25:25 -0500593MAGIC
Tim Edwards1168a8b2021-02-10 22:06:54 -0500594XSCHEM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500595QFLOW_DISABLED
596OPENLANE_DISABLED
Tim Edwards367711e2021-01-27 10:35:12 -0500597IRSIM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500598NETGEN_DISABLED
599MAGIC_DISABLED
600KLAYOUT_DISABLED
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400601SKY130_DIST_PATH
602SKY130_LOCAL_PATH
603SKY130_SOURCE_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500604SKY130_LINK_TARGETS
Tim Edwards66e53e52021-01-24 21:21:36 -0500605pkgpyexecdir
606pyexecdir
607pkgpythondir
608pythondir
609PYTHON_PLATFORM
610PYTHON_EXEC_PREFIX
611PYTHON_PREFIX
612PYTHON_VERSION
613PYTHON
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200614target_alias
615host_alias
616build_alias
617LIBS
618ECHO_T
619ECHO_N
620ECHO_C
621DEFS
622mandir
623localedir
624libdir
625psdir
626pdfdir
627dvidir
628htmldir
629infodir
630docdir
631oldincludedir
632includedir
Tim Edwards1168a8b2021-02-10 22:06:54 -0500633runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200634localstatedir
635sharedstatedir
636sysconfdir
637datadir
638datarootdir
639libexecdir
640sbindir
641bindir
642program_transform_name
643prefix
644exec_prefix
645PACKAGE_URL
646PACKAGE_BUGREPORT
647PACKAGE_STRING
648PACKAGE_VERSION
649PACKAGE_TARNAME
650PACKAGE_NAME
651PATH_SEPARATOR
652SHELL'
653ac_subst_files=''
654ac_user_opts='
655enable_option_checking
Tim Edwards8292c902020-12-24 16:25:25 -0500656enable_sky130_pdk
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400657with_sky130_local_path
658with_sky130_dist_path
659with_sky130_link_targets
Tim Edwardsccaea722020-12-24 10:59:42 -0500660enable_klayout
661enable_magic
662enable_netgen
Tim Edwards367711e2021-01-27 10:35:12 -0500663enable_irsim
Tim Edwardsccaea722020-12-24 10:59:42 -0500664enable_openlane
665enable_qflow
Tim Edwards8292c902020-12-24 16:25:25 -0500666enable_xschem
Tim Edwards1168a8b2021-02-10 22:06:54 -0500667enable_alpha_sky130
668enable_xschem_sky130
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400669with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200670'
671 ac_precious_vars='build_alias
672host_alias
673target_alias
674PYTHON'
675
676
677# Initialize some variables set by options.
678ac_init_help=
679ac_init_version=false
680ac_unrecognized_opts=
681ac_unrecognized_sep=
682# The variables have the same names as the options, with
683# dashes changed to underlines.
684cache_file=/dev/null
685exec_prefix=NONE
686no_create=
687no_recursion=
688prefix=NONE
689program_prefix=NONE
690program_suffix=NONE
691program_transform_name=s,x,x,
692silent=
693site=
694srcdir=
695verbose=
696x_includes=NONE
697x_libraries=NONE
698
699# Installation directory options.
700# These are left unexpanded so users can "make install exec_prefix=/foo"
701# and all the variables that are supposed to be based on exec_prefix
702# by default will actually change.
703# Use braces instead of parens because sh, perl, etc. also accept them.
704# (The list follows the same order as the GNU Coding Standards.)
705bindir='${exec_prefix}/bin'
706sbindir='${exec_prefix}/sbin'
707libexecdir='${exec_prefix}/libexec'
708datarootdir='${prefix}/share'
709datadir='${datarootdir}'
710sysconfdir='${prefix}/etc'
711sharedstatedir='${prefix}/com'
712localstatedir='${prefix}/var'
Tim Edwards1168a8b2021-02-10 22:06:54 -0500713runstatedir='${localstatedir}/run'
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200714includedir='${prefix}/include'
715oldincludedir='/usr/include'
716docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717infodir='${datarootdir}/info'
718htmldir='${docdir}'
719dvidir='${docdir}'
720pdfdir='${docdir}'
721psdir='${docdir}'
722libdir='${exec_prefix}/lib'
723localedir='${datarootdir}/locale'
724mandir='${datarootdir}/man'
725
726ac_prev=
727ac_dashdash=
728for ac_option
729do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *=) ac_optarg= ;;
740 *) ac_optarg=yes ;;
741 esac
742
743 # Accept the important Cygnus configure options, so we can diagnose typos.
744
745 case $ac_dashdash$ac_option in
746 --)
747 ac_dashdash=yes ;;
748
749 -bindir | --bindir | --bindi | --bind | --bin | --bi)
750 ac_prev=bindir ;;
751 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
752 bindir=$ac_optarg ;;
753
754 -build | --build | --buil | --bui | --bu)
755 ac_prev=build_alias ;;
756 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
757 build_alias=$ac_optarg ;;
758
759 -cache-file | --cache-file | --cache-fil | --cache-fi \
760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761 ac_prev=cache_file ;;
762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
764 cache_file=$ac_optarg ;;
765
766 --config-cache | -C)
767 cache_file=config.cache ;;
768
769 -datadir | --datadir | --datadi | --datad)
770 ac_prev=datadir ;;
771 -datadir=* | --datadir=* | --datadi=* | --datad=*)
772 datadir=$ac_optarg ;;
773
774 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775 | --dataroo | --dataro | --datar)
776 ac_prev=datarootdir ;;
777 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779 datarootdir=$ac_optarg ;;
780
781 -disable-* | --disable-*)
782 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
785 as_fn_error $? "invalid feature name: $ac_useropt"
786 ac_useropt_orig=$ac_useropt
787 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
788 case $ac_user_opts in
789 *"
790"enable_$ac_useropt"
791"*) ;;
792 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
793 ac_unrecognized_sep=', ';;
794 esac
795 eval enable_$ac_useropt=no ;;
796
797 -docdir | --docdir | --docdi | --doc | --do)
798 ac_prev=docdir ;;
799 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
800 docdir=$ac_optarg ;;
801
802 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
803 ac_prev=dvidir ;;
804 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
805 dvidir=$ac_optarg ;;
806
807 -enable-* | --enable-*)
808 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error $? "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
815 *"
816"enable_$ac_useropt"
817"*) ;;
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
820 esac
821 eval enable_$ac_useropt=\$ac_optarg ;;
822
823 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
824 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
825 | --exec | --exe | --ex)
826 ac_prev=exec_prefix ;;
827 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
828 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
829 | --exec=* | --exe=* | --ex=*)
830 exec_prefix=$ac_optarg ;;
831
832 -gas | --gas | --ga | --g)
833 # Obsolete; use --with-gas.
834 with_gas=yes ;;
835
836 -help | --help | --hel | --he | -h)
837 ac_init_help=long ;;
838 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
839 ac_init_help=recursive ;;
840 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
841 ac_init_help=short ;;
842
843 -host | --host | --hos | --ho)
844 ac_prev=host_alias ;;
845 -host=* | --host=* | --hos=* | --ho=*)
846 host_alias=$ac_optarg ;;
847
848 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
849 ac_prev=htmldir ;;
850 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
851 | --ht=*)
852 htmldir=$ac_optarg ;;
853
854 -includedir | --includedir | --includedi | --included | --include \
855 | --includ | --inclu | --incl | --inc)
856 ac_prev=includedir ;;
857 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
858 | --includ=* | --inclu=* | --incl=* | --inc=*)
859 includedir=$ac_optarg ;;
860
861 -infodir | --infodir | --infodi | --infod | --info | --inf)
862 ac_prev=infodir ;;
863 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
864 infodir=$ac_optarg ;;
865
866 -libdir | --libdir | --libdi | --libd)
867 ac_prev=libdir ;;
868 -libdir=* | --libdir=* | --libdi=* | --libd=*)
869 libdir=$ac_optarg ;;
870
871 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
872 | --libexe | --libex | --libe)
873 ac_prev=libexecdir ;;
874 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
875 | --libexe=* | --libex=* | --libe=*)
876 libexecdir=$ac_optarg ;;
877
878 -localedir | --localedir | --localedi | --localed | --locale)
879 ac_prev=localedir ;;
880 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
881 localedir=$ac_optarg ;;
882
883 -localstatedir | --localstatedir | --localstatedi | --localstated \
884 | --localstate | --localstat | --localsta | --localst | --locals)
885 ac_prev=localstatedir ;;
886 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
887 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
888 localstatedir=$ac_optarg ;;
889
890 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
891 ac_prev=mandir ;;
892 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
893 mandir=$ac_optarg ;;
894
895 -nfp | --nfp | --nf)
896 # Obsolete; use --without-fp.
897 with_fp=no ;;
898
899 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
900 | --no-cr | --no-c | -n)
901 no_create=yes ;;
902
903 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
904 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
905 no_recursion=yes ;;
906
907 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
908 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
909 | --oldin | --oldi | --old | --ol | --o)
910 ac_prev=oldincludedir ;;
911 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
912 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
913 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
914 oldincludedir=$ac_optarg ;;
915
916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
917 ac_prev=prefix ;;
918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
919 prefix=$ac_optarg ;;
920
921 -program-prefix | --program-prefix | --program-prefi | --program-pref \
922 | --program-pre | --program-pr | --program-p)
923 ac_prev=program_prefix ;;
924 -program-prefix=* | --program-prefix=* | --program-prefi=* \
925 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
926 program_prefix=$ac_optarg ;;
927
928 -program-suffix | --program-suffix | --program-suffi | --program-suff \
929 | --program-suf | --program-su | --program-s)
930 ac_prev=program_suffix ;;
931 -program-suffix=* | --program-suffix=* | --program-suffi=* \
932 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
933 program_suffix=$ac_optarg ;;
934
935 -program-transform-name | --program-transform-name \
936 | --program-transform-nam | --program-transform-na \
937 | --program-transform-n | --program-transform- \
938 | --program-transform | --program-transfor \
939 | --program-transfo | --program-transf \
940 | --program-trans | --program-tran \
941 | --progr-tra | --program-tr | --program-t)
942 ac_prev=program_transform_name ;;
943 -program-transform-name=* | --program-transform-name=* \
944 | --program-transform-nam=* | --program-transform-na=* \
945 | --program-transform-n=* | --program-transform-=* \
946 | --program-transform=* | --program-transfor=* \
947 | --program-transfo=* | --program-transf=* \
948 | --program-trans=* | --program-tran=* \
949 | --progr-tra=* | --program-tr=* | --program-t=*)
950 program_transform_name=$ac_optarg ;;
951
952 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
953 ac_prev=pdfdir ;;
954 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
955 pdfdir=$ac_optarg ;;
956
957 -psdir | --psdir | --psdi | --psd | --ps)
958 ac_prev=psdir ;;
959 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
960 psdir=$ac_optarg ;;
961
962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
963 | -silent | --silent | --silen | --sile | --sil)
964 silent=yes ;;
965
Tim Edwards1168a8b2021-02-10 22:06:54 -0500966 -runstatedir | --runstatedir | --runstatedi | --runstated \
967 | --runstate | --runstat | --runsta | --runst | --runs \
968 | --run | --ru | --r)
969 ac_prev=runstatedir ;;
970 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
971 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
972 | --run=* | --ru=* | --r=*)
973 runstatedir=$ac_optarg ;;
974
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200975 -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 Edwards1168a8b2021-02-10 22:06:54 -05001112 libdir localedir mandir runstatedir
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]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001265 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279_ACEOF
1280
1281 cat <<\_ACEOF
1282_ACEOF
1283fi
1284
1285if test -n "$ac_init_help"; then
1286 case $ac_init_help in
1287 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1288 esac
1289 cat <<\_ACEOF
1290
Tim Edwardsccaea722020-12-24 10:59:42 -05001291Optional Features:
1292 --disable-option-checking ignore unrecognized --enable/--with options
1293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tim Edwards8292c902020-12-24 16:25:25 -05001295 --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk
1296 "location of the source files for the sky130 (pdks
Ahmed Ghazy32385482021-01-19 20:38:14 +02001297 with a pdk_url file can automatically download them
Tim Edwards8292c902020-12-24 16:25:25 -05001298 if the path is omitted)"
1299 --enable-klayout
Tim Edwards1168a8b2021-02-10 22:06:54 -05001300 Enable or disable klayout setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001301
1302
1303 --enable-magic
Tim Edwards1168a8b2021-02-10 22:06:54 -05001304 Enable or disable magic setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001305
1306
1307 --enable-netgen
Tim Edwards1168a8b2021-02-10 22:06:54 -05001308 Enable or disable netgen setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001309
1310
Tim Edwards367711e2021-01-27 10:35:12 -05001311 --enable-irsim
Tim Edwards1168a8b2021-02-10 22:06:54 -05001312 Enable or disable irsim setup [default=enabled]
Tim Edwards367711e2021-01-27 10:35:12 -05001313
1314
Tim Edwards8292c902020-12-24 16:25:25 -05001315 --enable-openlane
Tim Edwards1168a8b2021-02-10 22:06:54 -05001316 Enable or disable openlane setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001317
1318
1319 --enable-qflow
Tim Edwards1168a8b2021-02-10 22:06:54 -05001320 Enable or disable qflow setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001321
1322
Tim Edwards1168a8b2021-02-10 22:06:54 -05001323 --enable-xschem
1324 Enable or disable xschem setup [default=enabled]
1325
1326
1327 --enable-alpha-sky130[=path]
Tim Edwards8292c902020-12-24 16:25:25 -05001328 Install sky130_ml_xx_hd. If path is omitted, it'll be
1329 downloaded. [default=disabled]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001330 --enable-xschem-sky130[=path]
1331 Install xschem_sky130. If path is omitted, it'll be
Tim Edwards8292c902020-12-24 16:25:25 -05001332 downloaded. [default=disabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001333
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001334Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tim Edwards8292c902020-12-24 16:25:25 -05001337 --with-sky130-local-path=/path/to/install/sky130
1338 "run-time location of the PDK"
1339 --with-sky130-dist-path=/path/to/install/sky130
1340 "staging location to install the PDK for
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001341 distribution (optional)"
1342 --with-sky130-link-targets=none|source
1343 "make symbolic links to existing files
1344 [default=none]"
1345 --with-ef-style Use efabless style file system structure
1346 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001347
1348Some influential environment variables:
1349 PYTHON the Python interpreter
1350
1351Use these variables to override the choices made by `configure' or to help
1352it to find libraries and programs with nonstandard names/locations.
1353
1354Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1355_ACEOF
1356ac_status=$?
1357fi
1358
1359if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" ||
1363 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1364 continue
1365 ac_builddir=.
1366
1367case "$ac_dir" in
1368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369*)
1370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1371 # A ".." for each directory in $ac_dir_suffix.
1372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1373 case $ac_top_builddir_sub in
1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1376 esac ;;
1377esac
1378ac_abs_top_builddir=$ac_pwd
1379ac_abs_builddir=$ac_pwd$ac_dir_suffix
1380# for backward compatibility:
1381ac_top_builddir=$ac_top_build_prefix
1382
1383case $srcdir in
1384 .) # We are building in place.
1385 ac_srcdir=.
1386 ac_top_srcdir=$ac_top_builddir_sub
1387 ac_abs_top_srcdir=$ac_pwd ;;
1388 [\\/]* | ?:[\\/]* ) # Absolute name.
1389 ac_srcdir=$srcdir$ac_dir_suffix;
1390 ac_top_srcdir=$srcdir
1391 ac_abs_top_srcdir=$srcdir ;;
1392 *) # Relative name.
1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1394 ac_top_srcdir=$ac_top_build_prefix$srcdir
1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1396esac
1397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1398
1399 cd "$ac_dir" || { ac_status=$?; continue; }
1400 # Check for guested configure.
1401 if test -f "$ac_srcdir/configure.gnu"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1404 elif test -f "$ac_srcdir/configure"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure" --help=recursive
1407 else
1408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1409 fi || ac_status=$?
1410 cd "$ac_pwd" || { ac_status=$?; break; }
1411 done
1412fi
1413
1414test -n "$ac_init_help" && exit $ac_status
1415if $ac_init_version; then
1416 cat <<\_ACEOF
1417open_pdks configure 1.0
1418generated by GNU Autoconf 2.69
1419
1420Copyright (C) 2012 Free Software Foundation, Inc.
1421This configure script is free software; the Free Software Foundation
1422gives unlimited permission to copy, distribute and modify it.
1423_ACEOF
1424 exit
1425fi
1426
1427## ------------------------ ##
1428## Autoconf initialization. ##
1429## ------------------------ ##
1430cat >config.log <<_ACEOF
1431This file contains any messages produced by compilers while
1432running configure, to aid debugging if configure makes a mistake.
1433
1434It was created by open_pdks $as_me 1.0, which was
1435generated by GNU Autoconf 2.69. Invocation command line was
1436
1437 $ $0 $@
1438
1439_ACEOF
1440exec 5>>config.log
1441{
1442cat <<_ASUNAME
1443## --------- ##
1444## Platform. ##
1445## --------- ##
1446
1447hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451uname -v = `(uname -v) 2>/dev/null || echo unknown`
1452
1453/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1455
1456/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
1464_ASUNAME
1465
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 $as_echo "PATH: $as_dir"
1472 done
1473IFS=$as_save_IFS
1474
1475} >&5
1476
1477cat >&5 <<_ACEOF
1478
1479
1480## ----------- ##
1481## Core tests. ##
1482## ----------- ##
1483
1484_ACEOF
1485
1486
1487# Keep a trace of the command line.
1488# Strip out --no-create and --no-recursion so they do not pile up.
1489# Strip out --silent because we don't want to record it for future runs.
1490# Also quote any args containing shell meta-characters.
1491# Make two passes to allow for proper duplicate-argument suppression.
1492ac_configure_args=
1493ac_configure_args0=
1494ac_configure_args1=
1495ac_must_keep_next=false
1496for ac_pass in 1 2
1497do
1498 for ac_arg
1499 do
1500 case $ac_arg in
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 continue ;;
1505 *\'*)
1506 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 esac
1508 case $ac_pass in
1509 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1510 2)
1511 as_fn_append ac_configure_args1 " '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1514 else
1515 case $ac_arg in
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1522 esac
1523 ;;
1524 -* ) ac_must_keep_next=true ;;
1525 esac
1526 fi
1527 as_fn_append ac_configure_args " '$ac_arg'"
1528 ;;
1529 esac
1530 done
1531done
1532{ ac_configure_args0=; unset ac_configure_args0;}
1533{ ac_configure_args1=; unset ac_configure_args1;}
1534
1535# When interrupted or exit'd, cleanup temporary files, and complete
1536# config.log. We remove comments because anyway the quotes in there
1537# would cause problems or look ugly.
1538# WARNING: Use '\'' to represent an apostrophe within the trap.
1539# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1542 {
1543 echo
1544
1545 $as_echo "## ---------------- ##
1546## Cache variables. ##
1547## ---------------- ##"
1548 echo
1549 # The following way of writing the cache mishandles newlines in values,
1550(
1551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1552 eval ac_val=\$$ac_var
1553 case $ac_val in #(
1554 *${as_nl}*)
1555 case $ac_var in #(
1556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1558 esac
1559 case $ac_var in #(
1560 _ | IFS | as_nl) ;; #(
1561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1562 *) { eval $ac_var=; unset $ac_var;} ;;
1563 esac ;;
1564 esac
1565 done
1566 (set) 2>&1 |
1567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1568 *${as_nl}ac_space=\ *)
1569 sed -n \
1570 "s/'\''/'\''\\\\'\'''\''/g;
1571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1572 ;; #(
1573 *)
1574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1575 ;;
1576 esac |
1577 sort
1578)
1579 echo
1580
1581 $as_echo "## ----------------- ##
1582## Output variables. ##
1583## ----------------- ##"
1584 echo
1585 for ac_var in $ac_subst_vars
1586 do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in
1589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 esac
1591 $as_echo "$ac_var='\''$ac_val'\''"
1592 done | sort
1593 echo
1594
1595 if test -n "$ac_subst_files"; then
1596 $as_echo "## ------------------- ##
1597## File substitutions. ##
1598## ------------------- ##"
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 $as_echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 $as_echo "## ----------- ##
1613## confdefs.h. ##
1614## ----------- ##"
1615 echo
1616 cat confdefs.h
1617 echo
1618 fi
1619 test "$ac_signal" != 0 &&
1620 $as_echo "$as_me: caught signal $ac_signal"
1621 $as_echo "$as_me: exit $exit_status"
1622 } >&5
1623 rm -f core *.core core.conftest.* &&
1624 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1625 exit $exit_status
1626' 0
1627for ac_signal in 1 2 13 15; do
1628 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1629done
1630ac_signal=0
1631
1632# confdefs.h avoids OS command line length limits that DEFS can exceed.
1633rm -f -r conftest* confdefs.h
1634
1635$as_echo "/* confdefs.h */" > confdefs.h
1636
1637# Predefined preprocessor variables.
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_NAME "$PACKAGE_NAME"
1641_ACEOF
1642
1643cat >>confdefs.h <<_ACEOF
1644#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1645_ACEOF
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE_VERSION "$PACKAGE_VERSION"
1649_ACEOF
1650
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_STRING "$PACKAGE_STRING"
1653_ACEOF
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657_ACEOF
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_URL "$PACKAGE_URL"
1661_ACEOF
1662
1663
1664# Let the site file select an alternate cache file if it wants to.
1665# Prefer an explicitly selected file to automatically selected ones.
1666ac_site_file1=NONE
1667ac_site_file2=NONE
1668if test -n "$CONFIG_SITE"; then
1669 # We do not want a PATH search for config.site.
1670 case $CONFIG_SITE in #((
1671 -*) ac_site_file1=./$CONFIG_SITE;;
1672 */*) ac_site_file1=$CONFIG_SITE;;
1673 *) ac_site_file1=./$CONFIG_SITE;;
1674 esac
1675elif test "x$prefix" != xNONE; then
1676 ac_site_file1=$prefix/share/config.site
1677 ac_site_file2=$prefix/etc/config.site
1678else
1679 ac_site_file1=$ac_default_prefix/share/config.site
1680 ac_site_file2=$ac_default_prefix/etc/config.site
1681fi
1682for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1683do
1684 test "x$ac_site_file" = xNONE && continue
1685 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1687$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1689 . "$ac_site_file" \
1690 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1692as_fn_error $? "failed to load site script $ac_site_file
1693See \`config.log' for more details" "$LINENO" 5; }
1694 fi
1695done
1696
1697if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special files
1699 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1700 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1702$as_echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1707 fi
1708else
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1710$as_echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1712fi
1713
1714# Check that the precious variables saved in the cache have kept the same
1715# value.
1716ac_cache_corrupted=false
1717for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1729$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1732 *)
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 # differences in whitespace do not lead to failure.
1735 ac_old_val_w=`echo x $ac_old_val`
1736 ac_new_val_w=`echo x $ac_new_val`
1737 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1739$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740 ac_cache_corrupted=:
1741 else
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1743$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1744 eval $ac_var=\$ac_old_val
1745 fi
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1747$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1749$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1761 esac
1762 fi
1763done
1764if $ac_cache_corrupted; then
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1768$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1770fi
1771## -------------------- ##
1772## Main body of script. ##
1773## -------------------- ##
1774
1775ac_ext=c
1776ac_cpp='$CPP $CPPFLAGS'
1777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780
1781
1782
Tim Edwardsccaea722020-12-24 10:59:42 -05001783## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001784
1785
1786
1787
1788
1789
1790 if test -n "$PYTHON"; then
1791 # If the user set $PYTHON, use it and don't search something else.
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1793$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1794 prog="import sys
1795# split strings by '.' and convert to numeric. Append some zeros
1796# because we need at least 4 digits for the hex conversion.
1797# map returns an iterator in Python 3.0 and a list in 2.x
1798minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1799minverhex = 0
1800# xrange is not present in Python 3.0 and range returns an iterator
1801for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1802sys.exit(sys.hexversion < minverhex)"
1803 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1804 ($PYTHON -c "$prog") >&5 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1809$as_echo "yes" >&6; }
1810else
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1812$as_echo "no" >&6; }
1813 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1814fi
1815 am_display_PYTHON=$PYTHON
1816 else
1817 # Otherwise, try each interpreter until we find one that satisfies
1818 # VERSION.
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1820$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1821if ${am_cv_pathless_PYTHON+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823else
1824
Tim Edwards1168a8b2021-02-10 22:06:54 -05001825 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 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 +02001826 test "$am_cv_pathless_PYTHON" = none && break
1827 prog="import sys
1828# split strings by '.' and convert to numeric. Append some zeros
1829# because we need at least 4 digits for the hex conversion.
1830# map returns an iterator in Python 3.0 and a list in 2.x
1831minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1832minverhex = 0
1833# xrange is not present in Python 3.0 and range returns an iterator
1834for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1835sys.exit(sys.hexversion < minverhex)"
1836 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1837 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; then :
1841 break
1842fi
1843 done
1844fi
1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1846$as_echo "$am_cv_pathless_PYTHON" >&6; }
1847 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1848 if test "$am_cv_pathless_PYTHON" = none; then
1849 PYTHON=:
1850 else
1851 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1852set dummy $am_cv_pathless_PYTHON; ac_word=$2
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1854$as_echo_n "checking for $ac_word... " >&6; }
1855if ${ac_cv_path_PYTHON+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 case $PYTHON in
1859 [\\/]* | ?:[\\/]*)
1860 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1861 ;;
1862 *)
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 break 2
1873 fi
1874done
1875 done
1876IFS=$as_save_IFS
1877
1878 ;;
1879esac
1880fi
1881PYTHON=$ac_cv_path_PYTHON
1882if test -n "$PYTHON"; then
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1884$as_echo "$PYTHON" >&6; }
1885else
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1887$as_echo "no" >&6; }
1888fi
1889
1890
1891 fi
1892 am_display_PYTHON=$am_cv_pathless_PYTHON
1893 fi
1894
1895
1896 if test "$PYTHON" = :; then
1897 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1898 else
1899
1900
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1902$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1903if ${am_cv_python_version+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905else
1906 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
1907fi
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1909$as_echo "$am_cv_python_version" >&6; }
1910 PYTHON_VERSION=$am_cv_python_version
1911
1912
1913
1914 PYTHON_PREFIX='${prefix}'
1915
1916 PYTHON_EXEC_PREFIX='${exec_prefix}'
1917
1918
1919
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1921$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1922if ${am_cv_python_platform+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924else
1925 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1926fi
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1928$as_echo "$am_cv_python_platform" >&6; }
1929 PYTHON_PLATFORM=$am_cv_python_platform
1930
1931
1932 # Just factor out some code duplication.
1933 am_python_setup_sysconfig="\
1934import sys
1935# Prefer sysconfig over distutils.sysconfig, for better compatibility
1936# with python 3.x. See automake bug#10227.
1937try:
1938 import sysconfig
1939except ImportError:
1940 can_use_sysconfig = 0
1941else:
1942 can_use_sysconfig = 1
1943# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1944# <https://github.com/pypa/virtualenv/issues/118>
1945try:
1946 from platform import python_implementation
1947 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1948 can_use_sysconfig = 0
1949except ImportError:
1950 pass"
1951
1952
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
1954$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
1955if ${am_cv_python_pythondir+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957else
1958 if test "x$prefix" = xNONE
1959 then
1960 am_py_prefix=$ac_default_prefix
1961 else
1962 am_py_prefix=$prefix
1963 fi
1964 am_cv_python_pythondir=`$PYTHON -c "
1965$am_python_setup_sysconfig
1966if can_use_sysconfig:
1967 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1968else:
1969 from distutils import sysconfig
1970 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1971sys.stdout.write(sitedir)"`
1972 case $am_cv_python_pythondir in
1973 $am_py_prefix*)
1974 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1975 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1976 ;;
1977 *)
1978 case $am_py_prefix in
1979 /usr|/System*) ;;
1980 *)
1981 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1982 ;;
1983 esac
1984 ;;
1985 esac
1986
1987fi
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
1989$as_echo "$am_cv_python_pythondir" >&6; }
1990 pythondir=$am_cv_python_pythondir
1991
1992
1993
1994 pkgpythondir=\${pythondir}/$PACKAGE
1995
1996
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
1998$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
1999if ${am_cv_python_pyexecdir+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001else
2002 if test "x$exec_prefix" = xNONE
2003 then
2004 am_py_exec_prefix=$am_py_prefix
2005 else
2006 am_py_exec_prefix=$exec_prefix
2007 fi
2008 am_cv_python_pyexecdir=`$PYTHON -c "
2009$am_python_setup_sysconfig
2010if can_use_sysconfig:
2011 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2012else:
2013 from distutils import sysconfig
2014 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2015sys.stdout.write(sitedir)"`
2016 case $am_cv_python_pyexecdir in
2017 $am_py_exec_prefix*)
2018 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2019 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2020 ;;
2021 *)
2022 case $am_py_exec_prefix in
2023 /usr|/System*) ;;
2024 *)
2025 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2026 ;;
2027 esac
2028 ;;
2029 esac
2030
2031fi
2032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2033$as_echo "$am_cv_python_pyexecdir" >&6; }
2034 pyexecdir=$am_cv_python_pyexecdir
2035
2036
2037
2038 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2039
2040
2041
2042 fi
2043
2044
2045
2046 if test -z $PYTHON;
2047 then
Tim Edwards1168a8b2021-02-10 22:06:54 -05002048 if test -z "";
2049 then
2050 PYTHON="python3"
2051 else
2052 PYTHON=""
2053 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002054 fi
2055 PYTHON_NAME=`basename $PYTHON`
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2057$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwards1168a8b2021-02-10 22:06:54 -05002058 $PYTHON -c "import distutils" 2>/dev/null
2059 if test $? -eq 0;
2060 then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002062$as_echo "yes" >&6; }
Tim Edwards1168a8b2021-02-10 22:06:54 -05002063 eval HAVE_PYMOD_DISTUTILS=yes
2064 else
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002066$as_echo "no" >&6; }
Tim Edwards1168a8b2021-02-10 22:06:54 -05002067 eval HAVE_PYMOD_DISTUTILS=no
2068 #
2069 if test -n ""
2070 then
2071 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2072 exit 1
2073 fi
2074 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002075
2076
Tim Edwards66e53e52021-01-24 21:21:36 -05002077realpath() {
2078 # Cross-platform, handles ~
2079 python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1
2080}
2081
2082# detect PDKs based on directories that include Makefile.in files
2083
2084
2085# define tools
2086# define tools to install setup files for. This does not imply that the tools are
2087# available on the system; just that open_pdks will install the setup files for them.
Tim Edwards66e53e52021-01-24 21:21:36 -05002088
2089
Tim Edwards66e53e52021-01-24 21:21:36 -05002090# check for the source and install paths for each PDK.
2091
2092
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
2094$as_echo "$as_me: Found technology directories: sky130" >&6;}
2095
2096
2097
2098 # --enable-pdk-[pdk]=/path/to/pdk
2099
Tim Edwards1168a8b2021-02-10 22:06:54 -05002100 echo "Checking technology sky130..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002101
2102
2103 SKY130_SOURCE_PATH=""
2104 SKY130_LOCAL_PATH=""
2105 SKY130_DIST_PATH=""
2106 SKY130_LINK_TARGETS="none"
2107
2108 pdk_get() {
Tim Edwards1168a8b2021-02-10 22:06:54 -05002109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../sky130/pdk_info.txt" >&5
2110$as_echo_n "checking for ../sky130/pdk_info.txt... " >&6; }
2111if ${ac_cv_file____sky130_pdk_info_txt+:} false; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002112 $as_echo_n "(cached) " >&6
2113else
2114 test "$cross_compiling" = yes &&
2115 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
Tim Edwards1168a8b2021-02-10 22:06:54 -05002116if test -r "../sky130/pdk_info.txt"; then
2117 ac_cv_file____sky130_pdk_info_txt=yes
Tim Edwards66e53e52021-01-24 21:21:36 -05002118else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002119 ac_cv_file____sky130_pdk_info_txt=no
Tim Edwards66e53e52021-01-24 21:21:36 -05002120fi
2121fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____sky130_pdk_info_txt" >&5
2123$as_echo "$ac_cv_file____sky130_pdk_info_txt" >&6; }
2124if test "x$ac_cv_file____sky130_pdk_info_txt" = xyes; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002125
Tim Edwards1168a8b2021-02-10 22:06:54 -05002126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../sources/sky130" >&5
2127$as_echo_n "checking for ../sources/sky130... " >&6; }
2128if ${ac_cv_file____sources_sky130+:} false; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002129 $as_echo_n "(cached) " >&6
2130else
2131 test "$cross_compiling" = yes &&
2132 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
Tim Edwards1168a8b2021-02-10 22:06:54 -05002133if test -r "../sources/sky130"; then
2134 ac_cv_file____sources_sky130=yes
Tim Edwards66e53e52021-01-24 21:21:36 -05002135else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002136 ac_cv_file____sources_sky130=no
Tim Edwards66e53e52021-01-24 21:21:36 -05002137fi
2138fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____sources_sky130" >&5
2140$as_echo "$ac_cv_file____sources_sky130" >&6; }
2141if test "x$ac_cv_file____sources_sky130" = xyes; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002142
2143 echo "Using pre-existing sky130 download..."
2144
2145else
2146
Tim Edwards1168a8b2021-02-10 22:06:54 -05002147 REPO=$(cat "../sky130/pdk_info.txt" | sed -n "1p")
2148 POST_CLONE_COMMANDS=$(cat "../sky130/pdk_info.txt" | sed "1d")
2149 mkdir -p ../sources
2150 git clone "$REPO" ../sources/sky130;
2151 (cd ../sources/sky130 && sh -c "$POST_CLONE_COMMANDS")
Tim Edwards66e53e52021-01-24 21:21:36 -05002152
2153fi
2154
Tim Edwards1168a8b2021-02-10 22:06:54 -05002155 export SKY130_SOURCE_PATH=../sources/sky130
Tim Edwards66e53e52021-01-24 21:21:36 -05002156
2157else
2158
2159 as_fn_error $? "PDK sky130 cannot be automatically downloaded and requires a path." "$LINENO" 5
2160
2161fi
2162
2163 }
2164
2165 pdk_find() {
2166 FOUND=0
2167 for path in /opt/pdks/sky130 /usr/share/pdks/sky130 /usr/local/share/pdks/sky130; do
2168 if [ -d $path ] ; then
2169 echo "Found sky130 in $path, using this installation..."
2170 export SKY130_SOURCE_PATH=$path
2171 FOUND=1
2172 fi
2173 done
Tim Edwards1168a8b2021-02-10 22:06:54 -05002174 if [ "$FOUND" = "0" ]; then
2175 echo "Could not find sky130 in standard search paths, automatically fetching repository to ../sources/sky130 ..."
2176 pdk_get
Tim Edwards66e53e52021-01-24 21:21:36 -05002177 fi
2178 }
2179
2180 # Check whether --enable-sky130-sky130 was given.
2181if test "${enable_sky130_pdk+set}" = set; then :
2182 enableval=$enable_sky130_pdk;
2183 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards1168a8b2021-02-10 22:06:54 -05002184 echo "Looking for sky130 in usual places"
2185 pdk_find
Tim Edwards66e53e52021-01-24 21:21:36 -05002186 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2187 echo "Disabling sky130..."
2188 else
2189 SKY130_SOURCE_PATH=$enableval
2190 fi
2191
Tim Edwards66e53e52021-01-24 21:21:36 -05002192fi
2193
2194 # # Require this argument
2195
2196 if [ "$SKY130_SOURCE_PATH" != "" ]; then
2197 SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH`
2198 SKY130_BASENAME=`basename $SKY130_SOURCE_PATH`
2199 if [ "$SKY130_BASENAME" = "libraries" ]; then
2200 SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH`
2201 fi
2202 # basic check that the PDK exists there (the path must exist in any case)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
2204$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
2205 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
2207$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
2208if eval \${$as_ac_File+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210else
2211 test "$cross_compiling" = yes &&
2212 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2213if test -r "$SKY130_SOURCE_PATH"; then
2214 eval "$as_ac_File=yes"
2215else
2216 eval "$as_ac_File=no"
2217fi
2218fi
2219eval ac_res=\$$as_ac_File
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
2223
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
2225$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
2226
2227else
2228
2229 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
2230
2231fi
2232
2233
2234 # --with-pdk-local-path=PDK_LOCAL_PATH
2235
2236# Check whether --with-sky130-local-path was given.
2237if test "${with_sky130_local_path+set}" = set; then :
2238 withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval
2239
2240fi
2241
2242
2243 # Require this argument
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5
2245$as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;}
2246 if test "x$SKY130_LOCAL_PATH" == "x" ; then
2247 as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5
2248 SKY130_LOCAL_PATH=""
2249 else
2250 SKY130_LOCAL_PATH=`realpath $SKY130_LOCAL_PATH`
2251 fi
2252
2253 # --with-pdk-dist-path=PDK_DIST_PATH
2254
2255# Check whether --with-sky130-dist-path was given.
2256if test "${with_sky130_dist_path+set}" = set; then :
2257 withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval
2258
2259fi
2260
2261
2262
2263 # "Require" this argument
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5
2265$as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;}
2266 if test "x$SKY130_DIST_PATH" == "x" ; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only." >&5
2268$as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only." >&6;}
2269 SKY130_DIST_PATH=""
2270 else
2271 SKY130_DIST_PATH=`realpath $SKY130_DIST_PATH`
2272 fi
2273
2274 # --with-pdk-link-targets=PDK_LINK_TARGETS
2275
2276# Check whether --with-sky130-link-targets was given.
2277if test "${with_sky130_link_targets+set}" = set; then :
2278 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
2279
2280fi
2281
2282
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
2284$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
2285 fi
2286
2287
2288
2289
2290
2291
2292
2293
2294# Set variables for tool setups
2295
2296
Tim Edwards1168a8b2021-02-10 22:06:54 -05002297{ $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5
2298$as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002299
2300
2301
2302
2303
2304 KLAYOUT_DISABLED=0
2305 # Check whether --enable-klayout was given.
2306if test "${enable_klayout+set}" = set; then :
2307 enableval=$enable_klayout;
2308 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2309 KLAYOUT_DISABLED=1
2310 fi
2311
2312
2313fi
2314
2315
2316
2317
2318
2319 MAGIC_DISABLED=0
2320 # Check whether --enable-magic was given.
2321if test "${enable_magic+set}" = set; then :
2322 enableval=$enable_magic;
2323 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2324 MAGIC_DISABLED=1
2325 fi
2326
2327
2328fi
2329
2330
2331
2332
2333
2334 NETGEN_DISABLED=0
2335 # Check whether --enable-netgen was given.
2336if test "${enable_netgen+set}" = set; then :
2337 enableval=$enable_netgen;
2338 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2339 NETGEN_DISABLED=1
2340 fi
2341
2342
2343fi
2344
2345
2346
2347
2348
Tim Edwards367711e2021-01-27 10:35:12 -05002349 IRSIM_DISABLED=0
2350 # Check whether --enable-irsim was given.
2351if test "${enable_irsim+set}" = set; then :
2352 enableval=$enable_irsim;
2353 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2354 IRSIM_DISABLED=1
2355 fi
2356
2357
2358fi
2359
2360
2361
2362
2363
Tim Edwards66e53e52021-01-24 21:21:36 -05002364 OPENLANE_DISABLED=0
2365 # Check whether --enable-openlane was given.
2366if test "${enable_openlane+set}" = set; then :
2367 enableval=$enable_openlane;
2368 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2369 OPENLANE_DISABLED=1
2370 fi
2371
2372
2373fi
2374
2375
2376
2377
2378
2379 QFLOW_DISABLED=0
2380 # Check whether --enable-qflow was given.
2381if test "${enable_qflow+set}" = set; then :
2382 enableval=$enable_qflow;
2383 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2384 QFLOW_DISABLED=1
2385 fi
2386
2387
2388fi
2389
2390
2391
2392
2393
Tim Edwards1168a8b2021-02-10 22:06:54 -05002394 XSCHEM_DISABLED=0
2395 # Check whether --enable-xschem was given.
2396if test "${enable_xschem+set}" = set; then :
2397 enableval=$enable_xschem;
2398 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2399 XSCHEM_DISABLED=1
2400 fi
2401
2402
2403fi
2404
2405
2406
2407
2408
Tim Edwards66e53e52021-01-24 21:21:36 -05002409# Magic
2410# Extract the first word of "magic", so it can be a program name with args.
2411set dummy magic; ac_word=$2
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
2414if ${ac_cv_path_MAGIC+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416else
2417 case $MAGIC in
2418 [\\/]* | ?:[\\/]*)
2419 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2420 ;;
2421 *)
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433done
2434 done
2435IFS=$as_save_IFS
2436
2437 ;;
2438esac
2439fi
2440MAGIC=$ac_cv_path_MAGIC
2441if test -n "$MAGIC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2443$as_echo "$MAGIC" >&6; }
2444else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
2447fi
2448
2449
2450if test -z "$MAGIC"; then
2451 as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5
2452fi
2453# Extract the first word of "patch", so it can be a program name with args.
2454set dummy patch; ac_word=$2
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if ${ac_cv_path_PATCH+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459else
2460 case $PATCH in
2461 [\\/]* | ?:[\\/]*)
2462 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
2463 ;;
2464 *)
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476done
2477 done
2478IFS=$as_save_IFS
2479
2480 ;;
2481esac
2482fi
2483PATCH=$ac_cv_path_PATCH
2484if test -n "$PATCH"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2486$as_echo "$PATCH" >&6; }
2487else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492
2493if test -z "$PATCH"; then
2494 as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5
2495fi
2496
2497# Other installations (libraries or tools if applicable)
Tim Edwards66e53e52021-01-24 21:21:36 -05002498
2499
2500
2501
2502
2503
2504
2505
2506
2507 # echo target targetvar flag url location
2508
2509 SKY130_ML_XX_HD_PATH=""
2510 SKY130_ML_XX_HD_GET() {
Tim Edwards1168a8b2021-02-10 22:06:54 -05002511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../sources/sky130_ml_xx_hd" >&5
2512$as_echo_n "checking for ../sources/sky130_ml_xx_hd... " >&6; }
2513if ${ac_cv_file____sources_sky130_ml_xx_hd+:} false; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002514 $as_echo_n "(cached) " >&6
2515else
2516 test "$cross_compiling" = yes &&
2517 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
Tim Edwards1168a8b2021-02-10 22:06:54 -05002518if test -r "../sources/sky130_ml_xx_hd"; then
2519 ac_cv_file____sources_sky130_ml_xx_hd=yes
Tim Edwards66e53e52021-01-24 21:21:36 -05002520else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002521 ac_cv_file____sources_sky130_ml_xx_hd=no
Tim Edwards66e53e52021-01-24 21:21:36 -05002522fi
2523fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____sources_sky130_ml_xx_hd" >&5
2525$as_echo "$ac_cv_file____sources_sky130_ml_xx_hd" >&6; }
2526if test "x$ac_cv_file____sources_sky130_ml_xx_hd" = xyes; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002527
2528 echo "Using pre-existing sky130_ml_xx_hd download..."
2529
2530else
2531
Tim Edwards1168a8b2021-02-10 22:06:54 -05002532 mkdir -p ../sources/sky130_ml_xx_hd
2533 sh ./download.sh 'https://github.com/PaulSchulz/sky130_pschulz_xx_hd/archive/master.tar.gz' ../sources/sky130_ml_xx_hd.tar.gz
2534 (echo "Extracting sky130_ml_xx_hd..." && cd ../sources && tar -xf sky130_ml_xx_hd.tar.gz --strip-components 1 -C ../sources/sky130_ml_xx_hd && rm sky130_ml_xx_hd.tar.gz )
Tim Edwards66e53e52021-01-24 21:21:36 -05002535
2536
2537fi
2538
Tim Edwards1168a8b2021-02-10 22:06:54 -05002539 export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
Tim Edwards66e53e52021-01-24 21:21:36 -05002540 }
2541
Tim Edwards1168a8b2021-02-10 22:06:54 -05002542 # Check whether --enable-alpha-sky130 was given.
2543if test "${enable_alpha_sky130+set}" = set; then :
2544 enableval=$enable_alpha_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002545 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2546 SKY130_ML_XX_HD_GET
2547 XSCHEM_INST=1
2548 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2549 echo "Disabling sky130_ml_xx_hd..."
2550 XSCHEM_DISABLED=1
2551 else
2552 SKY130_ML_XX_HD_PATH=$enableval
2553 fi
2554 SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH`
2555
2556fi
2557
2558
2559
2560
2561
2562
2563
Tim Edwards66e53e52021-01-24 21:21:36 -05002564
2565
2566
2567
2568
2569
2570
2571 # echo target targetvar flag url location
2572
Tim Edwards1168a8b2021-02-10 22:06:54 -05002573 XSCHEM_SKY130_PATH=""
2574 XSCHEM_SKY130_GET() {
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ../sources/xschem_sky130" >&5
2576$as_echo_n "checking for ../sources/xschem_sky130... " >&6; }
2577if ${ac_cv_file____sources_xschem_sky130+:} false; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002578 $as_echo_n "(cached) " >&6
2579else
2580 test "$cross_compiling" = yes &&
2581 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
Tim Edwards1168a8b2021-02-10 22:06:54 -05002582if test -r "../sources/xschem_sky130"; then
2583 ac_cv_file____sources_xschem_sky130=yes
Tim Edwards66e53e52021-01-24 21:21:36 -05002584else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002585 ac_cv_file____sources_xschem_sky130=no
Tim Edwards66e53e52021-01-24 21:21:36 -05002586fi
2587fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file____sources_xschem_sky130" >&5
2589$as_echo "$ac_cv_file____sources_xschem_sky130" >&6; }
2590if test "x$ac_cv_file____sources_xschem_sky130" = xyes; then :
Tim Edwards66e53e52021-01-24 21:21:36 -05002591
Tim Edwards1168a8b2021-02-10 22:06:54 -05002592 echo "Using pre-existing xschem_sky130 download..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002593
2594else
2595
Tim Edwards1168a8b2021-02-10 22:06:54 -05002596 mkdir -p ../sources/xschem_sky130
2597 sh ./download.sh 'https://github.com/StefanSchippers/xschem_sky130/archive/main.tar.gz' ../sources/xschem_sky130.tar.gz
2598 (echo "Extracting xschem_sky130..." && cd ../sources && tar -xf xschem_sky130.tar.gz --strip-components 1 -C ../sources/xschem_sky130 && rm xschem_sky130.tar.gz )
Tim Edwards66e53e52021-01-24 21:21:36 -05002599
2600
2601fi
2602
Tim Edwards1168a8b2021-02-10 22:06:54 -05002603 export XSCHEM_SKY130_PATH=../sources/xschem_sky130
Tim Edwards66e53e52021-01-24 21:21:36 -05002604 }
2605
Tim Edwards1168a8b2021-02-10 22:06:54 -05002606 # Check whether --enable-xschem-sky130 was given.
2607if test "${enable_xschem_sky130+set}" = set; then :
2608 enableval=$enable_xschem_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002609 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards1168a8b2021-02-10 22:06:54 -05002610 XSCHEM_SKY130_GET
Tim Edwards66e53e52021-01-24 21:21:36 -05002611 XSCHEM_INST=1
2612 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards1168a8b2021-02-10 22:06:54 -05002613 echo "Disabling xschem_sky130..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002614 XSCHEM_DISABLED=1
2615 else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002616 XSCHEM_SKY130_PATH=$enableval
Tim Edwards66e53e52021-01-24 21:21:36 -05002617 fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002618 XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH`
Tim Edwards66e53e52021-01-24 21:21:36 -05002619
2620fi
2621
2622
2623
2624
2625
Tim Edwards66e53e52021-01-24 21:21:36 -05002626
2627
2628
2629
Tim Edwards1168a8b2021-02-10 22:06:54 -05002630{ $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5
2631$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 -05002632
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002633# Check for "--with-ef-style"
2634EF_STYLE=0
2635
2636# Check whether --with-ef-style was given.
2637if test "${with_ef_style+set}" = set; then :
2638 withval=$with_ef_style;
Tim Edwards8292c902020-12-24 16:25:25 -05002639 pdks_ef_style=$withval
2640 if test "$withval" == "yes" -o "$withval" == "YES"; then
2641 EF_STYLE=1
2642 fi
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002643
2644fi
2645
2646
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002647
2648
2649MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
2650ac_config_files="$ac_config_files $MAKEFILES"
2651
2652
2653cat >confcache <<\_ACEOF
2654# This file is a shell script that caches the results of configure
2655# tests run on this system so they can be shared between configure
2656# scripts and configure runs, see configure's option --config-cache.
2657# It is not useful on other systems. If it contains results you don't
2658# want to keep, you may remove or edit it.
2659#
2660# config.status only pays attention to the cache file if you give it
2661# the --recheck option to rerun configure.
2662#
2663# `ac_cv_env_foo' variables (set or unset) will be overridden when
2664# loading this file, other *unset* `ac_cv_foo' will be assigned the
2665# following values.
2666
2667_ACEOF
2668
2669# The following way of writing the cache mishandles newlines in values,
2670# but we know of no workaround that is simple, portable, and efficient.
2671# So, we kill variables containing newlines.
2672# Ultrix sh set writes to stderr and can't be redirected directly,
2673# and sets the high bit in the cache file unless we assign to the vars.
2674(
2675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2676 eval ac_val=\$$ac_var
2677 case $ac_val in #(
2678 *${as_nl}*)
2679 case $ac_var in #(
2680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2681$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2682 esac
2683 case $ac_var in #(
2684 _ | IFS | as_nl) ;; #(
2685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2686 *) { eval $ac_var=; unset $ac_var;} ;;
2687 esac ;;
2688 esac
2689 done
2690
2691 (set) 2>&1 |
2692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2693 *${as_nl}ac_space=\ *)
2694 # `set' does not quote correctly, so add quotes: double-quote
2695 # substitution turns \\\\ into \\, and sed turns \\ into \.
2696 sed -n \
2697 "s/'/'\\\\''/g;
2698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2699 ;; #(
2700 *)
2701 # `set' quotes correctly as required by POSIX, so do not add quotes.
2702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2703 ;;
2704 esac |
2705 sort
2706) |
2707 sed '
2708 /^ac_cv_env_/b end
2709 t clear
2710 :clear
2711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2712 t end
2713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2714 :end' >>confcache
2715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2716 if test -w "$cache_file"; then
2717 if test "x$cache_file" != "x/dev/null"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2719$as_echo "$as_me: updating cache $cache_file" >&6;}
2720 if test ! -f "$cache_file" || test -h "$cache_file"; then
2721 cat confcache >"$cache_file"
2722 else
2723 case $cache_file in #(
2724 */* | ?:*)
2725 mv -f confcache "$cache_file"$$ &&
2726 mv -f "$cache_file"$$ "$cache_file" ;; #(
2727 *)
2728 mv -f confcache "$cache_file" ;;
2729 esac
2730 fi
2731 fi
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2735 fi
2736fi
2737rm -f confcache
2738
2739test "x$prefix" = xNONE && prefix=$ac_default_prefix
2740# Let make expand exec_prefix.
2741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2742
2743# Transform confdefs.h into DEFS.
2744# Protect against shell expansion while executing Makefile rules.
2745# Protect against Makefile macro expansion.
2746#
2747# If the first sed substitution is executed (which looks for macros that
2748# take arguments), then branch to the quote section. Otherwise,
2749# look for a macro that doesn't take arguments.
2750ac_script='
2751:mline
2752/\\$/{
2753 N
2754 s,\\\n,,
2755 b mline
2756}
2757t clear
2758:clear
2759s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2760t quote
2761s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2762t quote
2763b any
2764:quote
2765s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2766s/\[/\\&/g
2767s/\]/\\&/g
2768s/\$/$$/g
2769H
2770:any
2771${
2772 g
2773 s/^\n//
2774 s/\n/ /g
2775 p
2776}
2777'
2778DEFS=`sed -n "$ac_script" confdefs.h`
2779
2780
2781ac_libobjs=
2782ac_ltlibobjs=
2783U=
2784for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2785 # 1. Remove the extension, and $U if already installed.
2786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2789 # will be set to the directory where LIBOBJS objects are built.
2790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2792done
2793LIBOBJS=$ac_libobjs
2794
2795LTLIBOBJS=$ac_ltlibobjs
2796
2797
2798
2799: "${CONFIG_STATUS=./config.status}"
2800ac_write_fail=0
2801ac_clean_files_save=$ac_clean_files
2802ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2804$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2805as_write_fail=0
2806cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2807#! $SHELL
2808# Generated by $as_me.
2809# Run this file to recreate the current configuration.
2810# Compiler output produced by configure, useful for debugging
2811# configure, is in config.log if it exists.
2812
2813debug=false
2814ac_cs_recheck=false
2815ac_cs_silent=false
2816
2817SHELL=\${CONFIG_SHELL-$SHELL}
2818export SHELL
2819_ASEOF
2820cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2821## -------------------- ##
2822## M4sh Initialization. ##
2823## -------------------- ##
2824
2825# Be more Bourne compatible
2826DUALCASE=1; export DUALCASE # for MKS sh
2827if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2828 emulate sh
2829 NULLCMD=:
2830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2831 # is contrary to our usage. Disable this feature.
2832 alias -g '${1+"$@"}'='"$@"'
2833 setopt NO_GLOB_SUBST
2834else
2835 case `(set -o) 2>/dev/null` in #(
2836 *posix*) :
2837 set -o posix ;; #(
2838 *) :
2839 ;;
2840esac
2841fi
2842
2843
2844as_nl='
2845'
2846export as_nl
2847# Printing a long string crashes Solaris 7 /usr/bin/printf.
2848as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2849as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2850as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2851# Prefer a ksh shell builtin over an external printf program on Solaris,
2852# but without wasting forks for bash or zsh.
2853if test -z "$BASH_VERSION$ZSH_VERSION" \
2854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2855 as_echo='print -r --'
2856 as_echo_n='print -rn --'
2857elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2858 as_echo='printf %s\n'
2859 as_echo_n='printf %s'
2860else
2861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2862 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2863 as_echo_n='/usr/ucb/echo -n'
2864 else
2865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2866 as_echo_n_body='eval
2867 arg=$1;
2868 case $arg in #(
2869 *"$as_nl"*)
2870 expr "X$arg" : "X\\(.*\\)$as_nl";
2871 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2872 esac;
2873 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2874 '
2875 export as_echo_n_body
2876 as_echo_n='sh -c $as_echo_n_body as_echo'
2877 fi
2878 export as_echo_body
2879 as_echo='sh -c $as_echo_body as_echo'
2880fi
2881
2882# The user is always right.
2883if test "${PATH_SEPARATOR+set}" != set; then
2884 PATH_SEPARATOR=:
2885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2887 PATH_SEPARATOR=';'
2888 }
2889fi
2890
2891
2892# IFS
2893# We need space, tab and new line, in precisely that order. Quoting is
2894# there to prevent editors from complaining about space-tab.
2895# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2896# splitting by setting IFS to empty value.)
2897IFS=" "" $as_nl"
2898
2899# Find who we are. Look in the path if we contain no directory separator.
2900as_myself=
2901case $0 in #((
2902 *[\\/]* ) as_myself=$0 ;;
2903 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2909 done
2910IFS=$as_save_IFS
2911
2912 ;;
2913esac
2914# We did not find ourselves, most probably we were run as `sh COMMAND'
2915# in which case we are not to be found in the path.
2916if test "x$as_myself" = x; then
2917 as_myself=$0
2918fi
2919if test ! -f "$as_myself"; then
2920 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2921 exit 1
2922fi
2923
2924# Unset variables that we do not need and which cause bugs (e.g. in
2925# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2926# suppresses any "Segmentation fault" message there. '((' could
2927# trigger a bug in pdksh 5.2.14.
2928for as_var in BASH_ENV ENV MAIL MAILPATH
2929do eval test x\${$as_var+set} = xset \
2930 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2931done
2932PS1='$ '
2933PS2='> '
2934PS4='+ '
2935
2936# NLS nuisances.
2937LC_ALL=C
2938export LC_ALL
2939LANGUAGE=C
2940export LANGUAGE
2941
2942# CDPATH.
2943(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2944
2945
2946# as_fn_error STATUS ERROR [LINENO LOG_FD]
2947# ----------------------------------------
2948# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2949# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2950# script with STATUS, using 1 if that was 0.
2951as_fn_error ()
2952{
2953 as_status=$1; test $as_status -eq 0 && as_status=1
2954 if test "$4"; then
2955 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2956 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2957 fi
2958 $as_echo "$as_me: error: $2" >&2
2959 as_fn_exit $as_status
2960} # as_fn_error
2961
2962
2963# as_fn_set_status STATUS
2964# -----------------------
2965# Set $? to STATUS, without forking.
2966as_fn_set_status ()
2967{
2968 return $1
2969} # as_fn_set_status
2970
2971# as_fn_exit STATUS
2972# -----------------
2973# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2974as_fn_exit ()
2975{
2976 set +e
2977 as_fn_set_status $1
2978 exit $1
2979} # as_fn_exit
2980
2981# as_fn_unset VAR
2982# ---------------
2983# Portably unset VAR.
2984as_fn_unset ()
2985{
2986 { eval $1=; unset $1;}
2987}
2988as_unset=as_fn_unset
2989# as_fn_append VAR VALUE
2990# ----------------------
2991# Append the text in VALUE to the end of the definition contained in VAR. Take
2992# advantage of any shell optimizations that allow amortized linear growth over
2993# repeated appends, instead of the typical quadratic growth present in naive
2994# implementations.
2995if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2996 eval 'as_fn_append ()
2997 {
2998 eval $1+=\$2
2999 }'
3000else
3001 as_fn_append ()
3002 {
3003 eval $1=\$$1\$2
3004 }
3005fi # as_fn_append
3006
3007# as_fn_arith ARG...
3008# ------------------
3009# Perform arithmetic evaluation on the ARGs, and store the result in the
3010# global $as_val. Take advantage of shells that can avoid forks. The arguments
3011# must be portable across $(()) and expr.
3012if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3013 eval 'as_fn_arith ()
3014 {
3015 as_val=$(( $* ))
3016 }'
3017else
3018 as_fn_arith ()
3019 {
3020 as_val=`expr "$@" || test $? -eq 1`
3021 }
3022fi # as_fn_arith
3023
3024
3025if expr a : '\(a\)' >/dev/null 2>&1 &&
3026 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3027 as_expr=expr
3028else
3029 as_expr=false
3030fi
3031
3032if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3033 as_basename=basename
3034else
3035 as_basename=false
3036fi
3037
3038if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3039 as_dirname=dirname
3040else
3041 as_dirname=false
3042fi
3043
3044as_me=`$as_basename -- "$0" ||
3045$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3046 X"$0" : 'X\(//\)$' \| \
3047 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3048$as_echo X/"$0" |
3049 sed '/^.*\/\([^/][^/]*\)\/*$/{
3050 s//\1/
3051 q
3052 }
3053 /^X\/\(\/\/\)$/{
3054 s//\1/
3055 q
3056 }
3057 /^X\/\(\/\).*/{
3058 s//\1/
3059 q
3060 }
3061 s/.*/./; q'`
3062
3063# Avoid depending upon Character Ranges.
3064as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3066as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3067as_cr_digits='0123456789'
3068as_cr_alnum=$as_cr_Letters$as_cr_digits
3069
3070ECHO_C= ECHO_N= ECHO_T=
3071case `echo -n x` in #(((((
3072-n*)
3073 case `echo 'xy\c'` in
3074 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3075 xy) ECHO_C='\c';;
3076 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3077 ECHO_T=' ';;
3078 esac;;
3079*)
3080 ECHO_N='-n';;
3081esac
3082
3083rm -f conf$$ conf$$.exe conf$$.file
3084if test -d conf$$.dir; then
3085 rm -f conf$$.dir/conf$$.file
3086else
3087 rm -f conf$$.dir
3088 mkdir conf$$.dir 2>/dev/null
3089fi
3090if (echo >conf$$.file) 2>/dev/null; then
3091 if ln -s conf$$.file conf$$ 2>/dev/null; then
3092 as_ln_s='ln -s'
3093 # ... but there are two gotchas:
3094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3096 # In both cases, we have to default to `cp -pR'.
3097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3098 as_ln_s='cp -pR'
3099 elif ln conf$$.file conf$$ 2>/dev/null; then
3100 as_ln_s=ln
3101 else
3102 as_ln_s='cp -pR'
3103 fi
3104else
3105 as_ln_s='cp -pR'
3106fi
3107rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3108rmdir conf$$.dir 2>/dev/null
3109
3110
3111# as_fn_mkdir_p
3112# -------------
3113# Create "$as_dir" as a directory, including parents if necessary.
3114as_fn_mkdir_p ()
3115{
3116
3117 case $as_dir in #(
3118 -*) as_dir=./$as_dir;;
3119 esac
3120 test -d "$as_dir" || eval $as_mkdir_p || {
3121 as_dirs=
3122 while :; do
3123 case $as_dir in #(
3124 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3125 *) as_qdir=$as_dir;;
3126 esac
3127 as_dirs="'$as_qdir' $as_dirs"
3128 as_dir=`$as_dirname -- "$as_dir" ||
3129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3130 X"$as_dir" : 'X\(//\)[^/]' \| \
3131 X"$as_dir" : 'X\(//\)$' \| \
3132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3133$as_echo X"$as_dir" |
3134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3135 s//\1/
3136 q
3137 }
3138 /^X\(\/\/\)[^/].*/{
3139 s//\1/
3140 q
3141 }
3142 /^X\(\/\/\)$/{
3143 s//\1/
3144 q
3145 }
3146 /^X\(\/\).*/{
3147 s//\1/
3148 q
3149 }
3150 s/.*/./; q'`
3151 test -d "$as_dir" && break
3152 done
3153 test -z "$as_dirs" || eval "mkdir $as_dirs"
3154 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3155
3156
3157} # as_fn_mkdir_p
3158if mkdir -p . 2>/dev/null; then
3159 as_mkdir_p='mkdir -p "$as_dir"'
3160else
3161 test -d ./-p && rmdir ./-p
3162 as_mkdir_p=false
3163fi
3164
3165
3166# as_fn_executable_p FILE
3167# -----------------------
3168# Test if FILE is an executable regular file.
3169as_fn_executable_p ()
3170{
3171 test -f "$1" && test -x "$1"
3172} # as_fn_executable_p
3173as_test_x='test -x'
3174as_executable_p=as_fn_executable_p
3175
3176# Sed expression to map a string onto a valid CPP name.
3177as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3178
3179# Sed expression to map a string onto a valid variable name.
3180as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3181
3182
3183exec 6>&1
3184## ----------------------------------- ##
3185## Main body of $CONFIG_STATUS script. ##
3186## ----------------------------------- ##
3187_ASEOF
3188test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3189
3190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3191# Save the log message, to keep $0 and so on meaningful, and to
3192# report actual input values of CONFIG_FILES etc. instead of their
3193# values after options handling.
3194ac_log="
3195This file was extended by open_pdks $as_me 1.0, which was
3196generated by GNU Autoconf 2.69. Invocation command line was
3197
3198 CONFIG_FILES = $CONFIG_FILES
3199 CONFIG_HEADERS = $CONFIG_HEADERS
3200 CONFIG_LINKS = $CONFIG_LINKS
3201 CONFIG_COMMANDS = $CONFIG_COMMANDS
3202 $ $0 $@
3203
3204on `(hostname || uname -n) 2>/dev/null | sed 1q`
3205"
3206
3207_ACEOF
3208
3209case $ac_config_files in *"
3210"*) set x $ac_config_files; shift; ac_config_files=$*;;
3211esac
3212
3213
3214
3215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3216# Files that config.status was made for.
3217config_files="$ac_config_files"
3218
3219_ACEOF
3220
3221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3222ac_cs_usage="\
3223\`$as_me' instantiates files and other configuration actions
3224from templates according to the current configuration. Unless the files
3225and actions are specified as TAGs, all are instantiated by default.
3226
3227Usage: $0 [OPTION]... [TAG]...
3228
3229 -h, --help print this help, then exit
3230 -V, --version print version number and configuration settings, then exit
3231 --config print configuration, then exit
3232 -q, --quiet, --silent
3233 do not print progress messages
3234 -d, --debug don't remove temporary files
3235 --recheck update $as_me by reconfiguring in the same conditions
3236 --file=FILE[:TEMPLATE]
3237 instantiate the configuration file FILE
3238
3239Configuration files:
3240$config_files
3241
3242Report bugs to <github.com/RTimothyEdwards/open_pdks>."
3243
3244_ACEOF
3245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3246ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3247ac_cs_version="\\
3248open_pdks config.status 1.0
3249configured by $0, generated by GNU Autoconf 2.69,
3250 with options \\"\$ac_cs_config\\"
3251
3252Copyright (C) 2012 Free Software Foundation, Inc.
3253This config.status script is free software; the Free Software Foundation
3254gives unlimited permission to copy, distribute and modify it."
3255
3256ac_pwd='$ac_pwd'
3257srcdir='$srcdir'
3258test -n "\$AWK" || AWK=awk
3259_ACEOF
3260
3261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3262# The default lists apply if the user does not specify any file.
3263ac_need_defaults=:
3264while test $# != 0
3265do
3266 case $1 in
3267 --*=?*)
3268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3269 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3270 ac_shift=:
3271 ;;
3272 --*=)
3273 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3274 ac_optarg=
3275 ac_shift=:
3276 ;;
3277 *)
3278 ac_option=$1
3279 ac_optarg=$2
3280 ac_shift=shift
3281 ;;
3282 esac
3283
3284 case $ac_option in
3285 # Handling of the options.
3286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3287 ac_cs_recheck=: ;;
3288 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3289 $as_echo "$ac_cs_version"; exit ;;
3290 --config | --confi | --conf | --con | --co | --c )
3291 $as_echo "$ac_cs_config"; exit ;;
3292 --debug | --debu | --deb | --de | --d | -d )
3293 debug=: ;;
3294 --file | --fil | --fi | --f )
3295 $ac_shift
3296 case $ac_optarg in
3297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3298 '') as_fn_error $? "missing file argument" ;;
3299 esac
3300 as_fn_append CONFIG_FILES " '$ac_optarg'"
3301 ac_need_defaults=false;;
3302 --he | --h | --help | --hel | -h )
3303 $as_echo "$ac_cs_usage"; exit ;;
3304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3306 ac_cs_silent=: ;;
3307
3308 # This is an error.
3309 -*) as_fn_error $? "unrecognized option: \`$1'
3310Try \`$0 --help' for more information." ;;
3311
3312 *) as_fn_append ac_config_targets " $1"
3313 ac_need_defaults=false ;;
3314
3315 esac
3316 shift
3317done
3318
3319ac_configure_extra_args=
3320
3321if $ac_cs_silent; then
3322 exec 6>/dev/null
3323 ac_configure_extra_args="$ac_configure_extra_args --silent"
3324fi
3325
3326_ACEOF
3327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3328if \$ac_cs_recheck; then
3329 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3330 shift
3331 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3332 CONFIG_SHELL='$SHELL'
3333 export CONFIG_SHELL
3334 exec "\$@"
3335fi
3336
3337_ACEOF
3338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3339exec 5>>config.log
3340{
3341 echo
3342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3343## Running $as_me. ##
3344_ASBOX
3345 $as_echo "$ac_log"
3346} >&5
3347
3348_ACEOF
3349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3350_ACEOF
3351
3352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3353
3354# Handling of arguments.
3355for ac_config_target in $ac_config_targets
3356do
3357 case $ac_config_target in
3358 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
3359
3360 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3361 esac
3362done
3363
3364
3365# If the user did not use the arguments to specify the items to instantiate,
3366# then the envvar interface is used. Set only those that are not.
3367# We use the long form for the default assignment because of an extremely
3368# bizarre bug on SunOS 4.1.3.
3369if $ac_need_defaults; then
3370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3371fi
3372
3373# Have a temporary directory for convenience. Make it in the build tree
3374# simply because there is no reason against having it here, and in addition,
3375# creating and moving files from /tmp can sometimes cause problems.
3376# Hook for its removal unless debugging.
3377# Note that there is a small window in which the directory will not be cleaned:
3378# after its creation but before its name has been assigned to `$tmp'.
3379$debug ||
3380{
3381 tmp= ac_tmp=
3382 trap 'exit_status=$?
3383 : "${ac_tmp:=$tmp}"
3384 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3385' 0
3386 trap 'as_fn_exit 1' 1 2 13 15
3387}
3388# Create a (secure) tmp directory for tmp files.
3389
3390{
3391 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3392 test -d "$tmp"
3393} ||
3394{
3395 tmp=./conf$$-$RANDOM
3396 (umask 077 && mkdir "$tmp")
3397} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3398ac_tmp=$tmp
3399
3400# Set up the scripts for CONFIG_FILES section.
3401# No need to generate them if there are no CONFIG_FILES.
3402# This happens for instance with `./config.status config.h'.
3403if test -n "$CONFIG_FILES"; then
3404
3405
3406ac_cr=`echo X | tr X '\015'`
3407# On cygwin, bash can eat \r inside `` if the user requested igncr.
3408# But we know of no other shell where ac_cr would be empty at this
3409# point, so we can use a bashism as a fallback.
3410if test "x$ac_cr" = x; then
3411 eval ac_cr=\$\'\\r\'
3412fi
3413ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3414if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3415 ac_cs_awk_cr='\\r'
3416else
3417 ac_cs_awk_cr=$ac_cr
3418fi
3419
3420echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3421_ACEOF
3422
3423
3424{
3425 echo "cat >conf$$subs.awk <<_ACEOF" &&
3426 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3427 echo "_ACEOF"
3428} >conf$$subs.sh ||
3429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3430ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3431ac_delim='%!_!# '
3432for ac_last_try in false false false false false :; do
3433 . ./conf$$subs.sh ||
3434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3435
3436 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3437 if test $ac_delim_n = $ac_delim_num; then
3438 break
3439 elif $ac_last_try; then
3440 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3441 else
3442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3443 fi
3444done
3445rm -f conf$$subs.sh
3446
3447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3448cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3449_ACEOF
3450sed -n '
3451h
3452s/^/S["/; s/!.*/"]=/
3453p
3454g
3455s/^[^!]*!//
3456:repl
3457t repl
3458s/'"$ac_delim"'$//
3459t delim
3460:nl
3461h
3462s/\(.\{148\}\)..*/\1/
3463t more1
3464s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3465p
3466n
3467b repl
3468:more1
3469s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3470p
3471g
3472s/.\{148\}//
3473t nl
3474:delim
3475h
3476s/\(.\{148\}\)..*/\1/
3477t more2
3478s/["\\]/\\&/g; s/^/"/; s/$/"/
3479p
3480b
3481:more2
3482s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3483p
3484g
3485s/.\{148\}//
3486t delim
3487' <conf$$subs.awk | sed '
3488/^[^""]/{
3489 N
3490 s/\n//
3491}
3492' >>$CONFIG_STATUS || ac_write_fail=1
3493rm -f conf$$subs.awk
3494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3495_ACAWK
3496cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3497 for (key in S) S_is_set[key] = 1
3498 FS = ""
3499
3500}
3501{
3502 line = $ 0
3503 nfields = split(line, field, "@")
3504 substed = 0
3505 len = length(field[1])
3506 for (i = 2; i < nfields; i++) {
3507 key = field[i]
3508 keylen = length(key)
3509 if (S_is_set[key]) {
3510 value = S[key]
3511 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3512 len += length(value) + length(field[++i])
3513 substed = 1
3514 } else
3515 len += 1 + keylen
3516 }
3517
3518 print line
3519}
3520
3521_ACAWK
3522_ACEOF
3523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3524if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3525 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3526else
3527 cat
3528fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3529 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3530_ACEOF
3531
3532# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3533# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3534# trailing colons and then remove the whole line if VPATH becomes empty
3535# (actually we leave an empty line to preserve line numbers).
3536if test "x$srcdir" = x.; then
3537 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3538h
3539s///
3540s/^/:/
3541s/[ ]*$/:/
3542s/:\$(srcdir):/:/g
3543s/:\${srcdir}:/:/g
3544s/:@srcdir@:/:/g
3545s/^:*//
3546s/:*$//
3547x
3548s/\(=[ ]*\).*/\1/
3549G
3550s/\n//
3551s/^[^=]*=[ ]*$//
3552}'
3553fi
3554
3555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3556fi # test -n "$CONFIG_FILES"
3557
3558
3559eval set X " :F $CONFIG_FILES "
3560shift
3561for ac_tag
3562do
3563 case $ac_tag in
3564 :[FHLC]) ac_mode=$ac_tag; continue;;
3565 esac
3566 case $ac_mode$ac_tag in
3567 :[FHL]*:*);;
3568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3569 :[FH]-) ac_tag=-:-;;
3570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3571 esac
3572 ac_save_IFS=$IFS
3573 IFS=:
3574 set x $ac_tag
3575 IFS=$ac_save_IFS
3576 shift
3577 ac_file=$1
3578 shift
3579
3580 case $ac_mode in
3581 :L) ac_source=$1;;
3582 :[FH])
3583 ac_file_inputs=
3584 for ac_f
3585 do
3586 case $ac_f in
3587 -) ac_f="$ac_tmp/stdin";;
3588 *) # Look for the file first in the build tree, then in the source tree
3589 # (if the path is not absolute). The absolute path cannot be DOS-style,
3590 # because $ac_f cannot contain `:'.
3591 test -f "$ac_f" ||
3592 case $ac_f in
3593 [\\/$]*) false;;
3594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3595 esac ||
3596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3597 esac
3598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3599 as_fn_append ac_file_inputs " '$ac_f'"
3600 done
3601
3602 # Let's still pretend it is `configure' which instantiates (i.e., don't
3603 # use $as_me), people would be surprised to read:
3604 # /* config.h. Generated by config.status. */
3605 configure_input='Generated from '`
3606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3607 `' by configure.'
3608 if test x"$ac_file" != x-; then
3609 configure_input="$ac_file. $configure_input"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3611$as_echo "$as_me: creating $ac_file" >&6;}
3612 fi
3613 # Neutralize special characters interpreted by sed in replacement strings.
3614 case $configure_input in #(
3615 *\&* | *\|* | *\\* )
3616 ac_sed_conf_input=`$as_echo "$configure_input" |
3617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3618 *) ac_sed_conf_input=$configure_input;;
3619 esac
3620
3621 case $ac_tag in
3622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3624 esac
3625 ;;
3626 esac
3627
3628 ac_dir=`$as_dirname -- "$ac_file" ||
3629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3630 X"$ac_file" : 'X\(//\)[^/]' \| \
3631 X"$ac_file" : 'X\(//\)$' \| \
3632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3633$as_echo X"$ac_file" |
3634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3635 s//\1/
3636 q
3637 }
3638 /^X\(\/\/\)[^/].*/{
3639 s//\1/
3640 q
3641 }
3642 /^X\(\/\/\)$/{
3643 s//\1/
3644 q
3645 }
3646 /^X\(\/\).*/{
3647 s//\1/
3648 q
3649 }
3650 s/.*/./; q'`
3651 as_dir="$ac_dir"; as_fn_mkdir_p
3652 ac_builddir=.
3653
3654case "$ac_dir" in
3655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3656*)
3657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3658 # A ".." for each directory in $ac_dir_suffix.
3659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3660 case $ac_top_builddir_sub in
3661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3663 esac ;;
3664esac
3665ac_abs_top_builddir=$ac_pwd
3666ac_abs_builddir=$ac_pwd$ac_dir_suffix
3667# for backward compatibility:
3668ac_top_builddir=$ac_top_build_prefix
3669
3670case $srcdir in
3671 .) # We are building in place.
3672 ac_srcdir=.
3673 ac_top_srcdir=$ac_top_builddir_sub
3674 ac_abs_top_srcdir=$ac_pwd ;;
3675 [\\/]* | ?:[\\/]* ) # Absolute name.
3676 ac_srcdir=$srcdir$ac_dir_suffix;
3677 ac_top_srcdir=$srcdir
3678 ac_abs_top_srcdir=$srcdir ;;
3679 *) # Relative name.
3680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3681 ac_top_srcdir=$ac_top_build_prefix$srcdir
3682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3683esac
3684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3685
3686
3687 case $ac_mode in
3688 :F)
3689 #
3690 # CONFIG_FILE
3691 #
3692
3693_ACEOF
3694
3695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3696# If the template does not know about datarootdir, expand it.
3697# FIXME: This hack should be removed a few years after 2.60.
3698ac_datarootdir_hack=; ac_datarootdir_seen=
3699ac_sed_dataroot='
3700/datarootdir/ {
3701 p
3702 q
3703}
3704/@datadir@/p
3705/@docdir@/p
3706/@infodir@/p
3707/@localedir@/p
3708/@mandir@/p'
3709case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3710*datarootdir*) ac_datarootdir_seen=yes;;
3711*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3713$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3714_ACEOF
3715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3716 ac_datarootdir_hack='
3717 s&@datadir@&$datadir&g
3718 s&@docdir@&$docdir&g
3719 s&@infodir@&$infodir&g
3720 s&@localedir@&$localedir&g
3721 s&@mandir@&$mandir&g
3722 s&\\\${datarootdir}&$datarootdir&g' ;;
3723esac
3724_ACEOF
3725
3726# Neutralize VPATH when `$srcdir' = `.'.
3727# Shell code in configure.ac might set extrasub.
3728# FIXME: do we really want to maintain this feature?
3729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3730ac_sed_extra="$ac_vpsub
3731$extrasub
3732_ACEOF
3733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3734:t
3735/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3736s|@configure_input@|$ac_sed_conf_input|;t t
3737s&@top_builddir@&$ac_top_builddir_sub&;t t
3738s&@top_build_prefix@&$ac_top_build_prefix&;t t
3739s&@srcdir@&$ac_srcdir&;t t
3740s&@abs_srcdir@&$ac_abs_srcdir&;t t
3741s&@top_srcdir@&$ac_top_srcdir&;t t
3742s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3743s&@builddir@&$ac_builddir&;t t
3744s&@abs_builddir@&$ac_abs_builddir&;t t
3745s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3746$ac_datarootdir_hack
3747"
3748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3749 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3750
3751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3752 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3754 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3756which seems to be undefined. Please make sure it is defined" >&5
3757$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3758which seems to be undefined. Please make sure it is defined" >&2;}
3759
3760 rm -f "$ac_tmp/stdin"
3761 case $ac_file in
3762 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3763 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3764 esac \
3765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3766 ;;
3767
3768
3769
3770 esac
3771
3772done # for ac_tag
3773
3774
3775as_fn_exit 0
3776_ACEOF
3777ac_clean_files=$ac_clean_files_save
3778
3779test $ac_write_fail = 0 ||
3780 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3781
3782
3783# configure is writing to config.log, and then calls config.status.
3784# config.status does its own redirection, appending to config.log.
3785# Unfortunately, on DOS this fails, as config.log is still kept open
3786# by configure, so config.status won't be able to write to it; its
3787# output is simply discarded. So we exec the FD to /dev/null,
3788# effectively closing config.log, so it can be properly (re)opened and
3789# appended to by config.status. When coming back to configure, we
3790# need to make the FD available again.
3791if test "$no_create" != yes; then
3792 ac_cs_success=:
3793 ac_config_status_args=
3794 test "$silent" = yes &&
3795 ac_config_status_args="$ac_config_status_args --quiet"
3796 exec 5>/dev/null
3797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3798 exec 5>>config.log
3799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3800 # would make configure fail if this is the last instruction.
3801 $ac_cs_success || as_fn_exit 1
3802fi
3803if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3805$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3806fi
3807
3808
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3810$as_echo "Build configured successfully" >&6; }