Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1 | #! /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 |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 201 | if (eval "$as_required") 2>/dev/null; then : |
| 202 | as_have_required=yes |
| 203 | else |
| 204 | as_have_required=no |
| 205 | fi |
| 206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 207 | |
| 208 | else |
| 209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 210 | as_found=false |
| 211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 212 | do |
| 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 |
| 226 | fi |
| 227 | fi |
| 228 | done;; |
| 229 | esac |
| 230 | as_found=false |
| 231 | done |
| 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 |
| 235 | fi; } |
| 236 | IFS=$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. |
| 245 | BASH_ENV=/dev/null |
| 246 | ENV=/dev/null |
| 247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 248 | case $- in # (((( |
| 249 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 250 | *v* ) as_opts=-v ;; |
| 251 | *x* ) as_opts=-x ;; |
| 252 | * ) as_opts= ;; |
| 253 | esac |
| 254 | exec $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 |
| 258 | exit 255 |
| 259 | fi |
| 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 |
| 275 | fi |
| 276 | fi |
| 277 | fi |
| 278 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 279 | export SHELL |
| 280 | # Unset more variables known to interfere with behavior of common tools. |
| 281 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 282 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 283 | |
| 284 | ## --------------------- ## |
| 285 | ## M4sh Shell Functions. ## |
| 286 | ## --------------------- ## |
| 287 | # as_fn_unset VAR |
| 288 | # --------------- |
| 289 | # Portably unset VAR. |
| 290 | as_fn_unset () |
| 291 | { |
| 292 | { eval $1=; unset $1;} |
| 293 | } |
| 294 | as_unset=as_fn_unset |
| 295 | |
| 296 | # as_fn_set_status STATUS |
| 297 | # ----------------------- |
| 298 | # Set $? to STATUS, without forking. |
| 299 | as_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. |
| 307 | as_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. |
| 317 | as_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. |
| 365 | as_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. |
| 375 | if (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 | }' |
| 380 | else |
| 381 | as_fn_append () |
| 382 | { |
| 383 | eval $1=\$$1\$2 |
| 384 | } |
| 385 | fi # 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. |
| 392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 393 | eval 'as_fn_arith () |
| 394 | { |
| 395 | as_val=$(( $* )) |
| 396 | }' |
| 397 | else |
| 398 | as_fn_arith () |
| 399 | { |
| 400 | as_val=`expr "$@" || test $? -eq 1` |
| 401 | } |
| 402 | fi # 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. |
| 410 | as_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 | |
| 421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 423 | as_expr=expr |
| 424 | else |
| 425 | as_expr=false |
| 426 | fi |
| 427 | |
| 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 429 | as_basename=basename |
| 430 | else |
| 431 | as_basename=false |
| 432 | fi |
| 433 | |
| 434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 435 | as_dirname=dirname |
| 436 | else |
| 437 | as_dirname=false |
| 438 | fi |
| 439 | |
| 440 | as_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. |
| 460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 463 | as_cr_digits='0123456789' |
| 464 | as_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 | |
| 502 | ECHO_C= ECHO_N= ECHO_T= |
| 503 | case `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';; |
| 513 | esac |
| 514 | |
| 515 | rm -f conf$$ conf$$.exe conf$$.file |
| 516 | if test -d conf$$.dir; then |
| 517 | rm -f conf$$.dir/conf$$.file |
| 518 | else |
| 519 | rm -f conf$$.dir |
| 520 | mkdir conf$$.dir 2>/dev/null |
| 521 | fi |
| 522 | if (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 |
| 536 | else |
| 537 | as_ln_s='cp -pR' |
| 538 | fi |
| 539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 540 | rmdir conf$$.dir 2>/dev/null |
| 541 | |
| 542 | if mkdir -p . 2>/dev/null; then |
| 543 | as_mkdir_p='mkdir -p "$as_dir"' |
| 544 | else |
| 545 | test -d ./-p && rmdir ./-p |
| 546 | as_mkdir_p=false |
| 547 | fi |
| 548 | |
| 549 | as_test_x='test -x' |
| 550 | as_executable_p=as_fn_executable_p |
| 551 | |
| 552 | # Sed expression to map a string onto a valid CPP name. |
| 553 | as_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. |
| 556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 557 | |
| 558 | |
| 559 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 560 | exec 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. |
| 565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 566 | |
| 567 | # |
| 568 | # Initializations. |
| 569 | # |
| 570 | ac_default_prefix=/usr/local |
| 571 | ac_clean_files= |
| 572 | ac_config_libobj_dir=. |
| 573 | LIBOBJS= |
| 574 | cross_compiling=no |
| 575 | subdirs= |
| 576 | MFLAGS= |
| 577 | MAKEFLAGS= |
| 578 | |
| 579 | # Identity of this package. |
| 580 | PACKAGE_NAME='open_pdks' |
| 581 | PACKAGE_TARNAME='open_pdks' |
| 582 | PACKAGE_VERSION='1.0' |
| 583 | PACKAGE_STRING='open_pdks 1.0' |
| 584 | PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks' |
| 585 | PACKAGE_URL='' |
| 586 | |
| 587 | ac_subst_vars='LTLIBOBJS |
| 588 | LIBOBJS |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 589 | EF_STYLE |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 590 | XSCHEM_SKY130_PATH |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 591 | SKY130_ML_XX_HD_PATH |
Ahmed Ghazy | 3238548 | 2021-01-19 20:38:14 +0200 | [diff] [blame] | 592 | PATCH |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 593 | MAGIC |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 594 | XSCHEM_DISABLED |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 595 | QFLOW_DISABLED |
| 596 | OPENLANE_DISABLED |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 597 | IRSIM_DISABLED |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 598 | NETGEN_DISABLED |
| 599 | MAGIC_DISABLED |
| 600 | KLAYOUT_DISABLED |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 601 | SKY130_DIST_PATH |
| 602 | SKY130_LOCAL_PATH |
| 603 | SKY130_SOURCE_PATH |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 604 | SKY130_LINK_TARGETS |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 605 | pkgpyexecdir |
| 606 | pyexecdir |
| 607 | pkgpythondir |
| 608 | pythondir |
| 609 | PYTHON_PLATFORM |
| 610 | PYTHON_EXEC_PREFIX |
| 611 | PYTHON_PREFIX |
| 612 | PYTHON_VERSION |
| 613 | PYTHON |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 614 | target_alias |
| 615 | host_alias |
| 616 | build_alias |
| 617 | LIBS |
| 618 | ECHO_T |
| 619 | ECHO_N |
| 620 | ECHO_C |
| 621 | DEFS |
| 622 | mandir |
| 623 | localedir |
| 624 | libdir |
| 625 | psdir |
| 626 | pdfdir |
| 627 | dvidir |
| 628 | htmldir |
| 629 | infodir |
| 630 | docdir |
| 631 | oldincludedir |
| 632 | includedir |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 633 | runstatedir |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 634 | localstatedir |
| 635 | sharedstatedir |
| 636 | sysconfdir |
| 637 | datadir |
| 638 | datarootdir |
| 639 | libexecdir |
| 640 | sbindir |
| 641 | bindir |
| 642 | program_transform_name |
| 643 | prefix |
| 644 | exec_prefix |
| 645 | PACKAGE_URL |
| 646 | PACKAGE_BUGREPORT |
| 647 | PACKAGE_STRING |
| 648 | PACKAGE_VERSION |
| 649 | PACKAGE_TARNAME |
| 650 | PACKAGE_NAME |
| 651 | PATH_SEPARATOR |
| 652 | SHELL' |
| 653 | ac_subst_files='' |
| 654 | ac_user_opts=' |
| 655 | enable_option_checking |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 656 | enable_sky130_pdk |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 657 | with_sky130_local_path |
| 658 | with_sky130_dist_path |
| 659 | with_sky130_link_targets |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 660 | enable_klayout |
| 661 | enable_magic |
| 662 | enable_netgen |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 663 | enable_irsim |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 664 | enable_openlane |
| 665 | enable_qflow |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 666 | enable_xschem |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 667 | enable_alpha_sky130 |
| 668 | enable_xschem_sky130 |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 669 | with_ef_style |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 670 | ' |
| 671 | ac_precious_vars='build_alias |
| 672 | host_alias |
| 673 | target_alias |
| 674 | PYTHON' |
| 675 | |
| 676 | |
| 677 | # Initialize some variables set by options. |
| 678 | ac_init_help= |
| 679 | ac_init_version=false |
| 680 | ac_unrecognized_opts= |
| 681 | ac_unrecognized_sep= |
| 682 | # The variables have the same names as the options, with |
| 683 | # dashes changed to underlines. |
| 684 | cache_file=/dev/null |
| 685 | exec_prefix=NONE |
| 686 | no_create= |
| 687 | no_recursion= |
| 688 | prefix=NONE |
| 689 | program_prefix=NONE |
| 690 | program_suffix=NONE |
| 691 | program_transform_name=s,x,x, |
| 692 | silent= |
| 693 | site= |
| 694 | srcdir= |
| 695 | verbose= |
| 696 | x_includes=NONE |
| 697 | x_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.) |
| 705 | bindir='${exec_prefix}/bin' |
| 706 | sbindir='${exec_prefix}/sbin' |
| 707 | libexecdir='${exec_prefix}/libexec' |
| 708 | datarootdir='${prefix}/share' |
| 709 | datadir='${datarootdir}' |
| 710 | sysconfdir='${prefix}/etc' |
| 711 | sharedstatedir='${prefix}/com' |
| 712 | localstatedir='${prefix}/var' |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 713 | runstatedir='${localstatedir}/run' |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 714 | includedir='${prefix}/include' |
| 715 | oldincludedir='/usr/include' |
| 716 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 717 | infodir='${datarootdir}/info' |
| 718 | htmldir='${docdir}' |
| 719 | dvidir='${docdir}' |
| 720 | pdfdir='${docdir}' |
| 721 | psdir='${docdir}' |
| 722 | libdir='${exec_prefix}/lib' |
| 723 | localedir='${datarootdir}/locale' |
| 724 | mandir='${datarootdir}/man' |
| 725 | |
| 726 | ac_prev= |
| 727 | ac_dashdash= |
| 728 | for ac_option |
| 729 | do |
| 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 Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 966 | -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 Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 975 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 976 | ac_prev=sbindir ;; |
| 977 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 978 | | --sbi=* | --sb=*) |
| 979 | sbindir=$ac_optarg ;; |
| 980 | |
| 981 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 982 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 983 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 984 | | --sha | --sh) |
| 985 | ac_prev=sharedstatedir ;; |
| 986 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 987 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 988 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 989 | | --sha=* | --sh=*) |
| 990 | sharedstatedir=$ac_optarg ;; |
| 991 | |
| 992 | -site | --site | --sit) |
| 993 | ac_prev=site ;; |
| 994 | -site=* | --site=* | --sit=*) |
| 995 | site=$ac_optarg ;; |
| 996 | |
| 997 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 998 | ac_prev=srcdir ;; |
| 999 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1000 | srcdir=$ac_optarg ;; |
| 1001 | |
| 1002 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1003 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1004 | ac_prev=sysconfdir ;; |
| 1005 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1006 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1007 | sysconfdir=$ac_optarg ;; |
| 1008 | |
| 1009 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1010 | ac_prev=target_alias ;; |
| 1011 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1012 | target_alias=$ac_optarg ;; |
| 1013 | |
| 1014 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1015 | verbose=yes ;; |
| 1016 | |
| 1017 | -version | --version | --versio | --versi | --vers | -V) |
| 1018 | ac_init_version=: ;; |
| 1019 | |
| 1020 | -with-* | --with-*) |
| 1021 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1022 | # Reject names that are not valid shell variable names. |
| 1023 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1024 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1025 | ac_useropt_orig=$ac_useropt |
| 1026 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1027 | case $ac_user_opts in |
| 1028 | *" |
| 1029 | "with_$ac_useropt" |
| 1030 | "*) ;; |
| 1031 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1032 | ac_unrecognized_sep=', ';; |
| 1033 | esac |
| 1034 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1035 | |
| 1036 | -without-* | --without-*) |
| 1037 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1038 | # Reject names that are not valid shell variable names. |
| 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1040 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1041 | ac_useropt_orig=$ac_useropt |
| 1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1043 | case $ac_user_opts in |
| 1044 | *" |
| 1045 | "with_$ac_useropt" |
| 1046 | "*) ;; |
| 1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1048 | ac_unrecognized_sep=', ';; |
| 1049 | esac |
| 1050 | eval with_$ac_useropt=no ;; |
| 1051 | |
| 1052 | --x) |
| 1053 | # Obsolete; use --with-x. |
| 1054 | with_x=yes ;; |
| 1055 | |
| 1056 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1057 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1058 | ac_prev=x_includes ;; |
| 1059 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1060 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1061 | x_includes=$ac_optarg ;; |
| 1062 | |
| 1063 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1064 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1065 | ac_prev=x_libraries ;; |
| 1066 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1067 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1068 | x_libraries=$ac_optarg ;; |
| 1069 | |
| 1070 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1071 | Try \`$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 |
| 1093 | done |
| 1094 | |
| 1095 | if test -n "$ac_prev"; then |
| 1096 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1097 | as_fn_error $? "missing argument to $ac_option" |
| 1098 | fi |
| 1099 | |
| 1100 | if 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 |
| 1106 | fi |
| 1107 | |
| 1108 | # Check all directory arguments for consistency. |
| 1109 | for 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 Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1112 | libdir localedir mandir runstatedir |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1113 | do |
| 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" |
| 1127 | done |
| 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. |
| 1132 | build=$build_alias |
| 1133 | host=$host_alias |
| 1134 | target=$target_alias |
| 1135 | |
| 1136 | # FIXME: To remove some day. |
| 1137 | if 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 |
| 1143 | fi |
| 1144 | |
| 1145 | ac_tool_prefix= |
| 1146 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1147 | |
| 1148 | test "$silent" = yes && exec 6>/dev/null |
| 1149 | |
| 1150 | |
| 1151 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1152 | ac_ls_di=`ls -di .` && |
| 1153 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1154 | as_fn_error $? "working directory cannot be determined" |
| 1155 | test "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. |
| 1160 | if 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 |
| 1190 | else |
| 1191 | ac_srcdir_defaulted=no |
| 1192 | fi |
| 1193 | if 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" |
| 1196 | fi |
| 1197 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1198 | ac_abs_confdir=`( |
| 1199 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1200 | pwd)` |
| 1201 | # When building in place, set srcdir=. |
| 1202 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1203 | srcdir=. |
| 1204 | fi |
| 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. |
| 1208 | case $srcdir in |
| 1209 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1210 | esac |
| 1211 | for 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} |
| 1216 | done |
| 1217 | |
| 1218 | # |
| 1219 | # Report the --help message. |
| 1220 | # |
| 1221 | if 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 | |
| 1227 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1228 | |
| 1229 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1230 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1231 | |
| 1232 | Defaults for the options are specified in brackets. |
| 1233 | |
| 1234 | Configuration: |
| 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 | |
| 1245 | Installation 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 | |
| 1251 | By default, \`make install' will install all the files in |
| 1252 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1253 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1254 | for instance \`--prefix=\$HOME'. |
| 1255 | |
| 1256 | For better control, use the options below. |
| 1257 | |
| 1258 | Fine 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 Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1265 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1266 | --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 |
| 1283 | fi |
| 1284 | |
| 1285 | if 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 Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 1291 | Optional 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 Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1295 | --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk |
| 1296 | "location of the source files for the sky130 (pdks |
Ahmed Ghazy | 3238548 | 2021-01-19 20:38:14 +0200 | [diff] [blame] | 1297 | with a pdk_url file can automatically download them |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1298 | if the path is omitted)" |
| 1299 | --enable-klayout |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1300 | Enable or disable klayout setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1301 | |
| 1302 | |
| 1303 | --enable-magic |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1304 | Enable or disable magic setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1305 | |
| 1306 | |
| 1307 | --enable-netgen |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1308 | Enable or disable netgen setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1309 | |
| 1310 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 1311 | --enable-irsim |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1312 | Enable or disable irsim setup [default=enabled] |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 1313 | |
| 1314 | |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1315 | --enable-openlane |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1316 | Enable or disable openlane setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1317 | |
| 1318 | |
| 1319 | --enable-qflow |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1320 | Enable or disable qflow setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1321 | |
| 1322 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1323 | --enable-xschem |
| 1324 | Enable or disable xschem setup [default=enabled] |
| 1325 | |
| 1326 | |
| 1327 | --enable-alpha-sky130[=path] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1328 | Install sky130_ml_xx_hd. If path is omitted, it'll be |
| 1329 | downloaded. [default=disabled] |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1330 | --enable-xschem-sky130[=path] |
| 1331 | Install xschem_sky130. If path is omitted, it'll be |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1332 | downloaded. [default=disabled] |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 1333 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1334 | Optional Packages: |
| 1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1337 | --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 Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1341 | 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 Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1347 | |
| 1348 | Some influential environment variables: |
| 1349 | PYTHON the Python interpreter |
| 1350 | |
| 1351 | Use these variables to override the choices made by `configure' or to help |
| 1352 | it to find libraries and programs with nonstandard names/locations. |
| 1353 | |
| 1354 | Report bugs to <github.com/RTimothyEdwards/open_pdks>. |
| 1355 | _ACEOF |
| 1356 | ac_status=$? |
| 1357 | fi |
| 1358 | |
| 1359 | if 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 | |
| 1367 | case "$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 ;; |
| 1377 | esac |
| 1378 | ac_abs_top_builddir=$ac_pwd |
| 1379 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1380 | # for backward compatibility: |
| 1381 | ac_top_builddir=$ac_top_build_prefix |
| 1382 | |
| 1383 | case $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 ;; |
| 1396 | esac |
| 1397 | ac_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 |
| 1412 | fi |
| 1413 | |
| 1414 | test -n "$ac_init_help" && exit $ac_status |
| 1415 | if $ac_init_version; then |
| 1416 | cat <<\_ACEOF |
| 1417 | open_pdks configure 1.0 |
| 1418 | generated by GNU Autoconf 2.69 |
| 1419 | |
| 1420 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1421 | This configure script is free software; the Free Software Foundation |
| 1422 | gives unlimited permission to copy, distribute and modify it. |
| 1423 | _ACEOF |
| 1424 | exit |
| 1425 | fi |
| 1426 | |
| 1427 | ## ------------------------ ## |
| 1428 | ## Autoconf initialization. ## |
| 1429 | ## ------------------------ ## |
| 1430 | cat >config.log <<_ACEOF |
| 1431 | This file contains any messages produced by compilers while |
| 1432 | running configure, to aid debugging if configure makes a mistake. |
| 1433 | |
| 1434 | It was created by open_pdks $as_me 1.0, which was |
| 1435 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1436 | |
| 1437 | $ $0 $@ |
| 1438 | |
| 1439 | _ACEOF |
| 1440 | exec 5>>config.log |
| 1441 | { |
| 1442 | cat <<_ASUNAME |
| 1443 | ## --------- ## |
| 1444 | ## Platform. ## |
| 1445 | ## --------- ## |
| 1446 | |
| 1447 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1448 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1449 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1450 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1451 | uname -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 | |
| 1466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1467 | for as_dir in $PATH |
| 1468 | do |
| 1469 | IFS=$as_save_IFS |
| 1470 | test -z "$as_dir" && as_dir=. |
| 1471 | $as_echo "PATH: $as_dir" |
| 1472 | done |
| 1473 | IFS=$as_save_IFS |
| 1474 | |
| 1475 | } >&5 |
| 1476 | |
| 1477 | cat >&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. |
| 1492 | ac_configure_args= |
| 1493 | ac_configure_args0= |
| 1494 | ac_configure_args1= |
| 1495 | ac_must_keep_next=false |
| 1496 | for ac_pass in 1 2 |
| 1497 | do |
| 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 |
| 1531 | done |
| 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. |
| 1540 | trap '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 |
| 1627 | for ac_signal in 1 2 13 15; do |
| 1628 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1629 | done |
| 1630 | ac_signal=0 |
| 1631 | |
| 1632 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1633 | rm -f -r conftest* confdefs.h |
| 1634 | |
| 1635 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1636 | |
| 1637 | # Predefined preprocessor variables. |
| 1638 | |
| 1639 | cat >>confdefs.h <<_ACEOF |
| 1640 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1641 | _ACEOF |
| 1642 | |
| 1643 | cat >>confdefs.h <<_ACEOF |
| 1644 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1645 | _ACEOF |
| 1646 | |
| 1647 | cat >>confdefs.h <<_ACEOF |
| 1648 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1649 | _ACEOF |
| 1650 | |
| 1651 | cat >>confdefs.h <<_ACEOF |
| 1652 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1653 | _ACEOF |
| 1654 | |
| 1655 | cat >>confdefs.h <<_ACEOF |
| 1656 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1657 | _ACEOF |
| 1658 | |
| 1659 | cat >>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. |
| 1666 | ac_site_file1=NONE |
| 1667 | ac_site_file2=NONE |
| 1668 | if 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 |
| 1675 | elif test "x$prefix" != xNONE; then |
| 1676 | ac_site_file1=$prefix/share/config.site |
| 1677 | ac_site_file2=$prefix/etc/config.site |
| 1678 | else |
| 1679 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1680 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1681 | fi |
| 1682 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1683 | do |
| 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;} |
| 1692 | as_fn_error $? "failed to load site script $ac_site_file |
| 1693 | See \`config.log' for more details" "$LINENO" 5; } |
| 1694 | fi |
| 1695 | done |
| 1696 | |
| 1697 | if 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 |
| 1708 | else |
| 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 |
| 1712 | fi |
| 1713 | |
| 1714 | # Check that the precious variables saved in the cache have kept the same |
| 1715 | # value. |
| 1716 | ac_cache_corrupted=false |
| 1717 | for 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 |
| 1763 | done |
| 1764 | if $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 |
| 1770 | fi |
| 1771 | ## -------------------- ## |
| 1772 | ## Main body of script. ## |
| 1773 | ## -------------------- ## |
| 1774 | |
| 1775 | ac_ext=c |
| 1776 | ac_cpp='$CPP $CPPFLAGS' |
| 1777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1780 | |
| 1781 | |
| 1782 | |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 1783 | ## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1784 | |
| 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 |
| 1798 | minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0] |
| 1799 | minverhex = 0 |
| 1800 | # xrange is not present in Python 3.0 and range returns an iterator |
| 1801 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 1802 | sys.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; } |
| 1810 | else |
| 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 |
| 1814 | fi |
| 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; } |
| 1821 | if ${am_cv_pathless_PYTHON+:} false; then : |
| 1822 | $as_echo_n "(cached) " >&6 |
| 1823 | else |
| 1824 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1825 | 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 Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1826 | 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 |
| 1831 | minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0] |
| 1832 | minverhex = 0 |
| 1833 | # xrange is not present in Python 3.0 and range returns an iterator |
| 1834 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 1835 | sys.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 |
| 1842 | fi |
| 1843 | done |
| 1844 | fi |
| 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. |
| 1852 | set 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; } |
| 1855 | if ${ac_cv_path_PYTHON+:} false; then : |
| 1856 | $as_echo_n "(cached) " >&6 |
| 1857 | else |
| 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 |
| 1864 | for as_dir in $PATH |
| 1865 | do |
| 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 |
| 1874 | done |
| 1875 | done |
| 1876 | IFS=$as_save_IFS |
| 1877 | |
| 1878 | ;; |
| 1879 | esac |
| 1880 | fi |
| 1881 | PYTHON=$ac_cv_path_PYTHON |
| 1882 | if test -n "$PYTHON"; then |
| 1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 1884 | $as_echo "$PYTHON" >&6; } |
| 1885 | else |
| 1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1887 | $as_echo "no" >&6; } |
| 1888 | fi |
| 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; } |
| 1903 | if ${am_cv_python_version+:} false; then : |
| 1904 | $as_echo_n "(cached) " >&6 |
| 1905 | else |
| 1906 | am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` |
| 1907 | fi |
| 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; } |
| 1922 | if ${am_cv_python_platform+:} false; then : |
| 1923 | $as_echo_n "(cached) " >&6 |
| 1924 | else |
| 1925 | am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` |
| 1926 | fi |
| 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="\ |
| 1934 | import sys |
| 1935 | # Prefer sysconfig over distutils.sysconfig, for better compatibility |
| 1936 | # with python 3.x. See automake bug#10227. |
| 1937 | try: |
| 1938 | import sysconfig |
| 1939 | except ImportError: |
| 1940 | can_use_sysconfig = 0 |
| 1941 | else: |
| 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> |
| 1945 | try: |
| 1946 | from platform import python_implementation |
| 1947 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
| 1948 | can_use_sysconfig = 0 |
| 1949 | except 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; } |
| 1955 | if ${am_cv_python_pythondir+:} false; then : |
| 1956 | $as_echo_n "(cached) " >&6 |
| 1957 | else |
| 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 |
| 1966 | if can_use_sysconfig: |
| 1967 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
| 1968 | else: |
| 1969 | from distutils import sysconfig |
| 1970 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
| 1971 | sys.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 | |
| 1987 | fi |
| 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; } |
| 1999 | if ${am_cv_python_pyexecdir+:} false; then : |
| 2000 | $as_echo_n "(cached) " >&6 |
| 2001 | else |
| 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 |
| 2010 | if can_use_sysconfig: |
| 2011 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) |
| 2012 | else: |
| 2013 | from distutils import sysconfig |
| 2014 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') |
| 2015 | sys.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 | |
| 2031 | fi |
| 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 Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2048 | if test -z ""; |
| 2049 | then |
| 2050 | PYTHON="python3" |
| 2051 | else |
| 2052 | PYTHON="" |
| 2053 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2054 | 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 Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2058 | $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 Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2062 | $as_echo "yes" >&6; } |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2063 | eval HAVE_PYMOD_DISTUTILS=yes |
| 2064 | else |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2066 | $as_echo "no" >&6; } |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2067 | 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 Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2075 | |
| 2076 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2077 | realpath() { |
| 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 Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2088 | |
| 2089 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2090 | # 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 Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2100 | echo "Checking technology sky130..." |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2101 | |
| 2102 | |
| 2103 | SKY130_SOURCE_PATH="" |
| 2104 | SKY130_LOCAL_PATH="" |
| 2105 | SKY130_DIST_PATH="" |
| 2106 | SKY130_LINK_TARGETS="none" |
| 2107 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2108 | pdk_find() { |
| 2109 | FOUND=0 |
| 2110 | for path in /opt/pdks/sky130 /usr/share/pdks/sky130 /usr/local/share/pdks/sky130; do |
| 2111 | if [ -d $path ] ; then |
| 2112 | echo "Found sky130 in $path, using this installation..." |
| 2113 | export SKY130_SOURCE_PATH=$path |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2114 | export SKY130_FOUND=1 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2115 | FOUND=1 |
| 2116 | fi |
| 2117 | done |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2118 | if [ "$FOUND" = "0" ]; then |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2119 | export SKY130_SOURCE_PATH=../sources/sky130-pdk |
| 2120 | export SKY130_FOUND=0 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2121 | fi |
| 2122 | } |
| 2123 | |
| 2124 | # Check whether --enable-sky130-sky130 was given. |
| 2125 | if test "${enable_sky130_pdk+set}" = set; then : |
| 2126 | enableval=$enable_sky130_pdk; |
| 2127 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2128 | echo "Looking for sky130 in usual places" |
| 2129 | pdk_find |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2130 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2131 | echo "Disabling sky130..." |
| 2132 | else |
| 2133 | SKY130_SOURCE_PATH=$enableval |
| 2134 | fi |
| 2135 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2136 | fi |
| 2137 | |
| 2138 | # # Require this argument |
| 2139 | |
| 2140 | if [ "$SKY130_SOURCE_PATH" != "" ]; then |
| 2141 | SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH` |
| 2142 | SKY130_BASENAME=`basename $SKY130_SOURCE_PATH` |
| 2143 | if [ "$SKY130_BASENAME" = "libraries" ]; then |
| 2144 | SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH` |
| 2145 | fi |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2146 | # Basic check that the PDK path exists, unless depending on Makefile |
| 2147 | # to download it automatically. |
| 2148 | if [ "$SKY130_FOUND" == "1" ]; then |
| 2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2150 | $as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;} |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2151 | as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh` |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5 |
| 2153 | $as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; } |
| 2154 | if eval \${$as_ac_File+:} false; then : |
| 2155 | $as_echo_n "(cached) " >&6 |
| 2156 | else |
| 2157 | test "$cross_compiling" = yes && |
| 2158 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 2159 | if test -r "$SKY130_SOURCE_PATH"; then |
| 2160 | eval "$as_ac_File=yes" |
| 2161 | else |
| 2162 | eval "$as_ac_File=no" |
| 2163 | fi |
| 2164 | fi |
| 2165 | eval ac_res=\$$as_ac_File |
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2167 | $as_echo "$ac_res" >&6; } |
| 2168 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 2169 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2171 | $as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;} |
| 2172 | |
| 2173 | else |
| 2174 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2175 | as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2176 | |
| 2177 | fi |
| 2178 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2179 | else |
| 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: PDK 'sky130' will be downloaded automatically during make." >&5 |
| 2181 | $as_echo "$as_me: PDK 'sky130' will be downloaded automatically during make." >&6;} |
| 2182 | fi |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2183 | |
| 2184 | # --with-pdk-local-path=PDK_LOCAL_PATH |
| 2185 | |
| 2186 | # Check whether --with-sky130-local-path was given. |
| 2187 | if test "${with_sky130_local_path+set}" = set; then : |
| 2188 | withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval |
| 2189 | |
| 2190 | fi |
| 2191 | |
| 2192 | |
| 2193 | # Require this argument |
| 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5 |
| 2195 | $as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;} |
| 2196 | if test "x$SKY130_LOCAL_PATH" == "x" ; then |
| 2197 | as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5 |
| 2198 | SKY130_LOCAL_PATH="" |
| 2199 | else |
| 2200 | SKY130_LOCAL_PATH=`realpath $SKY130_LOCAL_PATH` |
| 2201 | fi |
| 2202 | |
| 2203 | # --with-pdk-dist-path=PDK_DIST_PATH |
| 2204 | |
| 2205 | # Check whether --with-sky130-dist-path was given. |
| 2206 | if test "${with_sky130_dist_path+set}" = set; then : |
| 2207 | withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval |
| 2208 | |
| 2209 | fi |
| 2210 | |
| 2211 | |
| 2212 | |
| 2213 | # "Require" this argument |
| 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5 |
| 2215 | $as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;} |
| 2216 | if test "x$SKY130_DIST_PATH" == "x" ; then |
| 2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only." >&5 |
| 2218 | $as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only." >&6;} |
| 2219 | SKY130_DIST_PATH="" |
| 2220 | else |
| 2221 | SKY130_DIST_PATH=`realpath $SKY130_DIST_PATH` |
| 2222 | fi |
| 2223 | |
| 2224 | # --with-pdk-link-targets=PDK_LINK_TARGETS |
| 2225 | |
| 2226 | # Check whether --with-sky130-link-targets was given. |
| 2227 | if test "${with_sky130_link_targets+set}" = set; then : |
| 2228 | withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets |
| 2229 | |
| 2230 | fi |
| 2231 | |
| 2232 | |
| 2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5 |
| 2234 | $as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;} |
| 2235 | fi |
| 2236 | |
| 2237 | |
| 2238 | |
| 2239 | |
| 2240 | |
| 2241 | |
| 2242 | |
| 2243 | |
| 2244 | # Set variables for tool setups |
| 2245 | |
| 2246 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5 |
| 2248 | $as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2249 | |
| 2250 | |
| 2251 | |
| 2252 | |
| 2253 | |
| 2254 | KLAYOUT_DISABLED=0 |
| 2255 | # Check whether --enable-klayout was given. |
| 2256 | if test "${enable_klayout+set}" = set; then : |
| 2257 | enableval=$enable_klayout; |
| 2258 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2259 | KLAYOUT_DISABLED=1 |
| 2260 | fi |
| 2261 | |
| 2262 | |
| 2263 | fi |
| 2264 | |
| 2265 | |
| 2266 | |
| 2267 | |
| 2268 | |
| 2269 | MAGIC_DISABLED=0 |
| 2270 | # Check whether --enable-magic was given. |
| 2271 | if test "${enable_magic+set}" = set; then : |
| 2272 | enableval=$enable_magic; |
| 2273 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2274 | MAGIC_DISABLED=1 |
| 2275 | fi |
| 2276 | |
| 2277 | |
| 2278 | fi |
| 2279 | |
| 2280 | |
| 2281 | |
| 2282 | |
| 2283 | |
| 2284 | NETGEN_DISABLED=0 |
| 2285 | # Check whether --enable-netgen was given. |
| 2286 | if test "${enable_netgen+set}" = set; then : |
| 2287 | enableval=$enable_netgen; |
| 2288 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2289 | NETGEN_DISABLED=1 |
| 2290 | fi |
| 2291 | |
| 2292 | |
| 2293 | fi |
| 2294 | |
| 2295 | |
| 2296 | |
| 2297 | |
| 2298 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 2299 | IRSIM_DISABLED=0 |
| 2300 | # Check whether --enable-irsim was given. |
| 2301 | if test "${enable_irsim+set}" = set; then : |
| 2302 | enableval=$enable_irsim; |
| 2303 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2304 | IRSIM_DISABLED=1 |
| 2305 | fi |
| 2306 | |
| 2307 | |
| 2308 | fi |
| 2309 | |
| 2310 | |
| 2311 | |
| 2312 | |
| 2313 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2314 | OPENLANE_DISABLED=0 |
| 2315 | # Check whether --enable-openlane was given. |
| 2316 | if test "${enable_openlane+set}" = set; then : |
| 2317 | enableval=$enable_openlane; |
| 2318 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2319 | OPENLANE_DISABLED=1 |
| 2320 | fi |
| 2321 | |
| 2322 | |
| 2323 | fi |
| 2324 | |
| 2325 | |
| 2326 | |
| 2327 | |
| 2328 | |
| 2329 | QFLOW_DISABLED=0 |
| 2330 | # Check whether --enable-qflow was given. |
| 2331 | if test "${enable_qflow+set}" = set; then : |
| 2332 | enableval=$enable_qflow; |
| 2333 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2334 | QFLOW_DISABLED=1 |
| 2335 | fi |
| 2336 | |
| 2337 | |
| 2338 | fi |
| 2339 | |
| 2340 | |
| 2341 | |
| 2342 | |
| 2343 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2344 | XSCHEM_DISABLED=0 |
| 2345 | # Check whether --enable-xschem was given. |
| 2346 | if test "${enable_xschem+set}" = set; then : |
| 2347 | enableval=$enable_xschem; |
| 2348 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2349 | XSCHEM_DISABLED=1 |
| 2350 | fi |
| 2351 | |
| 2352 | |
| 2353 | fi |
| 2354 | |
| 2355 | |
| 2356 | |
| 2357 | |
| 2358 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2359 | # Magic |
| 2360 | # Extract the first word of "magic", so it can be a program name with args. |
| 2361 | set dummy magic; ac_word=$2 |
| 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2363 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2364 | if ${ac_cv_path_MAGIC+:} false; then : |
| 2365 | $as_echo_n "(cached) " >&6 |
| 2366 | else |
| 2367 | case $MAGIC in |
| 2368 | [\\/]* | ?:[\\/]*) |
| 2369 | ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. |
| 2370 | ;; |
| 2371 | *) |
| 2372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2373 | for as_dir in $PATH |
| 2374 | do |
| 2375 | IFS=$as_save_IFS |
| 2376 | test -z "$as_dir" && as_dir=. |
| 2377 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2379 | ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext" |
| 2380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2381 | break 2 |
| 2382 | fi |
| 2383 | done |
| 2384 | done |
| 2385 | IFS=$as_save_IFS |
| 2386 | |
| 2387 | ;; |
| 2388 | esac |
| 2389 | fi |
| 2390 | MAGIC=$ac_cv_path_MAGIC |
| 2391 | if test -n "$MAGIC"; then |
| 2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5 |
| 2393 | $as_echo "$MAGIC" >&6; } |
| 2394 | else |
| 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2396 | $as_echo "no" >&6; } |
| 2397 | fi |
| 2398 | |
| 2399 | |
| 2400 | if test -z "$MAGIC"; then |
| 2401 | as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5 |
| 2402 | fi |
| 2403 | # Extract the first word of "patch", so it can be a program name with args. |
| 2404 | set dummy patch; ac_word=$2 |
| 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2406 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2407 | if ${ac_cv_path_PATCH+:} false; then : |
| 2408 | $as_echo_n "(cached) " >&6 |
| 2409 | else |
| 2410 | case $PATCH in |
| 2411 | [\\/]* | ?:[\\/]*) |
| 2412 | ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. |
| 2413 | ;; |
| 2414 | *) |
| 2415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2416 | for as_dir in $PATH |
| 2417 | do |
| 2418 | IFS=$as_save_IFS |
| 2419 | test -z "$as_dir" && as_dir=. |
| 2420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2422 | ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" |
| 2423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2424 | break 2 |
| 2425 | fi |
| 2426 | done |
| 2427 | done |
| 2428 | IFS=$as_save_IFS |
| 2429 | |
| 2430 | ;; |
| 2431 | esac |
| 2432 | fi |
| 2433 | PATCH=$ac_cv_path_PATCH |
| 2434 | if test -n "$PATCH"; then |
| 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 |
| 2436 | $as_echo "$PATCH" >&6; } |
| 2437 | else |
| 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2439 | $as_echo "no" >&6; } |
| 2440 | fi |
| 2441 | |
| 2442 | |
| 2443 | if test -z "$PATCH"; then |
| 2444 | as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5 |
| 2445 | fi |
| 2446 | |
| 2447 | # Other installations (libraries or tools if applicable) |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2448 | |
| 2449 | |
| 2450 | |
| 2451 | |
| 2452 | |
| 2453 | |
| 2454 | |
| 2455 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2456 | # echo target targetvar flag location |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2457 | |
| 2458 | SKY130_ML_XX_HD_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2459 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2460 | # Check whether --enable-alpha-sky130 was given. |
| 2461 | if test "${enable_alpha_sky130+set}" = set; then : |
| 2462 | enableval=$enable_alpha_sky130; |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2463 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: Option 'sky130_ml_xx_hd' will be installed automatically during make." >&5 |
| 2465 | $as_echo "$as_me: Option 'sky130_ml_xx_hd' will be installed automatically during make." >&6;} |
| 2466 | export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2467 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling option 'sky130_ml_xx_hd'" >&5 |
| 2469 | $as_echo "$as_me: Disabling option 'sky130_ml_xx_hd'" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2470 | else |
| 2471 | SKY130_ML_XX_HD_PATH=$enableval |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling option 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&5 |
| 2473 | $as_echo "$as_me: Enabling option 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2474 | fi |
| 2475 | SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH` |
| 2476 | |
| 2477 | fi |
| 2478 | |
| 2479 | |
| 2480 | |
| 2481 | |
| 2482 | |
| 2483 | |
| 2484 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2490 | # echo target targetvar flag location |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2491 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2492 | XSCHEM_SKY130_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2493 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2494 | # Check whether --enable-xschem-sky130 was given. |
| 2495 | if test "${enable_xschem_sky130+set}" = set; then : |
| 2496 | enableval=$enable_xschem_sky130; |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2497 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: Option 'xschem_sky130' will be installed automatically during make." >&5 |
| 2499 | $as_echo "$as_me: Option 'xschem_sky130' will be installed automatically during make." >&6;} |
| 2500 | export XSCHEM_SKY130_PATH=../sources/xschem_sky130 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2501 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling option 'xschem_sky130'" >&5 |
| 2503 | $as_echo "$as_me: Disabling option 'xschem_sky130'" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2504 | else |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2505 | XSCHEM_SKY130_PATH=$enableval |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame^] | 2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling option 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&5 |
| 2507 | $as_echo "$as_me: Enabling option 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2508 | fi |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2509 | XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH` |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2510 | |
| 2511 | fi |
| 2512 | |
| 2513 | |
| 2514 | |
| 2515 | |
| 2516 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2517 | |
| 2518 | |
| 2519 | |
| 2520 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5 |
| 2522 | $as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2523 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 2524 | # Check for "--with-ef-style" |
| 2525 | EF_STYLE=0 |
| 2526 | |
| 2527 | # Check whether --with-ef-style was given. |
| 2528 | if test "${with_ef_style+set}" = set; then : |
| 2529 | withval=$with_ef_style; |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 2530 | pdks_ef_style=$withval |
| 2531 | if test "$withval" == "yes" -o "$withval" == "YES"; then |
| 2532 | EF_STYLE=1 |
| 2533 | fi |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 2534 | |
| 2535 | fi |
| 2536 | |
| 2537 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2538 | |
| 2539 | |
| 2540 | MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g') |
| 2541 | ac_config_files="$ac_config_files $MAKEFILES" |
| 2542 | |
| 2543 | |
| 2544 | cat >confcache <<\_ACEOF |
| 2545 | # This file is a shell script that caches the results of configure |
| 2546 | # tests run on this system so they can be shared between configure |
| 2547 | # scripts and configure runs, see configure's option --config-cache. |
| 2548 | # It is not useful on other systems. If it contains results you don't |
| 2549 | # want to keep, you may remove or edit it. |
| 2550 | # |
| 2551 | # config.status only pays attention to the cache file if you give it |
| 2552 | # the --recheck option to rerun configure. |
| 2553 | # |
| 2554 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2555 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2556 | # following values. |
| 2557 | |
| 2558 | _ACEOF |
| 2559 | |
| 2560 | # The following way of writing the cache mishandles newlines in values, |
| 2561 | # but we know of no workaround that is simple, portable, and efficient. |
| 2562 | # So, we kill variables containing newlines. |
| 2563 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2564 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2565 | ( |
| 2566 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 2567 | eval ac_val=\$$ac_var |
| 2568 | case $ac_val in #( |
| 2569 | *${as_nl}*) |
| 2570 | case $ac_var in #( |
| 2571 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2572 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2573 | esac |
| 2574 | case $ac_var in #( |
| 2575 | _ | IFS | as_nl) ;; #( |
| 2576 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2577 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2578 | esac ;; |
| 2579 | esac |
| 2580 | done |
| 2581 | |
| 2582 | (set) 2>&1 | |
| 2583 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 2584 | *${as_nl}ac_space=\ *) |
| 2585 | # `set' does not quote correctly, so add quotes: double-quote |
| 2586 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 2587 | sed -n \ |
| 2588 | "s/'/'\\\\''/g; |
| 2589 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 2590 | ;; #( |
| 2591 | *) |
| 2592 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2593 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2594 | ;; |
| 2595 | esac | |
| 2596 | sort |
| 2597 | ) | |
| 2598 | sed ' |
| 2599 | /^ac_cv_env_/b end |
| 2600 | t clear |
| 2601 | :clear |
| 2602 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 2603 | t end |
| 2604 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 2605 | :end' >>confcache |
| 2606 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 2607 | if test -w "$cache_file"; then |
| 2608 | if test "x$cache_file" != "x/dev/null"; then |
| 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 2610 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 2611 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 2612 | cat confcache >"$cache_file" |
| 2613 | else |
| 2614 | case $cache_file in #( |
| 2615 | */* | ?:*) |
| 2616 | mv -f confcache "$cache_file"$$ && |
| 2617 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 2618 | *) |
| 2619 | mv -f confcache "$cache_file" ;; |
| 2620 | esac |
| 2621 | fi |
| 2622 | fi |
| 2623 | else |
| 2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 2625 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 2626 | fi |
| 2627 | fi |
| 2628 | rm -f confcache |
| 2629 | |
| 2630 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2631 | # Let make expand exec_prefix. |
| 2632 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2633 | |
| 2634 | # Transform confdefs.h into DEFS. |
| 2635 | # Protect against shell expansion while executing Makefile rules. |
| 2636 | # Protect against Makefile macro expansion. |
| 2637 | # |
| 2638 | # If the first sed substitution is executed (which looks for macros that |
| 2639 | # take arguments), then branch to the quote section. Otherwise, |
| 2640 | # look for a macro that doesn't take arguments. |
| 2641 | ac_script=' |
| 2642 | :mline |
| 2643 | /\\$/{ |
| 2644 | N |
| 2645 | s,\\\n,, |
| 2646 | b mline |
| 2647 | } |
| 2648 | t clear |
| 2649 | :clear |
| 2650 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 2651 | t quote |
| 2652 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 2653 | t quote |
| 2654 | b any |
| 2655 | :quote |
| 2656 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 2657 | s/\[/\\&/g |
| 2658 | s/\]/\\&/g |
| 2659 | s/\$/$$/g |
| 2660 | H |
| 2661 | :any |
| 2662 | ${ |
| 2663 | g |
| 2664 | s/^\n// |
| 2665 | s/\n/ /g |
| 2666 | p |
| 2667 | } |
| 2668 | ' |
| 2669 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 2670 | |
| 2671 | |
| 2672 | ac_libobjs= |
| 2673 | ac_ltlibobjs= |
| 2674 | U= |
| 2675 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 2676 | # 1. Remove the extension, and $U if already installed. |
| 2677 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 2678 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 2679 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 2680 | # will be set to the directory where LIBOBJS objects are built. |
| 2681 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 2682 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 2683 | done |
| 2684 | LIBOBJS=$ac_libobjs |
| 2685 | |
| 2686 | LTLIBOBJS=$ac_ltlibobjs |
| 2687 | |
| 2688 | |
| 2689 | |
| 2690 | : "${CONFIG_STATUS=./config.status}" |
| 2691 | ac_write_fail=0 |
| 2692 | ac_clean_files_save=$ac_clean_files |
| 2693 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 2695 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 2696 | as_write_fail=0 |
| 2697 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 2698 | #! $SHELL |
| 2699 | # Generated by $as_me. |
| 2700 | # Run this file to recreate the current configuration. |
| 2701 | # Compiler output produced by configure, useful for debugging |
| 2702 | # configure, is in config.log if it exists. |
| 2703 | |
| 2704 | debug=false |
| 2705 | ac_cs_recheck=false |
| 2706 | ac_cs_silent=false |
| 2707 | |
| 2708 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 2709 | export SHELL |
| 2710 | _ASEOF |
| 2711 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 2712 | ## -------------------- ## |
| 2713 | ## M4sh Initialization. ## |
| 2714 | ## -------------------- ## |
| 2715 | |
| 2716 | # Be more Bourne compatible |
| 2717 | DUALCASE=1; export DUALCASE # for MKS sh |
| 2718 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 2719 | emulate sh |
| 2720 | NULLCMD=: |
| 2721 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 2722 | # is contrary to our usage. Disable this feature. |
| 2723 | alias -g '${1+"$@"}'='"$@"' |
| 2724 | setopt NO_GLOB_SUBST |
| 2725 | else |
| 2726 | case `(set -o) 2>/dev/null` in #( |
| 2727 | *posix*) : |
| 2728 | set -o posix ;; #( |
| 2729 | *) : |
| 2730 | ;; |
| 2731 | esac |
| 2732 | fi |
| 2733 | |
| 2734 | |
| 2735 | as_nl=' |
| 2736 | ' |
| 2737 | export as_nl |
| 2738 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 2739 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2740 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2741 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2742 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 2743 | # but without wasting forks for bash or zsh. |
| 2744 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 2745 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2746 | as_echo='print -r --' |
| 2747 | as_echo_n='print -rn --' |
| 2748 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2749 | as_echo='printf %s\n' |
| 2750 | as_echo_n='printf %s' |
| 2751 | else |
| 2752 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 2753 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 2754 | as_echo_n='/usr/ucb/echo -n' |
| 2755 | else |
| 2756 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 2757 | as_echo_n_body='eval |
| 2758 | arg=$1; |
| 2759 | case $arg in #( |
| 2760 | *"$as_nl"*) |
| 2761 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 2762 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 2763 | esac; |
| 2764 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 2765 | ' |
| 2766 | export as_echo_n_body |
| 2767 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 2768 | fi |
| 2769 | export as_echo_body |
| 2770 | as_echo='sh -c $as_echo_body as_echo' |
| 2771 | fi |
| 2772 | |
| 2773 | # The user is always right. |
| 2774 | if test "${PATH_SEPARATOR+set}" != set; then |
| 2775 | PATH_SEPARATOR=: |
| 2776 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 2777 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 2778 | PATH_SEPARATOR=';' |
| 2779 | } |
| 2780 | fi |
| 2781 | |
| 2782 | |
| 2783 | # IFS |
| 2784 | # We need space, tab and new line, in precisely that order. Quoting is |
| 2785 | # there to prevent editors from complaining about space-tab. |
| 2786 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 2787 | # splitting by setting IFS to empty value.) |
| 2788 | IFS=" "" $as_nl" |
| 2789 | |
| 2790 | # Find who we are. Look in the path if we contain no directory separator. |
| 2791 | as_myself= |
| 2792 | case $0 in #(( |
| 2793 | *[\\/]* ) as_myself=$0 ;; |
| 2794 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2795 | for as_dir in $PATH |
| 2796 | do |
| 2797 | IFS=$as_save_IFS |
| 2798 | test -z "$as_dir" && as_dir=. |
| 2799 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 2800 | done |
| 2801 | IFS=$as_save_IFS |
| 2802 | |
| 2803 | ;; |
| 2804 | esac |
| 2805 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 2806 | # in which case we are not to be found in the path. |
| 2807 | if test "x$as_myself" = x; then |
| 2808 | as_myself=$0 |
| 2809 | fi |
| 2810 | if test ! -f "$as_myself"; then |
| 2811 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 2812 | exit 1 |
| 2813 | fi |
| 2814 | |
| 2815 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 2816 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 2817 | # suppresses any "Segmentation fault" message there. '((' could |
| 2818 | # trigger a bug in pdksh 5.2.14. |
| 2819 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 2820 | do eval test x\${$as_var+set} = xset \ |
| 2821 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 2822 | done |
| 2823 | PS1='$ ' |
| 2824 | PS2='> ' |
| 2825 | PS4='+ ' |
| 2826 | |
| 2827 | # NLS nuisances. |
| 2828 | LC_ALL=C |
| 2829 | export LC_ALL |
| 2830 | LANGUAGE=C |
| 2831 | export LANGUAGE |
| 2832 | |
| 2833 | # CDPATH. |
| 2834 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 2835 | |
| 2836 | |
| 2837 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 2838 | # ---------------------------------------- |
| 2839 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 2840 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 2841 | # script with STATUS, using 1 if that was 0. |
| 2842 | as_fn_error () |
| 2843 | { |
| 2844 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 2845 | if test "$4"; then |
| 2846 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2847 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 2848 | fi |
| 2849 | $as_echo "$as_me: error: $2" >&2 |
| 2850 | as_fn_exit $as_status |
| 2851 | } # as_fn_error |
| 2852 | |
| 2853 | |
| 2854 | # as_fn_set_status STATUS |
| 2855 | # ----------------------- |
| 2856 | # Set $? to STATUS, without forking. |
| 2857 | as_fn_set_status () |
| 2858 | { |
| 2859 | return $1 |
| 2860 | } # as_fn_set_status |
| 2861 | |
| 2862 | # as_fn_exit STATUS |
| 2863 | # ----------------- |
| 2864 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 2865 | as_fn_exit () |
| 2866 | { |
| 2867 | set +e |
| 2868 | as_fn_set_status $1 |
| 2869 | exit $1 |
| 2870 | } # as_fn_exit |
| 2871 | |
| 2872 | # as_fn_unset VAR |
| 2873 | # --------------- |
| 2874 | # Portably unset VAR. |
| 2875 | as_fn_unset () |
| 2876 | { |
| 2877 | { eval $1=; unset $1;} |
| 2878 | } |
| 2879 | as_unset=as_fn_unset |
| 2880 | # as_fn_append VAR VALUE |
| 2881 | # ---------------------- |
| 2882 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 2883 | # advantage of any shell optimizations that allow amortized linear growth over |
| 2884 | # repeated appends, instead of the typical quadratic growth present in naive |
| 2885 | # implementations. |
| 2886 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 2887 | eval 'as_fn_append () |
| 2888 | { |
| 2889 | eval $1+=\$2 |
| 2890 | }' |
| 2891 | else |
| 2892 | as_fn_append () |
| 2893 | { |
| 2894 | eval $1=\$$1\$2 |
| 2895 | } |
| 2896 | fi # as_fn_append |
| 2897 | |
| 2898 | # as_fn_arith ARG... |
| 2899 | # ------------------ |
| 2900 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 2901 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 2902 | # must be portable across $(()) and expr. |
| 2903 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 2904 | eval 'as_fn_arith () |
| 2905 | { |
| 2906 | as_val=$(( $* )) |
| 2907 | }' |
| 2908 | else |
| 2909 | as_fn_arith () |
| 2910 | { |
| 2911 | as_val=`expr "$@" || test $? -eq 1` |
| 2912 | } |
| 2913 | fi # as_fn_arith |
| 2914 | |
| 2915 | |
| 2916 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 2917 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 2918 | as_expr=expr |
| 2919 | else |
| 2920 | as_expr=false |
| 2921 | fi |
| 2922 | |
| 2923 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 2924 | as_basename=basename |
| 2925 | else |
| 2926 | as_basename=false |
| 2927 | fi |
| 2928 | |
| 2929 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 2930 | as_dirname=dirname |
| 2931 | else |
| 2932 | as_dirname=false |
| 2933 | fi |
| 2934 | |
| 2935 | as_me=`$as_basename -- "$0" || |
| 2936 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 2937 | X"$0" : 'X\(//\)$' \| \ |
| 2938 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 2939 | $as_echo X/"$0" | |
| 2940 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 2941 | s//\1/ |
| 2942 | q |
| 2943 | } |
| 2944 | /^X\/\(\/\/\)$/{ |
| 2945 | s//\1/ |
| 2946 | q |
| 2947 | } |
| 2948 | /^X\/\(\/\).*/{ |
| 2949 | s//\1/ |
| 2950 | q |
| 2951 | } |
| 2952 | s/.*/./; q'` |
| 2953 | |
| 2954 | # Avoid depending upon Character Ranges. |
| 2955 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 2956 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 2957 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 2958 | as_cr_digits='0123456789' |
| 2959 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 2960 | |
| 2961 | ECHO_C= ECHO_N= ECHO_T= |
| 2962 | case `echo -n x` in #((((( |
| 2963 | -n*) |
| 2964 | case `echo 'xy\c'` in |
| 2965 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 2966 | xy) ECHO_C='\c';; |
| 2967 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 2968 | ECHO_T=' ';; |
| 2969 | esac;; |
| 2970 | *) |
| 2971 | ECHO_N='-n';; |
| 2972 | esac |
| 2973 | |
| 2974 | rm -f conf$$ conf$$.exe conf$$.file |
| 2975 | if test -d conf$$.dir; then |
| 2976 | rm -f conf$$.dir/conf$$.file |
| 2977 | else |
| 2978 | rm -f conf$$.dir |
| 2979 | mkdir conf$$.dir 2>/dev/null |
| 2980 | fi |
| 2981 | if (echo >conf$$.file) 2>/dev/null; then |
| 2982 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 2983 | as_ln_s='ln -s' |
| 2984 | # ... but there are two gotchas: |
| 2985 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 2986 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 2987 | # In both cases, we have to default to `cp -pR'. |
| 2988 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 2989 | as_ln_s='cp -pR' |
| 2990 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 2991 | as_ln_s=ln |
| 2992 | else |
| 2993 | as_ln_s='cp -pR' |
| 2994 | fi |
| 2995 | else |
| 2996 | as_ln_s='cp -pR' |
| 2997 | fi |
| 2998 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 2999 | rmdir conf$$.dir 2>/dev/null |
| 3000 | |
| 3001 | |
| 3002 | # as_fn_mkdir_p |
| 3003 | # ------------- |
| 3004 | # Create "$as_dir" as a directory, including parents if necessary. |
| 3005 | as_fn_mkdir_p () |
| 3006 | { |
| 3007 | |
| 3008 | case $as_dir in #( |
| 3009 | -*) as_dir=./$as_dir;; |
| 3010 | esac |
| 3011 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 3012 | as_dirs= |
| 3013 | while :; do |
| 3014 | case $as_dir in #( |
| 3015 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 3016 | *) as_qdir=$as_dir;; |
| 3017 | esac |
| 3018 | as_dirs="'$as_qdir' $as_dirs" |
| 3019 | as_dir=`$as_dirname -- "$as_dir" || |
| 3020 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3021 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 3022 | X"$as_dir" : 'X\(//\)$' \| \ |
| 3023 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 3024 | $as_echo X"$as_dir" | |
| 3025 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3026 | s//\1/ |
| 3027 | q |
| 3028 | } |
| 3029 | /^X\(\/\/\)[^/].*/{ |
| 3030 | s//\1/ |
| 3031 | q |
| 3032 | } |
| 3033 | /^X\(\/\/\)$/{ |
| 3034 | s//\1/ |
| 3035 | q |
| 3036 | } |
| 3037 | /^X\(\/\).*/{ |
| 3038 | s//\1/ |
| 3039 | q |
| 3040 | } |
| 3041 | s/.*/./; q'` |
| 3042 | test -d "$as_dir" && break |
| 3043 | done |
| 3044 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 3045 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 3046 | |
| 3047 | |
| 3048 | } # as_fn_mkdir_p |
| 3049 | if mkdir -p . 2>/dev/null; then |
| 3050 | as_mkdir_p='mkdir -p "$as_dir"' |
| 3051 | else |
| 3052 | test -d ./-p && rmdir ./-p |
| 3053 | as_mkdir_p=false |
| 3054 | fi |
| 3055 | |
| 3056 | |
| 3057 | # as_fn_executable_p FILE |
| 3058 | # ----------------------- |
| 3059 | # Test if FILE is an executable regular file. |
| 3060 | as_fn_executable_p () |
| 3061 | { |
| 3062 | test -f "$1" && test -x "$1" |
| 3063 | } # as_fn_executable_p |
| 3064 | as_test_x='test -x' |
| 3065 | as_executable_p=as_fn_executable_p |
| 3066 | |
| 3067 | # Sed expression to map a string onto a valid CPP name. |
| 3068 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 3069 | |
| 3070 | # Sed expression to map a string onto a valid variable name. |
| 3071 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 3072 | |
| 3073 | |
| 3074 | exec 6>&1 |
| 3075 | ## ----------------------------------- ## |
| 3076 | ## Main body of $CONFIG_STATUS script. ## |
| 3077 | ## ----------------------------------- ## |
| 3078 | _ASEOF |
| 3079 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 3080 | |
| 3081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3082 | # Save the log message, to keep $0 and so on meaningful, and to |
| 3083 | # report actual input values of CONFIG_FILES etc. instead of their |
| 3084 | # values after options handling. |
| 3085 | ac_log=" |
| 3086 | This file was extended by open_pdks $as_me 1.0, which was |
| 3087 | generated by GNU Autoconf 2.69. Invocation command line was |
| 3088 | |
| 3089 | CONFIG_FILES = $CONFIG_FILES |
| 3090 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 3091 | CONFIG_LINKS = $CONFIG_LINKS |
| 3092 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 3093 | $ $0 $@ |
| 3094 | |
| 3095 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3096 | " |
| 3097 | |
| 3098 | _ACEOF |
| 3099 | |
| 3100 | case $ac_config_files in *" |
| 3101 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 3102 | esac |
| 3103 | |
| 3104 | |
| 3105 | |
| 3106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3107 | # Files that config.status was made for. |
| 3108 | config_files="$ac_config_files" |
| 3109 | |
| 3110 | _ACEOF |
| 3111 | |
| 3112 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3113 | ac_cs_usage="\ |
| 3114 | \`$as_me' instantiates files and other configuration actions |
| 3115 | from templates according to the current configuration. Unless the files |
| 3116 | and actions are specified as TAGs, all are instantiated by default. |
| 3117 | |
| 3118 | Usage: $0 [OPTION]... [TAG]... |
| 3119 | |
| 3120 | -h, --help print this help, then exit |
| 3121 | -V, --version print version number and configuration settings, then exit |
| 3122 | --config print configuration, then exit |
| 3123 | -q, --quiet, --silent |
| 3124 | do not print progress messages |
| 3125 | -d, --debug don't remove temporary files |
| 3126 | --recheck update $as_me by reconfiguring in the same conditions |
| 3127 | --file=FILE[:TEMPLATE] |
| 3128 | instantiate the configuration file FILE |
| 3129 | |
| 3130 | Configuration files: |
| 3131 | $config_files |
| 3132 | |
| 3133 | Report bugs to <github.com/RTimothyEdwards/open_pdks>." |
| 3134 | |
| 3135 | _ACEOF |
| 3136 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3137 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 3138 | ac_cs_version="\\ |
| 3139 | open_pdks config.status 1.0 |
| 3140 | configured by $0, generated by GNU Autoconf 2.69, |
| 3141 | with options \\"\$ac_cs_config\\" |
| 3142 | |
| 3143 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 3144 | This config.status script is free software; the Free Software Foundation |
| 3145 | gives unlimited permission to copy, distribute and modify it." |
| 3146 | |
| 3147 | ac_pwd='$ac_pwd' |
| 3148 | srcdir='$srcdir' |
| 3149 | test -n "\$AWK" || AWK=awk |
| 3150 | _ACEOF |
| 3151 | |
| 3152 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3153 | # The default lists apply if the user does not specify any file. |
| 3154 | ac_need_defaults=: |
| 3155 | while test $# != 0 |
| 3156 | do |
| 3157 | case $1 in |
| 3158 | --*=?*) |
| 3159 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3160 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 3161 | ac_shift=: |
| 3162 | ;; |
| 3163 | --*=) |
| 3164 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3165 | ac_optarg= |
| 3166 | ac_shift=: |
| 3167 | ;; |
| 3168 | *) |
| 3169 | ac_option=$1 |
| 3170 | ac_optarg=$2 |
| 3171 | ac_shift=shift |
| 3172 | ;; |
| 3173 | esac |
| 3174 | |
| 3175 | case $ac_option in |
| 3176 | # Handling of the options. |
| 3177 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3178 | ac_cs_recheck=: ;; |
| 3179 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 3180 | $as_echo "$ac_cs_version"; exit ;; |
| 3181 | --config | --confi | --conf | --con | --co | --c ) |
| 3182 | $as_echo "$ac_cs_config"; exit ;; |
| 3183 | --debug | --debu | --deb | --de | --d | -d ) |
| 3184 | debug=: ;; |
| 3185 | --file | --fil | --fi | --f ) |
| 3186 | $ac_shift |
| 3187 | case $ac_optarg in |
| 3188 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3189 | '') as_fn_error $? "missing file argument" ;; |
| 3190 | esac |
| 3191 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 3192 | ac_need_defaults=false;; |
| 3193 | --he | --h | --help | --hel | -h ) |
| 3194 | $as_echo "$ac_cs_usage"; exit ;; |
| 3195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3196 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 3197 | ac_cs_silent=: ;; |
| 3198 | |
| 3199 | # This is an error. |
| 3200 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 3201 | Try \`$0 --help' for more information." ;; |
| 3202 | |
| 3203 | *) as_fn_append ac_config_targets " $1" |
| 3204 | ac_need_defaults=false ;; |
| 3205 | |
| 3206 | esac |
| 3207 | shift |
| 3208 | done |
| 3209 | |
| 3210 | ac_configure_extra_args= |
| 3211 | |
| 3212 | if $ac_cs_silent; then |
| 3213 | exec 6>/dev/null |
| 3214 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 3215 | fi |
| 3216 | |
| 3217 | _ACEOF |
| 3218 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3219 | if \$ac_cs_recheck; then |
| 3220 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 3221 | shift |
| 3222 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 3223 | CONFIG_SHELL='$SHELL' |
| 3224 | export CONFIG_SHELL |
| 3225 | exec "\$@" |
| 3226 | fi |
| 3227 | |
| 3228 | _ACEOF |
| 3229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3230 | exec 5>>config.log |
| 3231 | { |
| 3232 | echo |
| 3233 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 3234 | ## Running $as_me. ## |
| 3235 | _ASBOX |
| 3236 | $as_echo "$ac_log" |
| 3237 | } >&5 |
| 3238 | |
| 3239 | _ACEOF |
| 3240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3241 | _ACEOF |
| 3242 | |
| 3243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3244 | |
| 3245 | # Handling of arguments. |
| 3246 | for ac_config_target in $ac_config_targets |
| 3247 | do |
| 3248 | case $ac_config_target in |
| 3249 | "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; |
| 3250 | |
| 3251 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 3252 | esac |
| 3253 | done |
| 3254 | |
| 3255 | |
| 3256 | # If the user did not use the arguments to specify the items to instantiate, |
| 3257 | # then the envvar interface is used. Set only those that are not. |
| 3258 | # We use the long form for the default assignment because of an extremely |
| 3259 | # bizarre bug on SunOS 4.1.3. |
| 3260 | if $ac_need_defaults; then |
| 3261 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 3262 | fi |
| 3263 | |
| 3264 | # Have a temporary directory for convenience. Make it in the build tree |
| 3265 | # simply because there is no reason against having it here, and in addition, |
| 3266 | # creating and moving files from /tmp can sometimes cause problems. |
| 3267 | # Hook for its removal unless debugging. |
| 3268 | # Note that there is a small window in which the directory will not be cleaned: |
| 3269 | # after its creation but before its name has been assigned to `$tmp'. |
| 3270 | $debug || |
| 3271 | { |
| 3272 | tmp= ac_tmp= |
| 3273 | trap 'exit_status=$? |
| 3274 | : "${ac_tmp:=$tmp}" |
| 3275 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 3276 | ' 0 |
| 3277 | trap 'as_fn_exit 1' 1 2 13 15 |
| 3278 | } |
| 3279 | # Create a (secure) tmp directory for tmp files. |
| 3280 | |
| 3281 | { |
| 3282 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 3283 | test -d "$tmp" |
| 3284 | } || |
| 3285 | { |
| 3286 | tmp=./conf$$-$RANDOM |
| 3287 | (umask 077 && mkdir "$tmp") |
| 3288 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 3289 | ac_tmp=$tmp |
| 3290 | |
| 3291 | # Set up the scripts for CONFIG_FILES section. |
| 3292 | # No need to generate them if there are no CONFIG_FILES. |
| 3293 | # This happens for instance with `./config.status config.h'. |
| 3294 | if test -n "$CONFIG_FILES"; then |
| 3295 | |
| 3296 | |
| 3297 | ac_cr=`echo X | tr X '\015'` |
| 3298 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 3299 | # But we know of no other shell where ac_cr would be empty at this |
| 3300 | # point, so we can use a bashism as a fallback. |
| 3301 | if test "x$ac_cr" = x; then |
| 3302 | eval ac_cr=\$\'\\r\' |
| 3303 | fi |
| 3304 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 3305 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 3306 | ac_cs_awk_cr='\\r' |
| 3307 | else |
| 3308 | ac_cs_awk_cr=$ac_cr |
| 3309 | fi |
| 3310 | |
| 3311 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 3312 | _ACEOF |
| 3313 | |
| 3314 | |
| 3315 | { |
| 3316 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 3317 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 3318 | echo "_ACEOF" |
| 3319 | } >conf$$subs.sh || |
| 3320 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3321 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 3322 | ac_delim='%!_!# ' |
| 3323 | for ac_last_try in false false false false false :; do |
| 3324 | . ./conf$$subs.sh || |
| 3325 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3326 | |
| 3327 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 3328 | if test $ac_delim_n = $ac_delim_num; then |
| 3329 | break |
| 3330 | elif $ac_last_try; then |
| 3331 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3332 | else |
| 3333 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 3334 | fi |
| 3335 | done |
| 3336 | rm -f conf$$subs.sh |
| 3337 | |
| 3338 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3339 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 3340 | _ACEOF |
| 3341 | sed -n ' |
| 3342 | h |
| 3343 | s/^/S["/; s/!.*/"]=/ |
| 3344 | p |
| 3345 | g |
| 3346 | s/^[^!]*!// |
| 3347 | :repl |
| 3348 | t repl |
| 3349 | s/'"$ac_delim"'$// |
| 3350 | t delim |
| 3351 | :nl |
| 3352 | h |
| 3353 | s/\(.\{148\}\)..*/\1/ |
| 3354 | t more1 |
| 3355 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 3356 | p |
| 3357 | n |
| 3358 | b repl |
| 3359 | :more1 |
| 3360 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3361 | p |
| 3362 | g |
| 3363 | s/.\{148\}// |
| 3364 | t nl |
| 3365 | :delim |
| 3366 | h |
| 3367 | s/\(.\{148\}\)..*/\1/ |
| 3368 | t more2 |
| 3369 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 3370 | p |
| 3371 | b |
| 3372 | :more2 |
| 3373 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3374 | p |
| 3375 | g |
| 3376 | s/.\{148\}// |
| 3377 | t delim |
| 3378 | ' <conf$$subs.awk | sed ' |
| 3379 | /^[^""]/{ |
| 3380 | N |
| 3381 | s/\n// |
| 3382 | } |
| 3383 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3384 | rm -f conf$$subs.awk |
| 3385 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3386 | _ACAWK |
| 3387 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 3388 | for (key in S) S_is_set[key] = 1 |
| 3389 | FS = "" |
| 3390 | |
| 3391 | } |
| 3392 | { |
| 3393 | line = $ 0 |
| 3394 | nfields = split(line, field, "@") |
| 3395 | substed = 0 |
| 3396 | len = length(field[1]) |
| 3397 | for (i = 2; i < nfields; i++) { |
| 3398 | key = field[i] |
| 3399 | keylen = length(key) |
| 3400 | if (S_is_set[key]) { |
| 3401 | value = S[key] |
| 3402 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 3403 | len += length(value) + length(field[++i]) |
| 3404 | substed = 1 |
| 3405 | } else |
| 3406 | len += 1 + keylen |
| 3407 | } |
| 3408 | |
| 3409 | print line |
| 3410 | } |
| 3411 | |
| 3412 | _ACAWK |
| 3413 | _ACEOF |
| 3414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3415 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 3416 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 3417 | else |
| 3418 | cat |
| 3419 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 3420 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 3421 | _ACEOF |
| 3422 | |
| 3423 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 3424 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 3425 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 3426 | # (actually we leave an empty line to preserve line numbers). |
| 3427 | if test "x$srcdir" = x.; then |
| 3428 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 3429 | h |
| 3430 | s/// |
| 3431 | s/^/:/ |
| 3432 | s/[ ]*$/:/ |
| 3433 | s/:\$(srcdir):/:/g |
| 3434 | s/:\${srcdir}:/:/g |
| 3435 | s/:@srcdir@:/:/g |
| 3436 | s/^:*// |
| 3437 | s/:*$// |
| 3438 | x |
| 3439 | s/\(=[ ]*\).*/\1/ |
| 3440 | G |
| 3441 | s/\n// |
| 3442 | s/^[^=]*=[ ]*$// |
| 3443 | }' |
| 3444 | fi |
| 3445 | |
| 3446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3447 | fi # test -n "$CONFIG_FILES" |
| 3448 | |
| 3449 | |
| 3450 | eval set X " :F $CONFIG_FILES " |
| 3451 | shift |
| 3452 | for ac_tag |
| 3453 | do |
| 3454 | case $ac_tag in |
| 3455 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 3456 | esac |
| 3457 | case $ac_mode$ac_tag in |
| 3458 | :[FHL]*:*);; |
| 3459 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 3460 | :[FH]-) ac_tag=-:-;; |
| 3461 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 3462 | esac |
| 3463 | ac_save_IFS=$IFS |
| 3464 | IFS=: |
| 3465 | set x $ac_tag |
| 3466 | IFS=$ac_save_IFS |
| 3467 | shift |
| 3468 | ac_file=$1 |
| 3469 | shift |
| 3470 | |
| 3471 | case $ac_mode in |
| 3472 | :L) ac_source=$1;; |
| 3473 | :[FH]) |
| 3474 | ac_file_inputs= |
| 3475 | for ac_f |
| 3476 | do |
| 3477 | case $ac_f in |
| 3478 | -) ac_f="$ac_tmp/stdin";; |
| 3479 | *) # Look for the file first in the build tree, then in the source tree |
| 3480 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 3481 | # because $ac_f cannot contain `:'. |
| 3482 | test -f "$ac_f" || |
| 3483 | case $ac_f in |
| 3484 | [\\/$]*) false;; |
| 3485 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 3486 | esac || |
| 3487 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 3488 | esac |
| 3489 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 3490 | as_fn_append ac_file_inputs " '$ac_f'" |
| 3491 | done |
| 3492 | |
| 3493 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 3494 | # use $as_me), people would be surprised to read: |
| 3495 | # /* config.h. Generated by config.status. */ |
| 3496 | configure_input='Generated from '` |
| 3497 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 3498 | `' by configure.' |
| 3499 | if test x"$ac_file" != x-; then |
| 3500 | configure_input="$ac_file. $configure_input" |
| 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 3502 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 3503 | fi |
| 3504 | # Neutralize special characters interpreted by sed in replacement strings. |
| 3505 | case $configure_input in #( |
| 3506 | *\&* | *\|* | *\\* ) |
| 3507 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 3508 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 3509 | *) ac_sed_conf_input=$configure_input;; |
| 3510 | esac |
| 3511 | |
| 3512 | case $ac_tag in |
| 3513 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 3514 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 3515 | esac |
| 3516 | ;; |
| 3517 | esac |
| 3518 | |
| 3519 | ac_dir=`$as_dirname -- "$ac_file" || |
| 3520 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3521 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 3522 | X"$ac_file" : 'X\(//\)$' \| \ |
| 3523 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 3524 | $as_echo X"$ac_file" | |
| 3525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3526 | s//\1/ |
| 3527 | q |
| 3528 | } |
| 3529 | /^X\(\/\/\)[^/].*/{ |
| 3530 | s//\1/ |
| 3531 | q |
| 3532 | } |
| 3533 | /^X\(\/\/\)$/{ |
| 3534 | s//\1/ |
| 3535 | q |
| 3536 | } |
| 3537 | /^X\(\/\).*/{ |
| 3538 | s//\1/ |
| 3539 | q |
| 3540 | } |
| 3541 | s/.*/./; q'` |
| 3542 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 3543 | ac_builddir=. |
| 3544 | |
| 3545 | case "$ac_dir" in |
| 3546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3547 | *) |
| 3548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 3549 | # A ".." for each directory in $ac_dir_suffix. |
| 3550 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 3551 | case $ac_top_builddir_sub in |
| 3552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3553 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 3554 | esac ;; |
| 3555 | esac |
| 3556 | ac_abs_top_builddir=$ac_pwd |
| 3557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 3558 | # for backward compatibility: |
| 3559 | ac_top_builddir=$ac_top_build_prefix |
| 3560 | |
| 3561 | case $srcdir in |
| 3562 | .) # We are building in place. |
| 3563 | ac_srcdir=. |
| 3564 | ac_top_srcdir=$ac_top_builddir_sub |
| 3565 | ac_abs_top_srcdir=$ac_pwd ;; |
| 3566 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 3567 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 3568 | ac_top_srcdir=$srcdir |
| 3569 | ac_abs_top_srcdir=$srcdir ;; |
| 3570 | *) # Relative name. |
| 3571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 3572 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 3573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 3574 | esac |
| 3575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 3576 | |
| 3577 | |
| 3578 | case $ac_mode in |
| 3579 | :F) |
| 3580 | # |
| 3581 | # CONFIG_FILE |
| 3582 | # |
| 3583 | |
| 3584 | _ACEOF |
| 3585 | |
| 3586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3587 | # If the template does not know about datarootdir, expand it. |
| 3588 | # FIXME: This hack should be removed a few years after 2.60. |
| 3589 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 3590 | ac_sed_dataroot=' |
| 3591 | /datarootdir/ { |
| 3592 | p |
| 3593 | q |
| 3594 | } |
| 3595 | /@datadir@/p |
| 3596 | /@docdir@/p |
| 3597 | /@infodir@/p |
| 3598 | /@localedir@/p |
| 3599 | /@mandir@/p' |
| 3600 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 3601 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 3602 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 3604 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 3605 | _ACEOF |
| 3606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3607 | ac_datarootdir_hack=' |
| 3608 | s&@datadir@&$datadir&g |
| 3609 | s&@docdir@&$docdir&g |
| 3610 | s&@infodir@&$infodir&g |
| 3611 | s&@localedir@&$localedir&g |
| 3612 | s&@mandir@&$mandir&g |
| 3613 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 3614 | esac |
| 3615 | _ACEOF |
| 3616 | |
| 3617 | # Neutralize VPATH when `$srcdir' = `.'. |
| 3618 | # Shell code in configure.ac might set extrasub. |
| 3619 | # FIXME: do we really want to maintain this feature? |
| 3620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3621 | ac_sed_extra="$ac_vpsub |
| 3622 | $extrasub |
| 3623 | _ACEOF |
| 3624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3625 | :t |
| 3626 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 3627 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 3628 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 3629 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 3630 | s&@srcdir@&$ac_srcdir&;t t |
| 3631 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 3632 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 3633 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 3634 | s&@builddir@&$ac_builddir&;t t |
| 3635 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 3636 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 3637 | $ac_datarootdir_hack |
| 3638 | " |
| 3639 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 3640 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 3641 | |
| 3642 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 3643 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 3644 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 3645 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 3647 | which seems to be undefined. Please make sure it is defined" >&5 |
| 3648 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 3649 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 3650 | |
| 3651 | rm -f "$ac_tmp/stdin" |
| 3652 | case $ac_file in |
| 3653 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 3654 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 3655 | esac \ |
| 3656 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 3657 | ;; |
| 3658 | |
| 3659 | |
| 3660 | |
| 3661 | esac |
| 3662 | |
| 3663 | done # for ac_tag |
| 3664 | |
| 3665 | |
| 3666 | as_fn_exit 0 |
| 3667 | _ACEOF |
| 3668 | ac_clean_files=$ac_clean_files_save |
| 3669 | |
| 3670 | test $ac_write_fail = 0 || |
| 3671 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 3672 | |
| 3673 | |
| 3674 | # configure is writing to config.log, and then calls config.status. |
| 3675 | # config.status does its own redirection, appending to config.log. |
| 3676 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 3677 | # by configure, so config.status won't be able to write to it; its |
| 3678 | # output is simply discarded. So we exec the FD to /dev/null, |
| 3679 | # effectively closing config.log, so it can be properly (re)opened and |
| 3680 | # appended to by config.status. When coming back to configure, we |
| 3681 | # need to make the FD available again. |
| 3682 | if test "$no_create" != yes; then |
| 3683 | ac_cs_success=: |
| 3684 | ac_config_status_args= |
| 3685 | test "$silent" = yes && |
| 3686 | ac_config_status_args="$ac_config_status_args --quiet" |
| 3687 | exec 5>/dev/null |
| 3688 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 3689 | exec 5>>config.log |
| 3690 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 3691 | # would make configure fail if this is the last instruction. |
| 3692 | $ac_cs_success || as_fn_exit 1 |
| 3693 | fi |
| 3694 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 3696 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 3697 | fi |
| 3698 | |
| 3699 | |
| 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5 |
| 3701 | $as_echo "Build configured successfully" >&6; } |